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
TypeError: 'module' object is not callable #14
Comments
Check how you import it. import benedict instead of: from benedict import benedict |
I did originally have that mistake, yes! However here's the whole file: (the traceback is the same of course)
|
I don’t think the traceback is the same, could you check it please? |
Sure thing!
In pycharm there are some deeper parts of the traceback. I'm new to python so I'm not sure what in here is valuable. Here are some that look like they might be:
|
I don't think this is a library problem, this snipped of code works perfectly: from benedict import benedict
d = benedict()
d['profile', 'firstname'] = 'Fabio'
print(d) and prints: {'profile': {'firstname': 'Fabio'}} |
Well that's interesting! I wonder what's wrong in my environment! I'll cook up a new venv and try it there. Thanks for such fast responses :) |
Ok, don't worry! If you find any bug please provide also a failing test case to speed up bug fixing. |
In case anyone runs into this in the future, this is probably due to you installing the wrong benedict module. Instead of:
you should run:
|
@mthbrown thanks for clarifying the issue, it will surely be useful to someone else. |
Python version
3.6.9
Package version
0.18.1
Current behavior (bug description)
on the very first line where i call the benedict() class, an exception is thrown:
This even happens when creating a dictionary just as your usage examples demonstrate.
Expected behavior
see above!
The text was updated successfully, but these errors were encountered: