1

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..

sudheer
  • 94
  • 9
  • looks like it is not python3 compatible see here : https://github.com/softvar/json2html/issues/3 – Vipul Nov 27 '15 at 19:00

1 Answers1

0

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

baldr
  • 2,891
  • 11
  • 43
  • 61