#๐Ÿ”’ photos not recognized

32 messages ยท Page 1 of 1 (latest)

night briarBOT
#

@shrewd flume

Python help channel opened

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.

brittle meteor
#

can you open your alien.jpg file and see if its not corrupted?

novel bone
#

Try a full path. C:/Users/....alien.jpg

brittle meteor
#

pip install pillow

#

how did you install it?

#

!dashmpip

night briarBOT
#
Install packages with `python -m pip`

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.

brittle meteor
#

can you show me the command and what happens after you run that command?

novel bone
#

hmm from a quick look I don't think tkinter supports jpg yet

#

definitely need PIL

brittle meteor
#

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

#

Follow that and its alot more updated than an old YT

night briarBOT
#
Python help channel closed

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.