-
Notifications
You must be signed in to change notification settings - Fork 234
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
Python module does not load ... #1782
Comments
Above is after a clean install:
and then rebuilding/installing cogutils, atomspace, opencog. The python module gets installed here, on my system:
and |
My current guess is that python is not looking in the |
Hi, is there "$ python -m site" your path ?
|
|
Hang on; the above |
On the failing system, I get:
|
and also:
|
Maybe you've different versions of python? For example: 3.4; 3.5; .3.7? And system runs 3.4 version via this call "$ python3 m -site". Try point more precisely, like "python3.5 -m site" I think for each version, system uses different paths. |
The only way I can get python to work with opencog is to explicitly specify the path.
|
yes, it looks like the python issue, atomspace uses
But at the moment |
There's already code in |
Yes, fix for |
Ah, so on failing system, |
well, CMake prints:
and that is the path provided by
So I conclude: python3 |
Yes, it is what https://bugs.launchpad.net/ubuntu/+source/python3-defaults/+bug/1814653 is about |
I also added https://bugs.launchpad.net/ubuntu/+source/python3-stdlib-extensions/+bug/1832215 and proposed patch to package maintainers. |
after some experiments:
|
@vsbogd you may want to email Matthias Klose directly (and/or report it as a Debian bug, which Ubuntu is picking up) (per your "root cause" patch https://salsa.debian.org/cpython-team/python3-stdlib/blob/master/debian/patches/3.6/distutils-install-layout.diff ) |
I wrote to Matthias. I am not sure it is need to be reported as Debian, as Matthias has an e-mail at ubuntu.com, so I will wait for his response. |
It's the opposite - Ubuntu and Debian use This hasn't changed between python2.7/python3.5/python3.6, but the distutils bug does seem to be introduced moving from 2 to 3. An alternative way to find the correct location is:
(then either grab the first item, or search for the one prefixed by /usr/local/lib) This works for python versions 2.7, 3.5, 3.6 on Ubuntu 18.04. I assume it works elsewhere too. |
I spoke too soon, virtualenv doesn't have a recent site module so wouldn't work with my proposed alternative: pypa/virtualenv#355 :-( |
This is a followup to issue opencog/opencog#3226 --
Starting the cogserver results in the following message being printed:
The text was updated successfully, but these errors were encountered: