Closed Ironlenny closed 6 years ago
Ouch. I investigated a bit and here's why this happens:
Relatively recent automake versions have been updated to use the sysconfig
module to obtain the module path, this is to be more compatible with Python 3.
However, when I run
import sysconfig
sysconfig.get_paths()
on an Ubuntu system, I get module paths with site-packages
in them. As far as I know, without extra tweaking, Python on Ubuntu doesn't touch the site-packages
directory at all. I suspect the output of sysconfig.get_paths()
is similar in your case.
The best fix would be to give up autotools completely and split Python module from the main package. Of course, this is relatively useless information in your particular case :-) I suspect getting a newer automake, Python and the git version of whitedb would also make no difference as long as the output of the sysconfig
module differs from the actual sys.path
A quick and relatively simple workaround would be to include the /usr/lib/python3.4/site-packages
in module search path on your system. I'll see if anything can be done about the autotools macros, but in that regard the 0.7.3 version will unfortunately remain permanently broken. The macro that checks the Python module path in the way I described above, is already packaged in.
For documentary purposes here is the work-around I'm using:
import sys
sys.path.append("/usr/lib/python3.4/site-packages")
import whitedb
Python binding will be split into a separate project.
I tried compiling WhiteDB with the Python bindings, but the module won't load.
Here is the steps I took to compile and install:
$PYTHONPATH:
Proof files are install:
When I
import whitedb
, I get:I tried directly loading the module:
Output:
Any help would be appreciated.