简体   繁体   中英

ImportError: No module named 'jsonconv'

I am running Python 3.4

Did pip install json2html with no errors.

However, when I execute "import json2html" I got:

>>> import json2html
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python34\lib\site-packages\json2html-0.3-py3.4.egg\json2html\__init__.py", line 6, in <module>
ImportError: No module named 'jsonconv'
>>>

please help suggest..

It seems this library is not python3-compatible.

Error was caused by this line in the __init__.py file:

from jsonconv import *

While, instead, it should be:

from .jsonconv import *

Try this fork instead: https://github.com/YAmikep/json2html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM