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
Type Error using CoolProp 6.6.0 on Raspberry Pi4, python 3.9 #2340
Comments
I tried to use the Raspbery PI for Desktop ISO, and I was able to get it booting in VirtualBox (eventually). I built and used the wheel and it worked flawlessly. I did: The pip line is probably not necessary (there is an issue with old python versions). So the issue might be with the arm64 version of python, which would make no sense to me, since the macs also use arm64, and that works fine too. There can be issues with wide unicode builds, but I don't understand why only on raspberry pi it is expected that the function takes bytes, and on all other platforms the argument is expected to be a string. |
For future readers: make sure you turn the number of CPU to >1 in virtualbox. Otherwise you get kernel panics, I think this is the reason for this problem I had: https://forums.virtualbox.org/viewtopic.php?t=105926 . Mount the ISO, but don't use the ISO as the image. |
Another thing to try is: https://interrupt.memfault.com/blog/emulating-raspberry-pi-in-qemu#putting-it-all-in-docker |
I have the qemu up and running with the link from above, but it is SLOW(!!). I bit the bullet and have a Raspberry Pi headed my way in a few days. Hopefully I can get to the bottom of this issue. |
Access to a Pi seems to be needed. There is something odd with the python that is unlike all other platforms and emulation is not viable since the problem cannot be reproduced with non-arm builds. |
Dear Ian richard@raspberrypi: I did check that my Buster was 64 bit: I appreciate your time and the fact that you have a Pi4 on the way! Richard |
My pi should arrive soon. Until then, you'll just have to wait as I have
no idea what is going on.
|
Some good news and bad news. I got my pi, set it up, I'm at:
and it worked just fine. I did:
then I set up a virtual env with
so my next guess is that there is a bug bug in the Raspberry Pi version of Python, that was fixed in the version I have. Can you update your python to 3.11 and try again? Otherwise I can I think make a virtual env with an older version of python. |
Just want to pop in here and give Ian an award for buying a Raspberry PI just to squash a bug. |
I think buster might be the problem. I cannot replicate the error on either bullseye or bookworm. In fact, on modern raspberry pi OS, you can use the binary wheels, which is awesome. |
My pleasure ! |
Ian The new install I tried on a spare Pi4 at home. The main Pi I am working with I only, currently, have remote access to via SSH and Real VNC. It is setup in an Argon case with a built-in SSD and is being used as a controller for a small scale hydrogen filling station - it has a fair number of inputs and outputs and a number of python libraries which need to be stable! There is a limit as to how much I can do remotely. Thanks for your help |
@hatfieldr This project sounds so cool! Impressed a Pi is enough to drive your filling station. Do you have further information on this project somewhere? I am glad to hear that you were able to get things working with bookworm. I fear there is nothing that can be done in buster to fix things, I think you might have to rebuild your main Pi if you want to work with CoolProp in your application. |
I also update from Buster to Bookworm link. |
Raspberry Pi 4 running Buster
Python 3.9.2
Cython 3.0.6
CoolProp 6.6.0
I originally installed CoolProp via pip:
There were no obvious problems with the installation but as I had an error trying to import it I did a manual install:
Again there were no installation errors but on trying to import the module I get a type error:
I have seen a similar problem described by others but I cant find a solution. I have not tried degrading python to say 3.8 , as I have many other python packages that are working fine and would be affected.
Help would be greatly appreciated!
The text was updated successfully, but these errors were encountered: