Public bug reported:

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: ubuntu
     Importance: Undecided
         Status: New


** Tags: python

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1737623

Title:
  Python 3 is missing a standard directory from the module search path

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1737623/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to