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

help making this work please :) #1

Open
skynetPhil opened this issue Dec 1, 2017 · 2 comments
Open

help making this work please :) #1

skynetPhil opened this issue Dec 1, 2017 · 2 comments

Comments

@skynetPhil
Copy link

Hello !
great work on the script it looks all pretty straightforward but I'm getting an error when running the script :
I installed all the dependencies without errors
any idea what is the problem ?
thanks for your help!
Phil

Traceback (most recent call last):
File "main.py", line 64, in
main()
File "main.py", line 62, in main
printPhoto('photo_processed.jpg')
File "main.py", line 54, in printPhoto
printer.printImage(Image.open(f_in))
File "/home/pi/Downloads/1bitphotobooth-master/thermalprinter.py", line 468, in printImage
import Image
ImportError: No module named Image

@zoetrope69
Copy link
Owner

Haven't looked at this in a while. Maybe the module is called something different now?

https://pillow.readthedocs.io/en/latest/installation.html

Have a look through here and see if you can find anything

@zoetrope69
Copy link
Owner

Just noticed:

https://github.com/zaccolley/1bitphotobooth/blob/master/thermalprinter.py#L468

The docs say:

Pillow >= 1.0 no longer supports “import Image”. Please use “from PIL import Image” instead.

We may need to install a version of Pillow below 1

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

2 participants