Kenshin9977 / video-dl

A GUI for yt-dlp that aims to simplify its usage.
MIT License
32 stars 7 forks source link

new GUI cant run on M1 Mac #16

Closed ghost closed 1 year ago

ghost commented 1 year ago

run in virtual env 3.10.9 after installing all missing modules, it shows pop-up windows with error below

截屏2022-12-26 09 11 07
❯ python3 app.py
Unhandled error processing page session 85830c5c-ad7e-4e2f-bfa4-faa6d17df820: Traceback (most recent call last):
  File "/Users/usrname/.virtualenvs/33-video-dl-310-9-shared/lib/python3.10/site-packages/flet/flet.py", line 212, in on_session_created
    session_handler(page)
  File "/Users/usrname/Downloads/video-dl-master 2/gui_flet.py", line 764, in videodl_fletgui
    videodl_app = VideodlApp(page)
  File "/Users/usrname/Downloads/video-dl-master 2/gui_flet.py", line 50, in __init__
    self.media_link = ft.TextField(
TypeError: TextField.__init__() got an unexpected keyword argument 'dense'

btw maybe author can consider code gui with CustomTkinter https://github.com/TomSchimansky/CustomTkinter

Kenshin9977 commented 1 year ago

Ah, it's probably because this argument is still only in flet's pre-releases. Try: pip uninstall flet pip install flet --pre To install the latest pre-release version. I thought about using custom-tkinter at the beginning but as tkinter works only for desktop apps and a goal I have is to get this app compatible with mobiles, flet seemed more appropriate. Although very recent and still a WIP, it's an already very promising framework partly because it's based on Flutter