Skip to content
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

Error "No module named PIL" during running start script #224

Open
tankist-git-2 opened this issue Jul 13, 2024 · 5 comments
Open

Error "No module named PIL" during running start script #224

tankist-git-2 opened this issue Jul 13, 2024 · 5 comments

Comments

@tankist-git-2
Copy link

After I run "start" script I've got the error:

No module named 'PIL'

I can easily run python shell and import that module like "import PIL" and it's ok, but the script doesn't see that module. I tried Windows 10 (PC, Python 3.12) and Ubuntu 22.04 (Orange Pi 5, Python 3.10) and I have same problems.

@rupeshs
Copy link
Owner

rupeshs commented Jul 14, 2024

@tankist-git-2 Please follow the installation steps.
https://youtube.com/watch?v=331QGLNY4sU

@SogaChew
Copy link

SogaChew commented Aug 5, 2024

I'm still having the same error, any help? Ive followed the video

@notbillable
Copy link

It looks like the PIL version that is used in this branch has been deprecated.
In order to resolve it, I had to completely uninstall current version of python and re-install the older version (version 3.11) as that contains the LIB version that is used in this package.
Make sure to update the environment settings to point to the older version of Python as mine didnt update and I had to manually update it.

@gigacoomer69
Copy link

gigacoomer69 commented Sep 5, 2024

@tankist-git-2 if you are using Python 3.12+, assuming you starting from beginning, try changing the line in requirements.txt starting with "Pillow" to "Pillow==10.4.0". you might also want to change "mediapipe" to "mediapipe==0.10.13". then run install.bat. it should give no error.

EDIT:

actually nevermind. the setup finish without error but starting will still give error. you need to use python 3.11.

@sunaj
Copy link

sunaj commented Sep 7, 2024

It looks like the PIL version that is used in this branch has been deprecated. In order to resolve it, I had to completely uninstall current version of python and re-install the older version (version 3.11) as that contains the LIB version that is used in this package [...]

Latest supported version of Python is indeed 3.11 - so simply use that in venv environment and all works according to spec. No need to uninstall 3.12. Simply open a powershell instance and (after installing 3.11) do;
python311 -m venv D:\A-Dev\Python\My311Env
Then activate the venv when inside the dir
.\Scripts\activate.ps1
Then go ahead and install according to docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants