Fri, Nov 22, 5:50 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 21 6:06 am)



Subject: Python Scripts on Macs


ArtPearl ( ) posted Fri, 13 April 2007 at 1:30 PM · edited Fri, 22 November 2024 at 2:50 AM

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 · edited Fri, 13 April 2007 at 2:15 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

My gallery   My freestuff


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

My gallery   My freestuff


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.


Privacy Notice

This site uses cookies to deliver the best experience. Our own cookies make user accounts and other features possible. Third-party cookies are used to display relevant ads and to analyze how Renderosity is used. By using our site, you acknowledge that you have read and understood our Terms of Service, including our Cookie Policy and our Privacy Policy.