google / spatial-media

Specifications and tools for 360º video and spatial audio.
Other
1.8k stars 419 forks source link

UI work for M1 Mac? #261

Closed leon-do closed 1 year ago

leon-do commented 3 years ago

I tried opening the UI version for the M1 Mac. It opens then immediately closes.

Anyone with the same problem?

Anyone find a solution?

marcstreeter commented 2 years ago

you can use the command line as mentioned here https://github.com/google/spatial-media/issues/260

pedrocadiz13 commented 1 year ago

Here's a nicer work around:

  1. Download master as zip and unpack. Release 2.1 requires python2, but the master has been updated for python3.

  2. Install python3 via homebrew (if you don't already have it) :

    brew install python brew link python

  1. Install python-tk

    brew install python-tk

  2. test with comand:

python3 /Users/peter/Projects/Python/spatial-media-master/spatialmedia/gui.py

(You'll need to change path to wherever you unpacked the zip).

You can add the above line to a script, it wourks, but annoyingly also opens a terminal window. To get round this, use pyinstaller to create an app instead:

  1. install pyinstaller

pip3 install -U pyinstaller python3.11 -m pip install --upgrade pip

  1. Build the app

cd /Users/peter/Projects/Python/spatial-media-master/spatialmedia pyinstaller gui.py --windowed

This will create the gui.app in cd /Users/peter/Projects/Python/spatial-media-master/spatialmedia/dist

  1. Rename "gui.app" to "Spatial Media Metadata Injector.app"

  2. Copy "Spatial Media Metadata Injector.app" to your Applications folder.