sipcfg.sip_mod_dir is not returning a valid path from Python3 on Ubuntu 18.04

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

sipcfg.sip_mod_dir is not returning a valid path from Python3 on Ubuntu 18.04

Nicolas
Hi devs,


I've got a trouble with sip on Ubuntu 18.04 64 bit.
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.

In 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; actually, "sipconfig.py" is located in the previous folder (i.e. /usr/lib/python3/dist-packages/).

Is it possible something should be updated in "sipcfg.sip_mod_dir" definition...? Probably with some tests to check if path exists...?
Or did I do something wrong?

The version of the sip shipped from the official Ubuntu 18.04 repositories is: 4.19.7.


Thanks a lot.
Regards.




_______________________________________________
PyQt mailing list    [hidden email]
https://www.riverbankcomputing.com/mailman/listinfo/pyqt