Closed vasiliyb closed 4 years ago
Yep. Even virtualenv isn't working correctly. It is trying to load things from system libraries
This has nothing to do with asdf, the package pygresql simply does not export a module called pygresql (which is unfortunate, but Python packaging system allows this).
From the documentation, it seems that you need to import the pg
module:
BTW, if you run into this kind of issue, you can use
pip show -f PACKAGE_NAME
which will show you a list of files installed by the package. Hopefully, there should be a PACKAGE_NAME/__init__.py
but sometimes, as for pygresql
, it is not the case.
For some reason, even after a module is installed (
pygresql
) via pip, its failing to load: