-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Pyrsistent fails to build on 64-bit Raspberry Pi OS in Mycodo virtualenv #1149
Comments
Change the setuptools version in Mycodo/install/requirements.txt to setuptools==60.7.0 and rerun setup.sh to see if it fixes the issue. |
Ok I tried that and I got the same result pyrsistent failed to build again. Could it be the version 0.18.1 of pyrsistent that is causing the problem? |
I just pushed an update that pegs the setuptools version at 60.6.0, which is the previous version. You will need to pull the latest code from master with If that doesn't work, change this line: Mycodo/mycodo/scripts/upgrade_commands.sh Line 22 in db24ee8
And this line: Mycodo/install/requirements.txt Line 30 in db24ee8
to a previous version found at https://pypi.org/project/setuptools/#history and see if going back to a previous version allows it to install. I just did a fresh install and am not having the same issue. Also, you neglected to mention the version of raspberry Pi OS, either Lite or Desktop. |
I am using desktop version of 64-bit bullseye raspian. |
I do not have that line in my upgrade_commands.sh file. Do I need to add that? |
Then that means you are not using the code on the master branch. The command I mentioned in #1149 (comment) instructs how to clone the Mycodo repo, which will obtain the code in the master branch. |
I got the master branch code after you sent me this message. I tried different versions of setuptools for a while but kept getting the same results. I ended up erasing my sd card and installing the latest 32-bit version of raspberry pi os with desktop and then installing mycodo and didn't have any problems. So maybe it was something with the 64-bit version that was causing an issue. I got it up and running now no problems so I am going to go ahead and start playing with it. Thank you for trying to help me out. |
You're welcome. Glad you figured it out! |
I'm hitting this bug as well, pyrsistent fails to build and mycodoflask.service fails to start. Also on a brand new 64bit install. |
Mycodo runs in a virtualenv, so you are not solving the issue by installing a pip package globally. The env is located at ~/Mycodo/env/ |
Which makes me wonder why it works globally but not in the virtualenv. |
Part of the setup.log where it fails: × Building wheel for pyrsistent (pyproject.toml) did not run successfully. note: This error originates from a subprocess, and is likely not a problem with pip. |
Similar error recently at pypa/pip#10857 |
I just committed a fix (60993eb) that I can confirm allows install on 64-bit Raspberry Pi OS. If you want to test, make sure you've deleted the current Mycodo directory, then get the latest code from master and install: git clone https://github.com/kizniche/Mycodo
sudo ~/Mycodo/install/setup.sh |
This issue has been mentioned on DIY Automation Forum. There might be relevant details there: https://forum.kylegabriel.com/t/not-able-to-install-mycodo/782/3 |
I had a similar issue with an other packages, and it apparently comes from setuptools. Following this: pypa/setuptools#3278 |
What is the purpose? What issue does this resolve? |
I found this thread while looking up my problem, and once I resolved it, I thought I would post my solution here to potentially help somebody with a similar error. I edited my comment with the link that didn't show for the source answer. If you feel that it is misplaced, feel free do remove it. |
This worked perfectly to solve an error (AttributeError: install_layout. Did you mean: 'install_platlib'?) I was getting while building hnswlib as part of installing some python packages. |
In my case (not about Raspberry Pi but installing ffmpy), I got it work by "python3 -m pip install -U setuptools" |
Describe the problem/bug
During installation I receive an error that pyrsistent has failed to build. The installation will continue afterwards and will fail to connect with the daemon at the end. I have built pyrsistent outside of the install with no problems. I have searched around the github and tried various fixes but nothing helped so i decided to open an issue.
Versions:
Reproducibility
Please list specific setup details that are involved and the steps to reproduce the behavior:
It is a fresh install of raspian. All I did afterward was setup wlan and create an ssh file. I the did apt update/upgrade and then started trying to install Mycodo.
Expected behavior
Expect to install without error.
Appreciate any help.
setup.log
The text was updated successfully, but these errors were encountered: