sms-tools icon indicating copy to clipboard operation
sms-tools copied to clipboard

models_GUI.py and models_transformations_GUI.py don't run in python3

Open jure2018 opened this issue 3 years ago • 1 comments

Workaround: run the GUIs in python 2 (I have 2.7.16 and both GUIs work in python2).

Env: macOS 11.6.6 python3: 3.10.5

Error message:

python3 models_GUI.py

Traceback (most recent call last): File "/Users/one/Music/DigitalAudioWork/Coursera/AudioSignalProcessing/sms-tools-master/software/models_interface/models_GUI.py", line 23, in nb = notebook(root, TOP) # make a few diverse frames (panels), each using the NB as 'master': File "/Users/one/Music/DigitalAudioWork/Coursera/AudioSignalProcessing/sms-tools-master/software/models_interface/notebook.py", line 12, in init self.choice = IntVar(0) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/init.py", line 564, in init Variable.init(self, master, value, name) File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/tkinter/init.py", line 372, in init self._root = master._root() AttributeError: 'int' object has no attribute '_root'


I realize macOS isn't supported and I am on a more recent version of python3. So I don't expect a response, but I'm posting here for reference in case future work on sms-tools is done. Also, for others who may experience this error.

jure2018 avatar Jun 10 '22 20:06 jure2018

This is the problem with the scipy. some imports have been changed in the new version. you can see the changes in link. I am unsure if all the functions work as expected with the new imports, but they should be fine.

mohsen796 avatar Aug 05 '22 17:08 mohsen796

fixed

xserra avatar Sep 19 '22 15:09 xserra