MTG / sms-tools

Sound analysis/synthesis tools for music applications
https://www.upf.edu/web/mtg/sms-tools
GNU Affero General Public License v3.0
1.63k stars 751 forks source link

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

Closed jure2018 closed 1 year ago

jure2018 commented 2 years ago

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.

mohsen796 commented 2 years ago

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.

xserra commented 1 year ago

fixed