[Bug 1822733] Re: "sipconfig.Configuration().sop_mod_dir" returns non existing path in python3.
Launchpad Bug Tracker
1822733 at bugs.launchpad.net
Sun Apr 28 01:23:13 UTC 2019
This bug was fixed in the package sip4 - 4.19.16+dfsg-1
---------------
sip4 (4.19.16+dfsg-1) experimental; urgency=medium
* New upstream release (closes: #926904).
* Use dh sequencer and the pybuild buildsystem.
* Remove references to build path from the generated sipconfig.py files.
* Fix dist-packages paths in the sipconfig.py files (LP: #1822733).
* Install the PEP 376 .dist-info directories (but without the RECORD).
* Update debhelper compat level to 12, use the new syntax.
* Simplify the .install files, add debian/not-installed file.
* Install sip and sip3 addons for the dh sequencer.
-- Dmitry Shachnev <mitya57 at debian.org> Thu, 25 Apr 2019 20:05:10
+0300
** Changed in: sip4 (Ubuntu)
Status: Triaged => Fix Released
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to sip4 in Ubuntu.
https://bugs.launchpad.net/bugs/1822733
Title:
"sipconfig.Configuration().sop_mod_dir" returns non existing path in
python3.
Status in sip4 package in Ubuntu:
Fix Released
Bug description:
As suggested here:
https://answers.launchpad.net/ubuntu/+source/sip4/+question/679701
I forward this issue here as a BR.
I've got a trouble with sip on Ubuntu 18.04 64 bit (4.18.0-16-generic
x86_64 GNU/Linux).
$ lsb_release -rd
Description: Ubuntu 18.04.2 LTS
Release: 18.04
I must rely on the official Ubuntu packages to build a software
depending on "sip", so "python3-sip" and "python3-sip-dev" packages
are installed from apt-get.
Here are the commands from a python3 console:
>>> import sipconfig
>>> sipcfg = sipconfig.Configuration()
>>> print("sip_version_str:%s" % sipcfg.sip_version_str)
sip_version_str:4.19.7
>>> print("sip_module_dir:%s" % sipcfg.sip_mod_dir)
sip_module_dir:/usr/lib/python3.6/dist-packages
But "/usr/lib/python3.6/dist-packages" is not a valid path.
I either have; "/usr/lib/python3/dist-packages" ("3" instead of "3.6" append to "python" in path name)
or; "/usr/lib/python3.6/site-packages" which is almost empty (with only one unrelated folder there: "indicator_keyboard").
Actually, "sipconfig.py" is located in the previous folder (i.e. "/usr/lib/python3/dist-packages/" ).
It is possible something should be updated in "sipcfg.sip_mod_dir"
definition...? Probably with some tests to check if path exists...?
The version of the "sip" shipped from the official Ubuntu 18.04
repositories is: 4.19.7.
More informations:
$ find /usr -iname "*sipconfig*"
/usr/lib/python3/dist-packages/sipconfig.py
/usr/lib/python3/dist-packages/sipconfig_nd6.py
/usr/lib/python3/dist-packages/__pycache__/sipconfig_nd6.cpython-36.pyc
/usr/lib/python3/dist-packages/__pycache__/sipconfig.cpython-36.pyc
$ find /usr/bin -iname "*sip*"
/usr/bin/dh_sip
/usr/bin/lsipc
/usr/bin/sip
/usr/bin/dh_sip3
$ find /usr/include/python3.6* -iname "*sip*"
/usr/include/python3.6dm/sip.h
/usr/include/python3.6m/sip.h
$ sip -V
4.19.7
$ which sip
/usr/bin/sip
$ apt-cache policy python3-sip
python3-sip:
Installed: 4.19.7+dfsg-1
Candidate: 4.19.7+dfsg-1
Version table:
*** 4.19.7+dfsg-1 500
500 http://ch.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
$ apt-cache policy python3-sip-dev
python3-sip-dev:
Installed: 4.19.7+dfsg-1
Candidate: 4.19.7+dfsg-1
Version table:
*** 4.19.7+dfsg-1 500
500 http://ch.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
$ apt-cache policy sip-dev
sip-dev:
Installed: 4.19.7+dfsg-1
Candidate: 4.19.7+dfsg-1
Version table:
*** 4.19.7+dfsg-1 500
500 http://ch.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sip4/+bug/1822733/+subscriptions
More information about the foundations-bugs
mailing list