sanand0 / xmljson

xmlsjon converts XML into Python dictionary structures (trees, like in JSON) and vice-versa.
MIT License
121 stars 33 forks source link

ImportError: cannot import name 'badgerfish' #31

Closed PyPatel closed 5 years ago

PyPatel commented 6 years ago
Traceback (most recent call last):
  File "D:\Codes\TPN\xmljson.py", line 1, in
    from xmljson import badgerfish as bf
  File "D:\Codes\TPN\xmljson.py", line 1, in
    from xmljson import badgerfish as bf
ImportError: cannot import name 'badgerfish'

I am using Python 3.6

dpalharini commented 6 years ago

I am having the same problem.

Python 2.7. Ubuntu 16.04.

mukultaneja commented 6 years ago

I have tried xmljson (v0.1.9) with Python 3.6.3 and Python 2.7.5 but not able to reproduce the error. Can you please check for the latest versions or share more trace so that I can reproduce the error?

screen shot 2018-05-18 at 11 28 38 am screen shot 2018-05-18 at 11 29 19 am
dpalharini commented 6 years ago

I use Python 2.7.12.

image

image

The package was installed and it has been found, but the item inside the package does not exist!

What can I do to provide more information?

mukultaneja commented 6 years ago

@dpalharini I am still not able to reproduce the error. This time I tried with Ubuntu 16.04 and Python 2.7.12.

screen shot 2018-05-19 at 1 57 40 pm screen shot 2018-05-19 at 1 46 52 pm screen shot 2018-05-19 at 1 47 07 pm

As I can see your 'pip show' output, it seems you are not getting any data from the package. I think you should check once /usr/local/lib/python2.7/dist-packages/xmljson/__init__.py for the content or can try to reinstall the package using pip install https://github.com/sanand0/xmljson/archive/master.zip

Hope it will help!

sanand0 commented 5 years ago

Closing this issue for now since we aren't able to reproduce it.

For future reference, if anyone can share an environment where they're able to reproduce it, we can try and debug it.