Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

tkinter import won't work

tkinter import won't work

Anonymous
Not applicable
526 Views
1 Reply
Message 1 of 2

tkinter import won't work

Anonymous
Not applicable
Hi,
I'm trying to write some python script and implement some GUI. I can't get the Tkinter to import by simply typing :
import Tkinter as tk

I get this error:

# Error: ImportError: dlopen(/Applications/Autodesk/maya2011/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/lib-dynload/_tkinter.so, 2): no suitable image found. Did find: /Applications/Autodesk/maya2011/Maya.app/Contents/Frameworks/Python.framework/Versions/Current/lib/python2.6/lib-dynload/_tkinter.so: mach-o, but wrong architecture

Hope someone can help,
Cheers.
0 Likes
527 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
That's because tkinter is only 32 bit, but you're running maya 64 bit. You must either get a 64 build of tkinter, or run Maya 32 bit.
0 Likes