This question isn't that much about coding since the scripts seem to work on Win10. I only have troubles trying to run them on my mac. Some background: I installed some Python versions earlier when I tried to learn some basic coding but after getting errors running these scripts I uninstalled everything (except osx-included 2.7.16) But I still got the same outcome. Here are some links to the scripts/apps:
https://github.com/corpnewt/ProperTree
https://github.com/corpnewt/CPUFriendFriend
I know the ProperTree uses Tkinter but executing the .command this is all I get.
I tried google "nameError: global name is not defined"... and directs me to different coding forums where people having problems with their scripts... But I hardly think that the coders of ProperTree, CPUFriendFriend done anything wrong... I would be very thankful for any help. Oh I'm on Catalina 10.15.7 by the way. Thanks
https://github.com/corpnewt/ProperTree
https://github.com/corpnewt/CPUFriendFriend
I know the ProperTree uses Tkinter but executing the .command this is all I get.
Error:Last login: Mon Nov 23 16:33:08 on ttys000
/Volumes/\[Storage\]/OSX\ FIX/ProperTree-master/ProperTree.command ; exit;
andersbergman@Anderss-iMac ~ % /Volumes/\[Storage\]/OSX\ FIX/ProperTree-master/ProperTree.command ; exit;
DEPRECATION WARNING: The system version of Tk is deprecated and may be removed in a future release. Please don't rely on it. Set TK_SILENCE_DEPRECATION=1 to suppress this warning.
Exception in Tkinter callback
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1547, in __call__
return self.func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 596, in callit
func(*args)
File "/Volumes/[Storage]/OSX FIX/ProperTree-master/ProperTree.command", line 206, in <lambda>
self.tk.after(250, lambda:self.check_open(plists))
File "/Volumes/[Storage]/OSX FIX/ProperTree-master/ProperTree.command", line 244, in check_open
self.start_window = self.new_plist()
File "/Volumes/[Storage]/OSX FIX/ProperTree-master/ProperTree.command", line 484, in new_plist
window = plistwindow.PlistWindow(self, self.tk)
NameError: global name 'plistwindow' is not defined
CPUFriendsFriend.command and get similar error:Error:Traceback (most recent call last):
File "/Volumes/[Storage]/OSX FIX/CPUFriendFriend-master/CPUFriendFriend.py", line 338, in <module>
c = CPUFF()
File "/Volumes/[Storage]/OSX FIX/CPUFriendFriend-master/CPUFriendFriend.py", line 7, in __init__
self.u = utils.Utils("CPUFriendFriend")
NameError: name 'utils' is not defined
[Process completed]
Could it be a problem with the installation Python/Tkinter ?I tried google "nameError: global name is not defined"... and directs me to different coding forums where people having problems with their scripts... But I hardly think that the coders of ProperTree, CPUFriendFriend done anything wrong... I would be very thankful for any help. Oh I'm on Catalina 10.15.7 by the way. Thanks
Larz60+ write Nov-24-2020, 04:49 PM:
Changed 'quote' tags to 'error' tags.
Changed 'quote' tags to 'error' tags.