Closed sicklittlemonkey closed 1 month ago
I upgraded to python 3.12.5 but got exactly the same error.
So I did the obvious and tweaked the requirement to rawpy==0.19.* which allowed the install to complete.
But now I get the following error when running:
python sherloq.py
Traceback (most recent call last):
File "C:\Users\user\source\repos\sherloq-GuidoBartoli\gui\sherloq.py", line 19, in <module>
from digest import DigestWidget
File "C:\Users\user\source\repos\sherloq-GuidoBartoli\gui\digest.py", line 5, in <module>
import magic
File "C:\Users\user\source\repos\sherloq-GuidoBartoli\gui\.venv\Lib\site-packages\magic\__init__.py", line 209, in <module>
libmagic = loader.load_lib()
^^^^^^^^^^^^^^^^^
File "C:\Users\user\source\repos\sherloq-GuidoBartoli\gui\.venv\Lib\site-packages\magic\loader.py", line 49, in load_lib
raise ImportError('failed to find libmagic. Check your installation')
ImportError: failed to find libmagic. Check your installation
Any tips from python pros appreciated.
On Ubuntu I had to make the same change in requirements.txt: rawpy==0.19.*
And then it ran OK with python 3.12 with the following warning:
python3.12 sherloq.py
WARNING:tensorflow:From /home/user/dev/sherloq/gui/.venv/lib/python3.12/site-packages/tensorflow/python/compat/v2_compat.py:98: disable_resource_variables (from tensorflow.python.ops.resource_variables_toggle) is deprecated and will be removed in a future version.
Instructions for updating:
non-resource variables are not supported in the long term
Thanks for the cool software!
Thanks for this test, I will verify if rawpy==0.19.*
works on Linux too and in that case I will update the requirements.
Should be fixed in 329dc57cf30a1877e5f4b9f241ac433115c9947d.
Is python 3.11 still supported? I'm not a python guy, sorry. Wish the project was still C++ ; - )
Then the errors: