sipconfig.Configuration().sop_mod_dir returns non existing path.

Asked by Swiss Knight

On Ubuntu 18.04 64 bits, in a python3 console:

>>> sipconfig.Configuration().sip_mod_dir
    /usr/lib/python3.6/dist-packages

The returned path in python3: "/usr/lib/python3.6/dist-packages" doesn't exist on Ubuntu 18.04.
Actually, sipconfig.py is located in "/usr/lib/python3/dist-packages".

I think it's a bug (?)

My sip is version 4.19.7 (from the official Bionic repositories ; python3-sip and python3-sip-dev packages are installed).

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu sip4 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

I suggest that you create a bug report.

This package was copied from Debian, and it seems that Debian suffers from the same problem.
see also https://www.debian.org/doc/packaging-manuals/python-policy/python.html#paths
I assume that a bug report should not only be created in the Ubuntu bug tracker, but also in the Debian bug tracker.

Can you help with this problem?

Provide an answer of your own, or ask Swiss Knight for more information if necessary.

To post a message you must log in.