Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 664690 - dev-python/qscintilla-python-2.10.7 fails with Python3.7 :No such file or directory: '/usr/lib/python3.7/site-packages/PyQt5/Qsci.so'
Summary: dev-python/qscintilla-python-2.10.7 fails with Python3.7 :No such file or dir...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords: UPSTREAM
Depends on:
Blocks:
 
Reported: 2018-08-27 09:55 UTC by Helmut Jarausch
Modified: 2019-04-30 07:22 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2018-08-27 09:55:27 UTC
It doesn't build for Python3.7 :
/usr/bin/python3.7 mk_distinfo.py /var/tmp/portage/dev-python/qscintilla-python-2.10.7/image/usr/lib/python3.7/site-packages/QScintilla-2.10.7.dist-info installed.txt
Traceback (most recent call last):
  File "mk_distinfo.py", line 101, in <module>
    fn_f = open(fn, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/usr/lib/python3.7/site-packages/PyQt5/Qsci.so'


eix -e dev-python/PyQt5 shows
Installed versions:  5.10.1-r1{tbz2}(12:49:27 PM 08/22/2018)(dbus declarative designer examples gui help multimedia network opengl printsupport sql svg webchannel webengine webkit websockets widgets x11extras xmlpatterns -bluetooth -debug -gles2 -location -positioning -sensors -serialport -testlib PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_4 -python3_5")
Comment 1 Helmut Jarausch 2018-08-27 16:16:35 UTC
I admit I don't understand the build process.

But I've noticed that the Python3.6 version is at
/var/tmp/portage/dev-python/qscintilla-python-2.10.7/image/usr/lib64
python3.6/

while the Python3.7 version is at
/var/tmp/portage/dev-python/qscintilla-python-2.10.7/image/usr/lib  
python3.7

here, 
/var/tmp/portage/dev-python/qscintilla-python-2.10.7/image/usr/lib

 is NOT a symlink to 

/var/tmp/portage/dev-python/qscintilla-python-2.10.7/image/usr/lib64

while /usr/lib is a symlink to /usr/lib64 on my machine.

Could this be an explanation for the problem?
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2018-08-28 01:04:41 UTC
(In reply to Helmut Jarausch from comment #1)
> [...]
> Could this be an explanation for the problem?

Yes, that could be. Just to be clear, the error doesn't occur if you remove python3_7 from PYTHON_TARGETS?
Comment 3 Helmut Jarausch 2018-08-28 11:17:20 UTC
(In reply to Davide Pesavento from comment #2)
> (In reply to Helmut Jarausch from comment #1)
> > [...]
> > Could this be an explanation for the problem?
> 
> Yes, that could be. Just to be clear, the error doesn't occur if you remove
> python3_7 from PYTHON_TARGETS?

No, I even get it for Python2.7 :

/usr/bin/python2.7 mk_distinfo.py /var/tmp/portage/dev-python/qscintilla-python-2.10.7/image/usr/lib64/python2.7/site-packages/QScintilla-2.10.7.dist-info installed.txt
Traceback (most recent call last):
  File "mk_distinfo.py", line 101, in <module>
    fn_f = open(fn, 'rb')
IOError: [Errno 2] No such file or directory: '/usr/lib64/python2.7/site-packages/PyQt5/Qsci.so'

although
Qsci.so is in
/var/tmp/portage/dev-python/qscintilla-python-2.10.7/image/usr/lib64/python2.7/site-packages/PyQt5
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2018-08-28 12:35:48 UTC
Apparently it doesn't account for rooted install and tries to load installed module.
Comment 5 Davide Pesavento (RETIRED) gentoo-dev 2018-09-16 23:39:33 UTC
Upstream acknowledged that the generation of .dist-info/RECORD is broken in 2.10.7, and is already fixed in the 2.10.8 snapshots.
Comment 6 Larry the Git Cow gentoo-dev 2018-09-16 23:53:33 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d38146da9b9e0479a54c20d7cbce89ff95e477ab

commit d38146da9b9e0479a54c20d7cbce89ff95e477ab
Author:     Davide Pesavento <pesa@gentoo.org>
AuthorDate: 2018-09-16 23:51:59 +0000
Commit:     Davide Pesavento <pesa@gentoo.org>
CommitDate: 2018-09-16 23:53:21 +0000

    dev-python/qscintilla-python: temporarily disable installation of dist-info dir
    
    Broken upstream, will be fixed in 2.10.8
    
    Closes: https://bugs.gentoo.org/664690
    Package-Manager: Portage-2.3.49, Repoman-2.3.10

 dev-python/qscintilla-python/qscintilla-python-2.10.7.ebuild | 1 +
 1 file changed, 1 insertion(+)