ImportError: No module named 'PIL' #12
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: m.giller/E-Paper-Calendar#12
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Submitting Issues
Just tried to make this epaper calendar work, but ran into some errors.... This is what i did:
bash -c "$(curl -sL https://raw.githubusercontent.com/mgfcf/E-Paper-Calendar/master/Installer-with-debug.sh)"
-bash: python3.5: command not found
sudo apt-get install python3.5
Version info;
Version: 1.6
Installer version: 1.6 (Mid March 2019)
configuration file: /home/pi/E-Paper-Master/Calendar/settings.py
If the time was set correctly, you installed this software on:
Sun 5 Jan 21:59:24 CET 2020
Other things
can someone help me fix this?
I used the latest Raspbian Lite image, downloaded today. I noticed it's called Buster, not Stretch. Is this a problem?
I installed Python PIL (by using
sudo apt-get install python-pil' but the error stays the same!
Hey @iroQuai ,
thanks for trying out the software!
The Rapsbian image should not be a problem in most cases. I assume that you started the software with the command mentioned in the installer? The command is using Python 3.5 which may not be installed or, as it is, outdated. I am going to generalize the installer after the problem is resolved.
As long as you use python 3 it should work just fine. With
python --version
you can see your default python version. If this is some version of python 2, try usingpython3 --version
.The software should than be able to run with
python /home/pi/E-Paper-Master/Calendar/E-Paper.py
orpython3 /home/pi/E-Paper-Master/Calendar/E-Paper.py
.I assume, that the software could not find the PIL package, because the packages are not associated with the python 3.5 version installed afterwards the package were installed with pip3.
So please have a try with the more general python commands and report back.
Max
After looking at the installer again, I see that you probably do not have installed another python 3 version. So I assume, that
python3 --version
just gives you something about python 3.5.It would probably be enough, if you just rerun the installer, so that all the installed packages will be accessible through your now installed python 3.5.
Max
Hi, thanks for the quick response.
After submitting the issue and reading some more about the e-paper display, I've found that it is needed to install some libraries. So afterwards I followed instructions as mentioned here. Or maybe this is already part of your installer? I don't know but just tried...
Afterwards I found your suggestions. Today i've tried them:
In raspi-config i've i've set locale (in localisation options) to "en_GB".
In settings.py i've changed language from "en" to "en_GB"
This created a whole new error!
I'm lost again and will just wait for your instructions ;)
Hey!
The python3 command seems to be the correct one and you should stick with the locale
en_GB
, that is probably not causing the new issue.I did some research and found two possibilities:
Based on https://stackoverflow.com/questions/53784520/numpy-import-error-python3-on-raspberry-pi and many similiar errors on GitHub, it might be helpful to do
sudo apt-get install python-dev libatlas-base-dev
to install some missing dependencies for numpy.On the other hand, based on https://www.reddit.com/r/raspberry_pi/comments/86dwpz/cant_install_numpy_through_pip3/?utm_source=share&utm_medium=web2x, there might be some conflicting numpy installations at work. One installed via pip and the other with apt. As described in the reddit, pip may not have the correct architecture build for the raspberry, but apt should have. As the installer script installs numpy with pip, there might be some issues. Removing the pip one with
pip3 uninstall numpy
or the apt one withsudo apt-get remove python-numpy
may solve the issue.You can check if you have numpy installed with apt with
apt list --installed | grep 'numpy'
. You should see something similiar topython-numpy/stable ... [installed]
.I suggest that you start with the first option, installing possibly missing dependencies and restart the calendar with python3. There should be no need to rerun the installer.
If that does not work, check with
apt list --installed | grep 'numpy'
if there is a conflicting numpy instance installed. If that is the case, I suggest, based on the information from the reddit, to uninstall the pip version withpip3 uninstall numpy
as the apt version may be more reliable. Than retry the software.For your information: pip is probably associated with the default python version, which is python2 in your case, so you want to use pip3 to explicitly use the python3 version. You can check the associated python version with
pip(3) --version
.Good luck, Let me know how it goes!
Max
The first option worked!! Great :)
Now i can start tweaking.... thanks for the help so far!