[Bug 1737623] [NEW] Python 3 is missing a standard directory from the module search path

Launchpad Bug Tracker 1737623 at bugs.launchpad.net
Tue Dec 12 15:57:19 UTC 2017


You have been subscribed to a public bug:

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.

** Affects: python3.5 (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: bot-comment python
-- 
Python 3 is missing a standard directory from the module search path
https://bugs.launchpad.net/bugs/1737623
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to python3.5 in Ubuntu.



More information about the foundations-bugs mailing list