Pregunta

I was able to successful install coverage using -user and try to use api as we have wrapper which was difficult to call coverage from command line So I call api and write import coverage But I endup with following error.Could you please provide the input.

when I write simple import it works but it failes if I call from wrapper. In short, we have one script in which call functional script or main script.

Is it possible to do coverage of inner module also if we invoke other module also

$HOME/.local/lib/python2.7/site-packages/coverage-3.6.1a1-py2.7-linux-x86_64.egg/coverage/__init__.py", line 10, in <module>
    from coverage.control import coverage, process_startup
  File "$HOME/.local/lib/python2.7/site-packages/coverage-3.6.1a1-py2.7-linux-x86_64.egg/coverage/control.py", line 9, in <module>
    from coverage.config import CoverageConfig
  File "$HOME/.local/lib/python2.7/site-packages/coverage-3.6.1a1-py2.7-linux-x86_64.egg/coverage/config.py", line 13, in <module>
    class HandyConfigParser(configparser.RawConfigParser):
AttributeError: 'module' object has no attribute 'RawConfigParser'
¿Fue útil?

Solución

The issue was, we have same file which customize version which does not contain RawConfigParse.So I have download configparser and install it. it works fine for me.Really it is nice tool

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top