attreyabhatt / Python-Music-Player

Music Player built using Python and Tkinter
151 stars 85 forks source link

error #3

Open apnansya opened 5 years ago

apnansya commented 5 years ago

i am getting error while importing ttk themes and making root= tk.themedTk() .what should i do to overcome this error.

i am getting this error:

Traceback (most recent call last): File "C:/Users/Ananya/PycharmProject/ananyaprakash/main.py", line 12, in from ttkthemes import themed_tk as tk File "C:\Users\Ananya\Anaconda3\lib\site-packages\ttkthemes__init__.py", line 6, in from ttkthemes.themed_tk import ThemedTk File "C:\Users\Ananya\Anaconda3\lib\site-packages\ttkthemes\themed_tk.py", line 7, in from ._widget import ThemedWidget File "C:\Users\Ananya\Anaconda3\lib\site-packages\ttkthemes_widget.py", line 10, in from PIL import Image, ImageEnhance File "C:\Users\Ananya\Anaconda3\lib\site-packages\PIL\Image.py", line 90, in from . import _imaging as core ImportError: DLL load failed: The specified module could not be found.

ravikiran-pro commented 4 years ago

@apnansya ttk themes are not packed with tkinter ..it are just themes developed later. so pip install ttkthemes will work @attreyabhatt create requirements.txt ..It is just asking for lot of imports

attreyabhatt commented 4 years ago

Hey sorry. Probably forgot to mention that in the video. Can you comment on the video so that I can pin it?

bintangx1902 commented 4 years ago

im getting error while running the main.py

Traceback (most recent call last): File "C:\a-dev\music\main.py", line 73, in root.iconbitmap(r'images/melody.ico') File "C:\Program Files\Python38\lib\tkinter__init__.py", line 2071, in wm_iconbitmap return self.tk.call('wm', 'iconbitmap', self._w, bitmap) _tkinter.TclError: bitmap "images/melody.ico" not defined

ravikiran-pro commented 4 years ago

hide that line on 73 comment and boom it works...u maybe or would have used operating system which don't allow using ico as app icon..

root.tk.call('wm', 'iconphoto', root._w, tk.PhotoImage(file=path'))

Try this

Madhusudan9332 commented 1 year ago

im getting error while running the main.py

Traceback (most recent call last): File "C:\a-dev\music\main.py", line 73, in root.iconbitmap(r'images/melody.ico') File "C:\Program Files\Python38\lib\tkinterinit.py", line 2071, in wm_iconbitmap return self.tk.call('wm', 'iconbitmap', self._w, bitmap) _tkinter.TclError: bitmap "images/melody.ico" not defined

you have not defined images which is used in this code

Kalpana-d1 commented 1 year ago

= RESTART: C:/Users/kalpa/AppData/Local/Programs/Python/Python311/music player python.py pygame 2.3.0 (SDL 2.24.2, Python 3.11.3) Hello from the pygame community. https://www.pygame.org/contribute.html Traceback (most recent call last): File "C:/Users/kalpa/AppData/Local/Programs/Python/Python311/music player python.py", line 74, in root.iconbitmap(r'images/melody.ico') File "C:\Users\kalpa\AppData\Local\Programs\Python\Python311\Lib\tkinter__init__.py", line 2136, in wm_iconbitmap return self.tk.call('wm', 'iconbitmap', self._w, bitmap) _tkinter.TclError: bitmap "images/melody.ico" not defined

How can I solve this ??