#๐ photos not recognized
32 messages ยท Page 1 of 1 (latest)
@shrewd flume
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
can you open your alien.jpg file and see if its not corrupted?
Try it with PIL https://stackoverflow.com/a/47357363/1431104
Try a full path. C:/Users/....alien.jpg
that would be if the error stated that it couldn't find the image... This one says its having trouble opening the found image.
pip install pillow
how did you install it?
!dashmpip
When trying to install a package via pip, it's recommended to invoke pip as a module: python -m pip install your_package.
Why would we use python -m pip instead of pip?
Invoking pip as a module ensures you know which pip you're using. This is helpful if you have multiple Python versions. You always know which Python version you're installing packages to.
Note
The exact python command you invoke can vary. It may be python3 or py, ensure it's correct for your system.
can you show me the command and what happens after you run that command?
Its installed. But... I doubt pycharm picked that up
No
You need Pycharm to install that package. Don't install via CMD
pillow
how big is alien.jpg in resolution?
Your tkinter canvas is 80x80
idk where you're getting the code from
You can still finish it. You just have to understand what Pillow is for and why its necessary for your image to work
Beyond that, just make sure to work around it
Idk if youtube code is old but if this is about making a game, you should learn PyGame instead
tkinter is like data entry and search app GUI thing
It doesn't need a lot of refresh.
PyGame does the refresh
Yea. Stop following an old Youtube video to learn how to code tkinter.
https://tkdocs.com has a tutorial
TkDocs features tutorials and other material for modern Tk GUI development, using Python/Tkinter, Tcl, Ruby, and Perl/Tkx.
Follow that and its alot more updated than an old YT
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.