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

cannot run ImageDemo.py #59

Open
ahpu2014 opened this issue May 16, 2020 · 2 comments
Open

cannot run ImageDemo.py #59

ahpu2014 opened this issue May 16, 2020 · 2 comments

Comments

@ahpu2014
Copy link

Hi,
when I run ImageDemo.py ,some mistakes always happen.
eg:ValueError: mismatch: parameter has shape (256, 2) but value to set has shape (256, 3136)
Thanks for your reply!

@MarekKowalski
Copy link
Owner

Can you give more context, for example the full text of the exception with trace and line number?

Thanks,

Marek

@Itajobi
Copy link

Itajobi commented Sep 18, 2023

HI,
How do I run imageDemo.py without encountering error.
The error message is;
Traceback (most recent call last):
File "C:\Users\xpert\Desktop\Data Analysis\Python Programming\Coding Files\C8Ex8 - ImageDemo.py", line 42, in
imageDemo() # Create GUI
^^^^^^^^^^^
File "C:\Users\xpert\Desktop\Data Analysis\Python Programming\Coding Files\C8Ex8 - ImageDemo.py", line 10, in init
caImage = PhotoImage(file="image/ca.gif")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

File "C:\Program Files\Python311\Lib\tkinter_init_.py", line 4130, in init
Image.init(self, 'photo', name, cnf, master, **kw)

File "C:\Program Files\Python311\Lib\tkinter_init_.py", line 4075, in init
self.tk.call(('image', 'create', imgtype, name,) + options)
_tkinter.TclError: couldn't recognize data in image file "image/ca.gif"

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

3 participants