google / spatial-media

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

No module named tkfiledialog #218

Open improviseadaptovercome opened 5 years ago

improviseadaptovercome commented 5 years ago

Running the spatialmedia/gui.py on python 2.7: python gui.py

Traceback <most recent call last>:
    File "gui.py", line 26, in <module>
        import tkfiledialog
ImportError: No module names tkfiledialog

Tried on 2.7 and 3.7, no use, some say tk had gone under change at 3.x, no use either.

kathleenwest commented 2 years ago

I had to hack at this source code to get this to work/run. Let me show you what I changed

in the gui.py change the beginning to

import ntpath
import os
import sys
import tkinter
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from tkinter import messagebox
import traceback

try:
    from tkinter import *

References: stackoverflow

Install: pip install tkinter

Run python gui.py

Python 🤢 . I'd rather see .Net

I forked the repo and made the code change for you. https://github.com/kathleenwest/spatial-media

skillmatic-co commented 8 months ago

This did not work for me. I'm getting this error once I click Inject Metadata:

https://capture.dropbox.com/wXadhoagXkVlTCKN

Edit:

Installing via these instructions fixed my issue on my M3 Mac.