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
Illegal instruction error #231
Comments
What error message do you get when you try to import on command line pip3 install pi3d --user Say, or ninepatch? |
pi3d and ninepatch can be installed fine using pip3. I meant that when I open the python3 interpreter (by just typing python3 on the command line) and type in "import pi3d" or "import ninepatch," I get an illegal instruction error and the python3 interpreter quits. |
I wonder if it's related to numpy/numpy#18131 (comment) What version of numpy do you now have installed (and what did pip3 get you)? And does the pi3d error happen now you have a different numpy? PS does PPS might be worth running a one line python script rather than using the python interpreter terminal so you can see the actual error message with some line numbers and a trace |
When I installed picframe initially, numpy-1.21.5 was installed as a dependency. This was giving an illegal instruction error when I tried importing numpy as a module using the python3 interpreter. I then did "pip3 uninstall numpy" followed by "sudo apt install python3-numpy." Now, when I import numpy using the python3 interpreter, it works fine. I did not test whether pi3d or ninepatch were importing fine before I changed the numpy version. Thanks for checking about PIL further. It indeed is not working correctly:
|
Hmm, that looks like just the difference between I take it from your comment
that when you try to import either of them now you get the 'illegal instruction' and interpreter crash? |
Sorry about the case error! "from PIL import Image" also gives me an illegal instruction error. pi@raspberrypi:~ $ python3
Writing a one line python script (consisting of just importing the modules as above in the interpreter) also gave me "Illegal instruction." Did not produce line numbers and a trace. How can I check that my hardware architecture is compatible with all these modules? Thanks for all your help! |
It looks like it's the PIL Image import that's causing the problem as pi3d and ninepatch both use that (as does picframe in lots of places). It is possible to set up pi3d to not use PIL but that seems to being circumvented by the the fact that it produces too serious an error to catch in a try block https://github.com/tipam/pi3d/blob/1f1c822dc3ac58344ad2d5468978d62e51710df4/pi3d/constants/__init__.py#L63 What version do you get if you do >>> import PIL
>>> PIL.__version__
'4.3.0'
>>> The whole thing does seem odd. You can (or used to be able. ED - just checked and it seems to be in buster https://packages.debian.org/source/buster/pillow) install a debian package for PIL
|
I get
Should I uninstall this PIL and get the debian package instead? That's kind of what I did for numpy |
Well it would give a bit more info whether it works or not. |
Sweet! Uninstalling that pillow version and installing the debian package resolved everything. I also got the "Have a Break" photo with picframe. Thanks so much for your help and patience! |
Thanks for reporting the problem. It looks like there might be an issue with PIL 9.0.0 on arm 6 at least so I had better do a bit more checking on that. But the fact that you had a problem with numpy as well makes me think that both are related to something else. |
I'm running PIL 9.0.0 without an issue. For the next release I changed the dependency to this version because it fixes #182 I simply run Do we have an issue here? |
Close this, because of no feedback. |
Hello
I was following the instructions for installation from here (https://www.thedigitalpictureframe.com/how-to-add-crossfading-slide-transitions-to-your-digital-picture-frame-using-pi3d/) for Raspberry pi 2, running buster. Everything went fine till I tried to launch picframe using "picframe -i ." for initial configuration. Entering that just gives me an Illegal instruction error. Why would this be?
Thanks
Update after about 1 hour more working on this: it seems that when I import the following modules into python3, I get illegal instruction errors as well: numpy, ninepatch and pi3d. I was able to fix the numpy error by installing the Raspbian version of numpy as instructed here: https://numpy.org/devdocs/user/troubleshooting-importerror.html. Not quite sure how to fix the issue for ninepatch or pi3d. And not quite sure if just fixing these modules would resolve the overall error.
The following modules import fine: iptcinfo3, PIL, exifread, picframe, yaml, paho.
The text was updated successfully, but these errors were encountered: