Giter VIP home page Giter VIP logo

Comments (6)

oliviermartin avatar oliviermartin commented on July 20, 2024 1

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 by from 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') and import lcov_cobertura into setup.py.

from lcov-to-cobertura-xml.

cgutierr-zgz avatar cgutierr-zgz commented on July 20, 2024

Same thing here

from lcov-to-cobertura-xml.

sonofsky2010 avatar sonofsky2010 commented on July 20, 2024

I try bellow code, it works.

from lcov_cobertura import lcov_cobertura
lcov_cobertura. LcovCobertura

from lcov-to-cobertura-xml.

cgutierr-zgz avatar cgutierr-zgz commented on July 20, 2024

If I install lcov_cobertura==1.6 it does work fine like that, otherwise it doesn't @sonofsky2010

from lcov-to-cobertura-xml.

cgutierr-zgz avatar cgutierr-zgz commented on July 20, 2024

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.

eriwen avatar eriwen commented on July 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.