Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pip install fails on recent ubuntu/debian releases due to PyQt5 #20

Closed
cjd opened this issue Jan 20, 2020 · 2 comments
Closed

pip install fails on recent ubuntu/debian releases due to PyQt5 #20

cjd opened this issue Jan 20, 2020 · 2 comments

Comments

@cjd
Copy link

cjd commented Jan 20, 2020

When trying to install on recent debian/ubuntu it fails to build PyQt5

$ pip3 install --user tasmotizer
Collecting tasmotizer
Downloading https://files.pythonhosted.org/packages/2d/eb/def84f3c8667dde54e7c732b82e657cd2b7313e7a6d8009b79338bb278cc/tasmotizer-1.1.1-py3-none-any.whl (243kB)
100% |████████████████████████████████| 245kB 2.1MB/s
Collecting PyQt5>=5.10 (from tasmotizer)
Downloading https://files.pythonhosted.org/packages/3a/fb/eb51731f2dc7c22d8e1a63ba88fb702727b324c6352183a32f27f73b8116/PyQt5-5.14.1.tar.gz (3.2MB)
100% |████████████████████████████████| 3.2MB 343kB/s
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.7/tokenize.py", line 447, in open
buffer = _builtin_open(filename, 'rb')
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pip-install-9r2xzzk3/PyQt5/setup.py'

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

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-9r2xzzk3/PyQt5/

As a workaround you can install the system package instead via "sudo apt-get install python3-pyqt5"
Then the pip install completes

@helgeschneider
Copy link

helgeschneider commented Jan 21, 2020

i had different issues with debian buster and ubuntu 16.04
Fixed them in buster with:

apt install python3-pip python3-serial python3-pyqt5 --reinstall
pip3 install --upgrade pip
pip install tasmotizer

@jziolkowski
Copy link
Member

See #15 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants