MLAB-project / stl-thumbnailer

Shows thumbnails of STL files in Nautilus file browser
GNU General Public License v3.0
56 stars 16 forks source link

Upgrade to Python 3 #9

Closed sbrl closed 2 years ago

sbrl commented 2 years ago

Python 2 is no longer supported. To upgrade to Python 3, do this:

sudo apt install 2to3
2to3 --write stl_thumb.py

....but then I get this:

Traceback (most recent call last):
  File "/usr/local/bin/stl_thumb.py", line 44, in <module>
    main()
  File "/usr/local/bin/stl_thumb.py", line 15, in main
    m.update(fin)
TypeError: Unicode-objects must be encoded before hashing
kaklik commented 2 years ago

Resolved by @Smartich0ke