setnicka/ulozto-downloader

Version 3.5.1 fails to execute on Linux due to colorama

Closed this issue · 4 comments

Running on Void Linux with colorama on version v0.4.5. Is this strictly dependent on v0.4.6? Version locks should be included in requirements.txt.

[Autodetect] tkinter available, using --manual-captcha
Traceback (most recent call last):
  File "/bin/ulozto-downloader", line 33, in <module>
    sys.exit(load_entry_point('ulozto-downloader==3.5.1', 'console_scripts', 'ulozto-downloader')())
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/site-packages/uldlib/cmd.py", line 124, in run
    from colorama import just_fix_windows_console
ImportError: cannot import name 'just_fix_windows_console' from 'colorama' (/usr/lib/python3.11/site-packages/colorama/__init__.py)

I installed colorama version 0.4.6 and it started working. Please, include dependency versions in requirements.txt. Perhaps it is not even needed on Linux and could be avoided entirely?

Simply run pip install -U colorama which will update colorama to the latest version. See the following article for more details.

Yes, but requirements do not specify this constraint. This should be explicitly set as >=0.4.6 to avoid these sorts of problems. This goes for all dependencies.