Installing version 1.7.0 on Windows
The uploader in question stores the compress media file as a file_bytes io.BytesIO() file object, then attempts to add_location. This works fine with panoptes version 1.61. and 1.6.2 on windows (all be it with a libmagic WARNING). It now fails with an error:
Two cases:
Updating a Python 3.10 environment to version 1.7 on a windows machine throws this error:
Traceback (most recent call last):
File "C:\py_scripts\Scripts_Skunks\subject_uploader_tree_variable_resize_grouped_3revised_02-03-2023.py", line 203, in
Workaround: installing python-magic-bin after the update seems to fix it.
A clean install with Python 3.12 and installing panoptes-client 1.7.0 fails with another error:
Traceback (most recent call last):
File "C:\py_scripts _with_venv\Scripts_python_3.13\subject_uploader_tree_variable_resize_grouped_3revised_02-03-2023.py", line 203, in
Workaround: Again fixing the libmagic with installing python-magic-bin resolves the issue.
So you have gone from having a libmagic warning with a standard install of panoptes client on a Windows machine to a full error situation - at least when the add-location refers to a BytesIO object - likely because the fall back mime type solution does not work with BytesIO????