I noticed that I had no .exe thumbnails and found that exe-thumbnailer was giving an error when running:
$ exe-thumbnailer any-exe.exe
Traceback (most recent call last):
File "/usr/bin/exe-thumbnailer", line 34, in <module>
sys.exit(load_entry_point('icoextract==0.1.4', 'console_scripts', 'exe-thumbnailer')())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/icoextract/scripts/thumbnailer.py", line 63, in main
generate_thumbnail(args.inputfile, args.outfile, large_size)
~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/icoextract/scripts/thumbnailer.py", line 33, in generate_thumbnail
im.save(outfile, "PNG")
~~~~~~~^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.13/site-packages/PIL/Image.py", line 2605, in save
save_handler(self, fp, filename)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.13/site-packages/PIL/PngImagePlugin.py", line 1371, in _save
fp.write(_MAGIC)
^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'write'
I’m not sure if it’s a problem with my python or some missing library
Any idea what could be happening or possible solution?
It seems like the Fedora packaged versions is one release version behind. You might want to try installing the latest version via Python’s pipx (it will require installing the python3-pip package via DNF):
Virtualenvs are nice and all, but forgetting to activate one before installing something will pollute your packages. pipx is the recommended method for installing and using Python applications without getting even deeper into tools like uv or pipenv.
You never need to activate a venv. You can just run the python that is in the venv bin folder directly. Forgetting to use a tool as required is true cor all the tools you list.
I do not agree with your recommendation of pipx.
All these other tools have their place, but for most people are not required.