Vargol / spatial-media

Specifications and tools for 360º video and spatial audio. Modified for Google's VR180
53 stars 11 forks source link

Does not appear to work on Apple Silicon running Ventura #10

Closed gahbes closed 10 months ago

gahbes commented 10 months ago

spatialmedia % python gui.py Traceback (most recent call last): File "gui.py", line 48, in from spatialmedia import metadata_utils File "../spatialmedia/init.py", line 25, in import spatialmedia.metadata_utils File "../spatialmedia/metadata_utils.py", line 27, in from spatialmedia import mpeg File "../spatialmedia/mpeg/init.py", line 20, in import spatialmedia.mpeg.sv3d File "../spatialmedia/mpeg/sv3d.py", line 28, in from spatialmedia.mpeg import mesh_projection File "../spatialmedia/mpeg/mesh_projection.py", line 31, in from spatialmedia.mpeg import mesh File "../spatialmedia/mpeg/mesh.py", line 27, in from spatialmedia import metadata_utils ImportError: cannot import name metadata_utils

Vargol commented 10 months ago

Hi, what version of python are you using, I works on Big sur and Sonoma with python 3.10 so it may be a change in the way python does its imports are triggering an issue in the code.

File "../spatialmedia/mpeg/mesh.py", line 27, in
from spatialmedia import metadata_utils

Try commenting that line out. If you don't know any python just stick a # at the start of the line so if becomes

#from spatialmedia import metadata_utils

I can't see why the import if there and a quick test also suggests its not needed and its creating a circular dependancy

gahbes commented 10 months ago

Thanks, I was trying with Python 2.7 which was required by the old Google injector. With python 3 and tkinter it works.