[Bug 1737623] Re: Python 3 is missing a standard directory from the module search path
Ian Bruene
1737623 at bugs.launchpad.net
Tue Dec 12 16:31:37 UTC 2017
** Also affects: python3.6 (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.5 in Ubuntu.
https://bugs.launchpad.net/bugs/1737623
Title:
Python 3 is missing a standard directory from the module search path
Status in python3.5 package in Ubuntu:
New
Status in python3.6 package in Ubuntu:
New
Bug description:
Running Ubuntu MATE 17.04.
Python 3 has multiple directories for installed modules. The paths for
system packages (/usr/lib/) are all correctly added to sys.path, but
one of the paths for user installed packages is missing.
The path /usr/local/lib/python3/ does not get added to sys.path. It's
counterpart for system packages exists, and the python3.5/ or
python3.6/ user paths are properly added to sys.path. Though it does
not exist by default, the equivalent paths in ~/.local/ are also added
when the directories exist.
This is causing problems for the NTPsec project, as python's distutils
module tells our installer to place python modules under
/usr/local/lib/python3/ where python cannot see them. So far attempts
to work around this result in either very brittle build scripts, or
require the user to modify their PYTHONPATH.
My understanding is that python search paths are determined by the
distribution.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python3.5/+bug/1737623/+subscriptions
More information about the foundations-bugs
mailing list