ArtPearl opened this issue on Apr 13, 2007 · 8 posts
ArtPearl posted Fri, 13 April 2007 at 1:30 PM
Are you a mac user and run poser/python scripts? I could use your help!
I was trying to run Dimension3D's "Unhide Dials" and got an error message " No module named _tkinter". Anyone knows what tkinter is used for,and what else (if any) is needed to make this and other python scripts run on a Mac?
(Some python scripts do work - obviousely those that came with P6,but also for example, the cloth type settings for the cloth room by PhilC)
"I paint that which comes from the imagination or from dreams,
or from an unconscious drive. I photograph the things that I do not
wish to paint, the things which already have an
existence."
Man Ray, modernist painter
http://artpearl.redbubble.com/
Miss Nancy posted Fri, 13 April 2007 at 2:14 PM
python scripts work o.k. in P7, but they may not work o.k. in previous versions. there's some technical stuff about how the implementation of those versions is incompatible with OS X somehow.
Cage posted Fri, 13 April 2007 at 2:32 PM
Does Mac P7 work with Tkinter? I thought there were still problems.... I hope it does work.
===========================sigline======================================================
Cage can be an opinionated jerk who posts without thinking. He apologizes for this. He's honestly not trying to be a turkeyhead.
Cage had some freebies, compatible with Poser 11 and below. His Python scripts were saved at archive.org, along with the rest of the Morphography site, where they were hosted.
svdl posted Fri, 13 April 2007 at 2:50 PM
Tkinter is the module that is used in Poser 4 and 5 for creating user interfaces. The Tkinter that comes with Python 2.2 or lower (which means PoserPython 6 or lower) does not work on Mac OSX.
Poser 6 and 7 contain their own, wxPython based user interface modules, which do work on Mac OSX. The problem with this user interface is that it is quite limited. For example, trees and listboxes are not possible.
Poser 7 uses Python 2.4, which contains a fixed Tkinter module, so Tkinter based scripts will work with P7 on a Mac.
Since the Python interpreters are embedded within Poser, it's not possible to upgrade/update PoserPython as a user. Even though the Tkinter libraries is stored externally, you can't replace it by a Mac OSX compliant higher version - PoserPython in Poser 6 or lower can't deal with Tkinter 2.4
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
stewer posted Fri, 13 April 2007 at 3:08 PM
The Python interpreter in Poser 7/OS X is not embedded. It's the vanilla Python 2.4.3 for Mac OS X distribution, located in /Library/Frameworks.
svdl posted Fri, 13 April 2007 at 4:17 PM
That's different from P7 PC, it appears to have an embedded Python interpreter. There's no /Library/Frameworks folder in the PC version of P7.
The pen is mightier than the sword. But if you literally want to have some impact, use a typewriter
ArtPearl posted Fri, 13 April 2007 at 4:59 PM
stewer Is what you have in /Library/Frameworks different from what you had for P6 ? (if you had P6)
Because I have a file called FrameWork.py in Runtime/Python/Mac/Lib .
So does that mean the interpreter is not embeded for P6?
"I paint that which comes from the imagination or from dreams,
or from an unconscious drive. I photograph the things that I do not
wish to paint, the things which already have an
existence."
Man Ray, modernist painter
http://artpearl.redbubble.com/
stewer posted Fri, 13 April 2007 at 6:05 PM
/Library/Frameworks is a system folder on the Mac, it's not in the Poser folder. Yes, this is a change from Poser 6.