You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pip install pendulum fails on raspbery pi 4 (arm7) #504
Linux raspberrypi 5.4.83+ #1379 Mon Dec 14 13:06:05 GMT 2020 armv6l
Setting up a clean install on a RPI 0 based on 2021-01-11-raspios-buster-armhf-lite.zip. Ran into this issue running sudo pip3 install results. Just being new, I was happy that @ner0tic 's work-around works like a charm, thanks!
Remco
Also had this issue on a Raspberry pi 3b+ running 5.10.17-v7+
The 2.1.2 build was failing so I specified 2.1.1. in my requirements.txt and the pi installed it just fine. Seems like an issue with the setup.py file for this version. Not sure what about the issue is specific to the pi OS.
2.1.2
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
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-0h4qvms8/pendulum/setup.py'
2.1.1
Building wheels for collected packages: pendulum
Running setup.py bdist_wheel for pendulum ... error
Complete output from command /home/.../venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-mlhoxes9/pendulum/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-2gp8i9o8 --python-tag cp37:
usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
or: -c --help [cmd1 cmd2 ...]
or: -c --help-commands
or: -c cmd --help
error: invalid command 'bdist_wheel'
----------------------------------------
Failed building wheel for pendulum
Running setup.py clean for pendulum
Failed to build pendulum
Installing collected packages: pytzdata, pendulum
Running setup.py install for pendulum ... done
It seems like this is also showing up on the Apple M1 computers since that's also ARM-based. The manylinux wheel appears to have the setup.py file present for v2.1.2.
Collecting pendulum==2.1.2 (from habapp)
Using cached https://files.pythonhosted.org/packages/db/15/6e89ae7cde7907118769ed3d2481566d05b5fd362724025198bb95faf599/pendulum-2.1.2.tar.gz
Installing build dependencies ... done
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
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-lscf1s_f/pendulum/setup.py'
@sdispater
I created a small python application that allows you to create home automation rules in python.
I've shared it, so other people can use it too and don't have to start from scratch.
However 95% of my support questions in the forum have been about the failing installation of pendulum and the real frustrating part is not the amount of cries for help but that I can't properly help since the workarounds above work for some people and for some they just fail.
Could you please fix the setup issues?
A simple fix could be to just include a setup.py until it's clear why the installation is failing.
@sdispater I created a small python application that allows you to create home automation rules in python. I've shared it, so other people can use it too and don't have to start from scratch. However 95% of my support questions in the forum have been about the failing installation of pendulum and the real frustrating part is not the amount of cries for help but that I can't properly help since the workarounds above work for some people and for some they just fail.
Could you please fix the setup issues? A simple fix could be to just include a setup.py until it's clear why the installation is failing.
Activity
ner0tic commentedon Nov 1, 2020
I also encountered this problem.
My current installation workaround.
mghurd commentedon Nov 11, 2020
This workaround is not working for me.
~# python3 -m pip install pendulum --upgrade
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pendulum
Using cached https://files.pythonhosted.org/packages/db/15/6e89ae7cde7907118769ed3d2481566d05b5fd362724025198bb95faf599/pendulum-2.1.2.tar.gz
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-b7gqf5ij/pendulum/setup.py'
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-b7gqf5ij/pendulum/
mghurd commentedon Nov 11, 2020
OK. Had to upgrade my pip3 and could then manually download the whl file and performed the upgrade.
irdroid3 commentedon Nov 16, 2020
I have just had this on a RPi Zero. (OS and not RPi4 related then...) :
I also got around this with :
sudo python3 -m pip install pendulum==2.1.1It appears that the file downloaded for v2.1.2 -
https://files.pythonhosted.org/packages/db/15/6e89ae7cde7907118769ed3d2481566d05b5fd362724025198bb95faf599/pendulum-2.1.2.tar.gz - Is MISSING the setup.py file, where as v2.1.1 -
https://files.pythonhosted.org/packages/9a/0d/e503011d347e2d41f4fb05c6b3d7fbfcc8b2c25baba13e1804597e7d2412/pendulum-2.1.1.tar.gz - HAS a setup.py file.
SO, is this a package build problem in v2.1.2 ?
Regards, Ian
.
RemBrandNL commentedon Jan 15, 2021
Setting up a clean install on a RPI 0 based on 2021-01-11-raspios-buster-armhf-lite.zip. Ran into this issue running
sudo pip3 install results. Just being new, I was happy that @ner0tic 's work-around works like a charm, thanks!Remco
fransimo commentedon Mar 5, 2021
For me
pip install -U pipworked fine (on a virtual env)
jeremyehack commentedon Mar 25, 2021
Also had this issue on a Raspberry pi 3b+ running 5.10.17-v7+
The 2.1.2 build was failing so I specified 2.1.1. in my requirements.txt and the pi installed it just fine. Seems like an issue with the setup.py file for this version. Not sure what about the issue is specific to the pi OS.
2.1.2
2.1.1
kimaero commentedon Jul 15, 2021
Same here. 2.1.1 was successfully installed while 2.1.2 gave the same errors as people higher in the thread was having
AetherUnbound commentedon Oct 22, 2021
It seems like this is also showing up on the Apple M1 computers since that's also ARM-based. The
manylinuxwheel appears to have thesetup.pyfile present for v2.1.2.spacemanspiff2007 commentedon Nov 1, 2021
Installation still fails on a raspberry pi:
spacemanspiff2007 commentedon Dec 11, 2021
@sdispater
I created a small python application that allows you to create home automation rules in python.
I've shared it, so other people can use it too and don't have to start from scratch.
However 95% of my support questions in the forum have been about the failing installation of pendulum and the real frustrating part is not the amount of cries for help but that I can't properly help since the workarounds above work for some people and for some they just fail.
Could you please fix the setup issues?
A simple fix could be to just include a setup.py until it's clear why the installation is failing.
wireva commentedon Jan 21, 2022
@spacemanspiff2007
I am trying to install HABApp rn too. The workarround works for me but the version is fixed so it tries to install a broken version.
spacemanspiff2007 commentedon Jan 22, 2022
What do you mean?