PyQt5 bug report: Application fails to start when cwd contains non-ASCII characters

Jean Abou Samra jean at abou-samra.fr
Thu Aug 10 19:15:37 BST 2023


Hi,

Is PyQt5 still receiving fixes?

This bug was driving me nuts by appearing seemingly at random until
I was able to identify the cause.

-----------------------------------

$ pwd
/home/jean/tmp


$ ls
ascii  non-äscii  reproduce.sh


$ cat reproduce.sh 
python -m venv venv
source venv/bin/activate
pip install PyQt5
python -c "from PyQt5.QtWidgets import QApplication; app = QApplication([])"


$ pushd ascii; sh ../reproduce.sh; popd
~/tmp/ascii ~/tmp
Collecting PyQt5
  Using cached PyQt5-5.15.9-cp37-abi3-manylinux_2_17_x86_64.whl (8.4 MB)
Collecting PyQt5-sip<13,>=12.11
  Using cached PyQt5_sip-12.12.2-cp311-cp311-
manylinux_2_5_x86_64.manylinux1_x86_64.whl (346 kB)
Collecting PyQt5-Qt5>=5.15.2
  Using cached PyQt5_Qt5-5.15.2-py3-none-manylinux2014_x86_64.whl (59.9 MB)
Installing collected packages: PyQt5-Qt5, PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.9 PyQt5-Qt5-5.15.2 PyQt5-sip-12.12.2

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland
to run on Wayland anyway.


$ pushd non-äscii; sh ../reproduce.sh; popd
~/tmp/non-äscii ~/tmp
Collecting PyQt5
  Using cached PyQt5-5.15.9-cp37-abi3-manylinux_2_17_x86_64.whl (8.4 MB)
Collecting PyQt5-sip<13,>=12.11
  Using cached PyQt5_sip-12.12.2-cp311-cp311-
manylinux_2_5_x86_64.manylinux1_x86_64.whl (346 kB)
Collecting PyQt5-Qt5>=5.15.2
  Using cached PyQt5_Qt5-5.15.2-py3-none-manylinux2014_x86_64.whl (59.9 MB)
Installing collected packages: PyQt5-Qt5, PyQt5-sip, PyQt5
Successfully installed PyQt5-5.15.9 PyQt5-Qt5-5.15.2 PyQt5-sip-12.12.2

[notice] A new release of pip available: 22.3.1 -> 23.2.1
[notice] To update, run: pip install --upgrade pip
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland
to run on Wayland anyway.
qt.qpa.plugin: Could not find the Qt platform plugin "xcb" in ""
This application failed to start because no Qt platform plugin could be
initialized. Reinstalling the application may fix this problem.

../reproduce.sh : ligne 4 : 114140 Abandon                 (core dumped)python -
c "from PyQt5.QtWidgets import QApplication; app = QApplication([])"

-----------------------------------


This is on Fedora 38.



Thanks,

Jean



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: This is a digitally signed message part
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20230810/fd8aae19/attachment.sig>


More information about the PyQt mailing list