Hi,
On Sun, 15. Apr 2018 at 13:26:50 +0300, Dmitry Shachnev wrote:
> Control: tags -1 unreproducible
>
> On Sun, Apr 15, 2018 at 12:59:12AM -0400, Scott Kitterman wrote:
> > Tried this on sid with both pyqt5 5.9.2 and 5.10.1:
> >
> > Unpacking python-pyqt5 (5.10.1+dfsg-1) over (5.9.2+dfsg-1+b1) ...
> > Setting up python-pyqt5 (5.10.1+dfsg-1) ...
> > # python
> > Python 2.7.14+ (default, Apr 2 2018, 04:16:25)
> > [GCC 7.3.0] on linux2
> > Type "help", "copyright", "credits" or "license" for more information.
> > >>> import PyQt5.QtCore
> > Traceback (most recent call last):
> > File "", line 1, in
> > ImportError: libQt5Core.so.5: cannot open shared object file: No such file
> > or directory
>
> Works for me in a clean sid chroot.
>
> Can it be that you had a PyQt5 installation from PyPI which would conflict
> with the distro package?
>
> If not, please check strace output and look which libQt5Core.so.5 it tries
> to load.
I'm hitting this too - in a cowbuilder running in docker.
jef@qgis:~$ docker exec -it 2fcadc4ab376 bash
root@qgis:/# cowbuilder --login --basepath /var/cache/pbuilder/buster-i386.cow
[...]
root@qgis:/# apt-get update && apt-get -y install python3-pyqt5 strace &&
strace -o /tmp/log python3
[...]
Python 3.6.5rc1 (default, Mar 14 2018, 06:54:23)
[GCC 7.3.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import PyQt5.QtCore
Traceback (most recent call last):
File "", line 1, in
ImportError: libQt5Core.so.5: cannot open shared object file: No such file or
directory
>>> quit()
root@qgis:/# grep libQt5Core.so /tmp/log | grep -v ENOENT
openat(AT_FDCWD, "/usr/lib/i386-linux-gnu/sse2/libQt5Core.so.5",
O_RDONLY|O_CLOEXEC) = 3
openat(AT_FDCWD, "/usr/lib/i386-linux-gnu/libQt5Core.so.5", O_RDONLY|O_CLOEXEC)
= 3
write(2, "ImportError: libQt5Core.so.5: ca"..., 88) = 88
root@qgis:/# cat /tmp/log
execve("/usr/bin/python3", ["python3"], 0xffe31a08 /* 25 vars */) = 0
brk(NULL) = 0x8cc2000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xf771d000
openat(AT_FDCWD, "/usr/lib/cowdancer/libcowdancer.so", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \23\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=21764, ...}) = 0
mmap2(NULL, 24664, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xf7716000
mmap2(0xf771b000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4000) = 0xf771b000
close(3)= 0
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=21538, ...}) = 0
mmap2(NULL, 21538, PROT_READ, MAP_PRIVATE, 3, 0) = 0xf771
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/i386-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300P\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=140408, ...}) = 0
mmap2(NULL, 123544, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xf76f1000
mmap2(0xf770c000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0xf770c000
mmap2(0xf770e000, 4760, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xf770e000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/i386-linux-gnu/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3,
"\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\320\n\0\0004\0\0\0"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=13828, ...}) = 0
mmap2(NULL, 16500, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xf76ec000
mmap2(0xf76ef000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0xf76ef000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/i386-linux-gnu/libutil.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`\n\0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=9796, ...}) = 0
mmap2(NULL, 12424, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xf76e8000
mmap2(0xf76ea000, 8192, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1000) = 0xf76ea000
close(3)= 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/lib/i386-linux-gnu/libexpat.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\ \0\0004\0\0\0"...,
512) = 512
fstat64(3, {st_mode=S_IFREG|0644,