-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Can't run on PyPy on ARM #2850
Comments
That's not a combination that I've ever heard of anyone trying. We could probably check on a raspberry pi, but that's about as close to that hardware as I've got access to. |
Raspberry Pi should have similar hardware. I was trying to run OctoPrint on PyPy as it's much faster (you can really notice the difference), but there's a plugin (the one that I referenced) that depends on Pillow. |
I've tried this on a RaspberryPi2, running Raspbian Stretch, and I can't replicate this issue. With system pypy, (and pypy-dev) I can build from source on current master (which includes a tweak for fixing compilation on Debian. Tests mostly pass. I can also install from I was unable to get the latest pypy 5.9.0 to run at all -- it failed with a library error. |
I don't know, I just reinstalled it again in a new virtualenv and I still get
As a temporary workaround, if it works on your setup, you should be able to build and upload an armhf wheel to PyPI, but that's just a workaround. |
Any updates on this? What options do I need to pass to get the most verbose build output so I can send it here? |
By the way, I tried to build it again with https://hastebin.com/jisajetiba.hs
I'll try to install all optional libraries and build it again. Update: it didn't help. I checked |
I tried to install it again after a few months and nothing has changed. I'll try to ask PyPy devs and see if they know why this happens. EDIT: |
PyPy 5.6 is quite an old version of PyPy, could you try with a newer version? We have worked quite a bit on the compatibility layer needed to support c-extension modules over the last 15 months, so you may find that PyPy 5.10 just works, as it does for me on an Odroid board. You simply download the EL or HF (HF is modern, but check this page to find out if your hardware needs EL), untar the file into a directory, and then call pypy-c -mensurepip to install pip and setuptools, then pypy -mpip install pillow You seem to be using hf, maybe you should be using el with that hardware? You could also use nm to find out whether that function is exported: @wiredfool - if 5.10 doesn't work for you, could you file an issue (assuming you haven't)? |
@mattip
so it is exported. I'll update PyPy and let you know. |
I downloaded PyPy from their website. Now I have this issue:
I think that's because I downloaded the Raspbian image and this is not Raspbian (it's Debian stretch). I'll try to build it from source. BTW
|
it seems something is not right with your build tools. Can you build and run any gcc project with a shared library? |
I fried my Banana Pi a few days ago so I can't test it any more 🤦 |
Unfortunately, I'm between pis as well. |
@depau @wiredfool So we need a raspberry PI to test this? |
We never did get it to replicate on a RaspberryPI. |
@aclark4life I think so. Maybe you can replicate it with qemu. |
I'm sure we could get someone to donate a Raspberry Pi, we just need a volunteer to fix it. @wiredfool If a Raspberry Pi shows up at your door, do you want to fix this one still? |
I’ve got pis, I just need to retrieve them from teenager. |
The BitBucket link no longer works, but it can be seen at https://web.archive.org/web/20200801201818/https://bitbucket.org/pypy/pypy/issues/2762 Also, Pillow no longer supports Python 2.7, and Debian 9 has also stopped receiving security updates. |
The correct link is now https://foss.heptapod.net/pypy/pypy/-/issues/2762 |
Note that the BitBucket issue closed, with the comment that it "seems to be a specific system failure" |
Given that we were unable to replicate this, and the last report from the OP is they no longer have an environment to replicate this, closing. |
What did you do?
What did you expect to happen?
I expected it to import Image.
What actually happened?
What versions of Pillow and Python are you using?
The text was updated successfully, but these errors were encountered: