Skip to content Skip to sidebar Skip to footer

Ciscoconfparse In Python 3.4 Module Doesn't Import Correctly

I'm trying to install a python module called ciscoconfparse on Linux Mint 17. When I install it with pip with python 2, all works well when I try to import, but when I try it with

Solution 1:

Is there any reason the install may not be working? Or else what is the best way to include the module with my own project?

ciscoconfparse version 1.1.1 failed in all Python3 versions due to broken relative imports.

Relative imports broke due to lack of compliance with PEP 366 in ciscoconfparse version 1.1.1 (and prior); to resolve this, ciscoconfparse added a __main__.py in the package. I manually tested this against Python2.7 and Python3.4.1; as far as I can tell, version 1.1.2 fixes the issues with Python3.

Solution 2:

I had the same issue but it has been fixed on the latest version 1.1.3, https://pypi.python.org/pypi/ciscoconfparse/1.1.3. Please try that.

Post a Comment for "Ciscoconfparse In Python 3.4 Module Doesn't Import Correctly"