Questions tagged [pyqt5]

40 questions
14
votes
8 answers

ImportError: No module named 'PyQt5.QtWebEngineWidgets'

I try to run a python script using PyQt5 QtWebEngineWidgets but it throws errors: from PyQt5.QtWebEngineWidgets import ( ImportError: No module named 'PyQt5.QtWebEngineWidgets' I think there is a package missing but which one?…
Michael
  • 371
8
votes
1 answer

How the heck can I install Qt5 on Ubuntu 16.04 LTS?

I have loads of programs that require Qt4 and I need to install programs that require Qt5. When I try to install Qt5 things start off dodgy and then proceed to insanity. I request friendly guidance. It's probably easiest for you to look at the…
6
votes
1 answer

Error: Make sure you have a working sip on your PATH or use the --sip argument to explicitly specify a working sip

I want to install PyQt5 as mentioned on the official documentation. Here is the ouput of the command they asked to run: begueradj@begueradj-hacker:~/Bureau/PyQt-gpl-5.4.1# python configure.py Querying qmake about your Qt installation... Determining…
user284234
5
votes
2 answers

Error: PyQt5 requires Qt v5.0 or later

I want to install PyQt5 on Ubuntu 14.04.2. Once downloaded and uncompressed, I run python configure.py as it is mentioned on the previous link. However, it asks me to install QT 5 or later. Which thing I did. When I come back to run the command…
user284234
5
votes
3 answers

Gear icon instead of App icon in taskbar

I made a .desktop file for a PyQt5 App, it does show the icon on the desktop, but when I open it and starts running, the icon is not showed in the taskbar, instead there is a gear icon. Thanks for your help .desktop file: [Desktop…
Cattivellio
  • 51
  • 1
  • 4
5
votes
3 answers

Shared library not found for PyQt5: libxcb-xinerama.so.0 => not found

I am setting up a python3 virtual environment for my development, so I am staying away from the package manager apt-install $ python3 -m venv . # create my environment in my working directory I then activated the venv and installed pyqt5 $ source…
Asicc
  • 51
5
votes
2 answers

How to get PyQt5 for Python2 on Ubuntu 20.04

I have a critical PyQt5 application which is still in the migration to Python3 phases. K/Ubuntu 20.04 has removed the required packaging to install PyQt5 for Python 2.7. I understand the importance of these apps to migrate to Py3, but I'm the user…
kurios
  • 81
4
votes
1 answer

Python 3 cannot import third party packages

I have Python version 3.5.2 and I have pip3, so I did sudo pip3 install pyqt5 That got installed in /usr/local/lib/python3.5/dist-packages However when I enter my python 3 interpreter and type import PyQt5 it gives me an error that it can't find…
Shadowfax
  • 201
4
votes
3 answers

How to install LDOCE5 Viewer on Ubuntu

I have used LDOCE5 Viewer for a few years now. It is a great software (i.e., viewer) for using Longman Dictionary of Contemporary English. On Ubuntu 14.04 and 16.04 I could install this software by using the following commands: sudo apt-get install…
rasul
  • 465
3
votes
2 answers

Best way to install PyQt5 for Python 2.7 on Ubuntu 14.04

I am attempting to install PyQt5 on my Ubuntu box. I have been able to install the packages for Python 3, however,I have code that depends on pygraphviz which has a hard dependency on Python 2.7. I was looking through the repos and I see that…
Joseph
  • 51
3
votes
1 answer

qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. in ubuntu 20.04

How should I solve this problem in Ubuntu 20.04? Invalid MIT-MAGIC-COOKIE-1 keyqt.qpa.xcb: could not connect to display :0 qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found. This application failed to start…
Mona Jalal
  • 4,695
  • 21
  • 74
  • 102
2
votes
1 answer

PyQt5: NameError: 'QtWidget' is not defined

Moving Flask app from local environment to Ubuntu 14.04. Getting 'NameError: 'QtWidgets' is not defined" Have done the following: sudo apt-get install python3-pyqt5 verified this with following command: apt-cache policy python3-pyqt5 …
psanc
  • 21
2
votes
1 answer

Python3 + ipython + pylab on Ubuntu 14.04

I really want to switch to Python 3, but Ubuntu 14.04 makes it difficult to do so when using the IPython+pylab framework. My settings: I have installed most of the important packages using pip rather than aptitude. Thes packages include numpy…
Bach
  • 751
2
votes
0 answers

ERROR: Cannot uninstall PyQt5 5.15.6, RECORD file not found. Hint: The package was installed by sip-build

I'm trying to debunk a real mess with PyQt5 on Ubuntu 22.04, it seems I reach a point where I cannot uninstall it, and I am wondering why exactly this is not possible, throwing me the following error: $ sudo -H pip3 uninstall PyQt5 Found existing…
s.k
  • 1,490
2
votes
2 answers

Can't find what package to install to get a proper Qtmultmedia gstreamer backend

In a new shiny ubuntu 18.04, I am trying to use a python3/pyqt5 script that use QtMultimedia. It was working fine in 17.10. And now even after installing a bunch of package, I still can't get it to work. I have the following error when a…
solsTiCe
  • 9,515
1
2 3