Comments (6)
After having the issue, I have investigated what is going on.
The issue comes the use of setup.cfg
- before using this file, setup.py
was looking like that: https://github.com/eriwen/lcov-to-cobertura-xml/blob/1.6/setup.py ... particularly there were these two lines in setup.py
:
sys.path.append('lcov_cobertura')
import lcov_cobertura
setup.py
was actually creating a package using the file lcov_cobertura.py
and not the 'module' lcov_cobertura
(a __init__.py
is actually missing to be a module).
Three ways to fix this issue:
- Replacing
from lcov_cobertura import lcov_cobertura
byfrom lcov_cobertura.lcov_cobertura import LcovCobertura
in the documentation - Renaming
lcov_cobertura.py
into__init__.py
- Maybe restore back these two lines
sys.path.append('lcov_cobertura')
andimport lcov_cobertura
intosetup.py
.
from lcov-to-cobertura-xml.
Same thing here
from lcov-to-cobertura-xml.
I try bellow code, it works.
from lcov_cobertura import lcov_cobertura
lcov_cobertura. LcovCobertura
from lcov-to-cobertura-xml.
If I install lcov_cobertura==1.6
it does work fine like that, otherwise it doesn't @sonofsky2010
from lcov-to-cobertura-xml.
Project has been already some months without any update to the repo so I it might be a bit discontinued
from lcov-to-cobertura-xml.
Fixed by 3aebf29 and released in version 2.0.2 https://pypi.org/project/lcov-cobertura/2.0.2/
from lcov-to-cobertura-xml.
Related Issues (20)
- Index Out Of bounds HOT 4
- Conditionals and method coverage always shows 0/0 HOT 5
- Pip install and running command results command not found HOT 2
- Python 3 error with --demangle HOT 1
- Discrepancy with genhtml HOT 1
- Needs a release HOT 2
- Missing function & statement metrics HOT 2
- Segmentation fault HOT 2
- Hangs in python3 with --demangle HOT 4
- CLI entry point regression HOT 5
- gitlab-ci can't read .xml file, which is conversion by lcov-to-cobertura-xml HOT 3
- Support multiple lcov files as input HOT 1
- Add parameter to set maximum file file size (and split the output)
- distutils.spawn is deprecated, gonna be removed HOT 2
- Minidom giving memory error
- How to use lcov_cobertura file from a LICENSE perspective?
- duplicate matches in `--excludes` will lead to errors
- Sonarqube report version 1
- some problems using it from command line HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lcov-to-cobertura-xml.