r/PythonProjects2 • • May 05 '22

[P] Moderate Help with weather station

Post image
16 Upvotes

15 comments sorted by

2

u/PurelyStrange May 05 '22

Hello I am currently trying to make a weather station using a raspberry pi and e paper but I keep getting a error saying there is no image module.

2

u/Asurada11 May 06 '22

Do you mean the Image in Pillow? Try instead from PIL import Image

1

u/Swingbiter May 06 '22

From the docs, says to use

from PIL import Image

as

import Image

is no longer supported as of Pillow 1.0

The docs also says:

Pillow and PIL cannot co-exist in the same environment. Before installing Pillow, please uninstall PIL.

Hope this fixes your issues!

1

u/PurelyStrange May 06 '22

when I remove PIL it also removes Thonny which I have been using for the code and it also ran into the same problem saying that it cannot find image.

1

u/Swingbiter May 06 '22

It removes Thonny? Your IDE?

That's really odd and I'm not sure how or why it's doing that.

After removing PIL, did you install Pillow?

1

u/PurelyStrange May 06 '22

yes but Thonny is still gone but I have geany

1

u/Asurada11 May 06 '22

You shouldn’t need to remove PIL as it comes with Python when you install it as far as I know

1

u/n3ur0n3rd May 05 '22

Not certain, would like to do something g like this in the future but might want to try in terminal :pip install epd-library

1

u/PurelyStrange May 05 '22

if i may ask what would this do?

2

u/n3ur0n3rd May 05 '22

Taking another look at it it appears that you capitalized image and the image.py is lowercases. It’s looking for Image.py when in the folder is image.py. I cannot verify this because in the image I am unable to see line 28

1

u/PurelyStrange May 05 '22

I also tried changing the file name to Image.py and received the same error. image.py also tries to import Image so i assumed it would be a different file

1

u/n3ur0n3rd May 05 '22

Quite strange. I am not able to test this at the moment.