New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannort import benedict #44
Comments
This is really strange, you are the first one reporting this issue. |
I found the problem! |
I understand... maybe it would be useful to report this issue to |
Interestingly, I'm having this exact same problem. I verified that I installed python-benedict, unlike the person above, but it's still not finding the library. |
@Vermyndax are you using PyCharm too? |
No, I'm using just regular old pip. Even more odd... if I run this from a virtualenv, Benedict isn't recognized. If I come out of the venv and use system packages, it works fine. Both were installed with pip. |
@Vermyndax also I use pip with virtualenv, have you installed the right package and are you importing it correctly?
|
The best I can tell, I did those just fine. If I activate the virtual environment and execute those commands, it will not import properly. If I run it from the system, it will work fine. Here's the .venv listing from pip: ` attrs 21.2.0 Here's the listing from the system outside the virtual env: ` attrs 21.2.0 |
@Vermyndax :( |
@fabiocaccamo don't stress too much, I am likely to blame for something falling down here! Followed the steps and it appeared that everything worked fine. ¯_(ツ)_/¯ |
pip uninstall python-benedict |
Having this problem in 2023. I tried doing what @ddl-tanner-green suggested and this did not fix the broken install |
What happens if you follow these steps? |
what worked for me was to downgrade and upgrade back to same version? hmm $ python3 -c 'from benedict import benedict^J'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: cannot import name 'benedict' from 'benedict' (unknown location)
$ pip list | grep -i benedict
python-benedict 0.32.1
$ pip install python-benedict==0.30
$ python3 -c 'from benedict import benedict^J'
$ pip install -U python-benedict
$ python3 -c 'from benedict import benedict^J' |
Python version
3.8
Package version
0.22.2
Current behavior (bug description)
Expected behavior
It should be possible to import and use benedict.
** Additional pip information
$ pip show python-benedict
Name: python-benedict
Version: 0.22.2
Summary: python-benedict is a dict subclass with keylist/keypath support, I/O shortcuts (base64, csv, json, pickle, plist, query-string, toml, xml, yaml) and many utilities... for humans, obviously.
Home-page: https://github.com/fabiocaccamo/python-benedict
Author: Fabio Caccamo
Author-email: fabio.caccamo@gmail.com
License: MIT
The text was updated successfully, but these errors were encountered: