Github messages for voidlinux
 help / color / mirror / Atom feed
* [ISSUE] Python3 can't import anything from PyQt5 (breaks Qutebrowser)
@ 2020-04-06 22:56 ianayl
  2020-04-07  1:15 ` q66
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ianayl @ 2020-04-06 22:56 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2096 bytes --]

New issue by ianayl on void-packages repository

https://github.com/void-linux/void-packages/issues/20710

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  ``Void 5.4.27_1 x86_64 GenuineIntel uptodate rFFFFF``
* package:  
  - ``python3-PyQt5-5.13.2_2``
  - ``qutebrowser-1.10.1_1``

### Expected behavior
This command
```sh
$ python3 -c 'import PyQt5.QtCore'
```
should just work without any issues? Importing anything from PyQt5 should just work
### Actual behavior
```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory
```
Python starts to freak out instead and tells me this file doesn't exist. Any programs using PyQt5, **such as qutebrowser**, breaks, returning
```
Fatal error: PyQt5.QtCore is required to run qutebrowser but could not be imported! Maybe it's not installed?

The error encountered was:
libQt5Core.so.5: cannot open shared object file: No such file or directory

Please search for the python3 version of PyQt5.QtCore in your distributions packages, or see https://github.com/qutebrowser/qutebrowser/blob/master/doc/install.asciidoc

If you installed a qutebrowser package for your distribution, please report this as a bug.
```
Granted though, even if I installed PyQt5, the file `libQt5Core.so.5` doesn't actually exist. Running
```sh
$ find / | grep Qt5Core
```
produces:
```
/usr/lib/libQt5Core.so.5.14
/usr/lib/libQt5Core.so.5.14.2
```
Now, I won't lie, I'm not very good with this stuff, but I think this means that `libQt5Core.so.5.14` should actually be `libQt5Core.so.5`?
### Steps to reproduce the behavior
Just install ``python3-PyQt5-5.13.2_2`` (I think this is the latest version) and try running ``python3 -c 'import PyQt5.QtCore'``, it should complain about no `libQt5Core.so.5`

Thank you for your time btw, I appreciate the help


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Python3 can't import anything from PyQt5 (breaks Qutebrowser)
  2020-04-06 22:56 [ISSUE] Python3 can't import anything from PyQt5 (breaks Qutebrowser) ianayl
@ 2020-04-07  1:15 ` q66
  2020-04-07  1:16 ` q66
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: q66 @ 2020-04-07  1:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1015 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/20710#issuecomment-610118610

Comment:
works here:

```
q66@rimi: /home/q66$ python3 -c 'import PyQt5.QtCore'
q66@rimi: /home/q66$ xbps-query -f qt5-core
/usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so -> /usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so.5 -> /usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so.5.14 -> /usr/lib/libQt5Core.so.5.14.2
q66@rimi: /home/q66$ file /usr/lib/libQt5Core.so.5
/usr/lib/libQt5Core.so.5: symbolic link to libQt5Core.so.5.14.2
q66@rimi: /home/q66$ file /usr/lib/libQt5Core.so.5.14  
/usr/lib/libQt5Core.so.5.14: symbolic link to libQt5Core.so.5.14.2
q66@rimi: /home/q66$ file /usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so.5.14.2: ELF 64-bit LSB shared object, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.2, for GNU/Linux 3.17.0, BuildID[sha1]=921524d4a50fc4039cc04e3946af6a55c2453226, stripped
```

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Python3 can't import anything from PyQt5 (breaks Qutebrowser)
  2020-04-06 22:56 [ISSUE] Python3 can't import anything from PyQt5 (breaks Qutebrowser) ianayl
  2020-04-07  1:15 ` q66
@ 2020-04-07  1:16 ` q66
  2020-04-07  1:36 ` ianayl
  2020-04-07  1:36 ` [ISSUE] [CLOSED] " ianayl
  3 siblings, 0 replies; 5+ messages in thread
From: q66 @ 2020-04-07  1:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1082 bytes --]

New comment by q66 on void-packages repository

https://github.com/void-linux/void-packages/issues/20710#issuecomment-610118610

Comment:
works here:

```
q66@rimi: /home/q66$ python3 -c 'import PyQt5.QtCore'
q66@rimi: /home/q66$ xbps-query -f qt5-core
/usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so -> /usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so.5 -> /usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so.5.14 -> /usr/lib/libQt5Core.so.5.14.2
q66@rimi: /home/q66$ file /usr/lib/libQt5Core.so.5
/usr/lib/libQt5Core.so.5: symbolic link to libQt5Core.so.5.14.2
q66@rimi: /home/q66$ file /usr/lib/libQt5Core.so.5.14  
/usr/lib/libQt5Core.so.5.14: symbolic link to libQt5Core.so.5.14.2
q66@rimi: /home/q66$ file /usr/lib/libQt5Core.so.5.14.2
/usr/lib/libQt5Core.so.5.14.2: ELF 64-bit LSB shared object, 64-bit PowerPC or cisco 7500, version 1 (SYSV), dynamically linked, interpreter /lib/ld64.so.2, for GNU/Linux 3.17.0, BuildID[sha1]=921524d4a50fc4039cc04e3946af6a55c2453226, stripped
```

maybe your setup is broken somehow? try reinstalling `qt5-core`

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Python3 can't import anything from PyQt5 (breaks Qutebrowser)
  2020-04-06 22:56 [ISSUE] Python3 can't import anything from PyQt5 (breaks Qutebrowser) ianayl
  2020-04-07  1:15 ` q66
  2020-04-07  1:16 ` q66
@ 2020-04-07  1:36 ` ianayl
  2020-04-07  1:36 ` [ISSUE] [CLOSED] " ianayl
  3 siblings, 0 replies; 5+ messages in thread
From: ianayl @ 2020-04-07  1:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 416 bytes --]

New comment by ianayl on void-packages repository

https://github.com/void-linux/void-packages/issues/20710#issuecomment-610123765

Comment:
ohhhh, crap, so I'm actually dumb. I thought it was a python issue, so I uninstalled and reinstalled python qt stuff over and over again, turns out it was my qt5 stuff that was screwed up, not python qt stuff.

Well, thanks a lot man, that was dumb, sorry for this "issue"

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [ISSUE] [CLOSED] Python3 can't import anything from PyQt5 (breaks Qutebrowser)
  2020-04-06 22:56 [ISSUE] Python3 can't import anything from PyQt5 (breaks Qutebrowser) ianayl
                   ` (2 preceding siblings ...)
  2020-04-07  1:36 ` ianayl
@ 2020-04-07  1:36 ` ianayl
  3 siblings, 0 replies; 5+ messages in thread
From: ianayl @ 2020-04-07  1:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2099 bytes --]

Closed issue by ianayl on void-packages repository

https://github.com/void-linux/void-packages/issues/20710

Description:
<!-- Don't request update of package. We have a script for that. https://alpha.de.repo.voidlinux.org/void-updates/void-updates.txt . However, a quality pull request may help. -->
### System

* xuname:  
  ``Void 5.4.27_1 x86_64 GenuineIntel uptodate rFFFFF``
* package:  
  - ``python3-PyQt5-5.13.2_2``
  - ``qutebrowser-1.10.1_1``

### Expected behavior
This command
```sh
$ python3 -c 'import PyQt5.QtCore'
```
should just work without any issues? Importing anything from PyQt5 should just work
### Actual behavior
```
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: libQt5Core.so.5: cannot open shared object file: No such file or directory
```
Python starts to freak out instead and tells me this file doesn't exist. Any programs using PyQt5, **such as qutebrowser**, breaks, returning
```
Fatal error: PyQt5.QtCore is required to run qutebrowser but could not be imported! Maybe it's not installed?

The error encountered was:
libQt5Core.so.5: cannot open shared object file: No such file or directory

Please search for the python3 version of PyQt5.QtCore in your distributions packages, or see https://github.com/qutebrowser/qutebrowser/blob/master/doc/install.asciidoc

If you installed a qutebrowser package for your distribution, please report this as a bug.
```
Granted though, even if I installed PyQt5, the file `libQt5Core.so.5` doesn't actually exist. Running
```sh
$ find / | grep Qt5Core
```
produces:
```
/usr/lib/libQt5Core.so.5.14
/usr/lib/libQt5Core.so.5.14.2
```
Now, I won't lie, I'm not very good with this stuff, but I think this means that `libQt5Core.so.5.14` should actually be `libQt5Core.so.5`?
### Steps to reproduce the behavior
Just install ``python3-PyQt5-5.13.2_2`` (I think this is the latest version) and try running ``python3 -c 'import PyQt5.QtCore'``, it should complain about no `libQt5Core.so.5`

Thank you for your time btw, I appreciate the help


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-04-07  1:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 22:56 [ISSUE] Python3 can't import anything from PyQt5 (breaks Qutebrowser) ianayl
2020-04-07  1:15 ` q66
2020-04-07  1:16 ` q66
2020-04-07  1:36 ` ianayl
2020-04-07  1:36 ` [ISSUE] [CLOSED] " ianayl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).