Forum: Poser Python Scripting


Subject: Python2.4 breaking PoserPython?

face_off opened this issue on Sep 19, 2005 ยท 4 posts


face_off posted Mon, 19 September 2005 at 5:22 PM

Hi I've have a couple of support calls from people recently where they have installed python2.4, and then PoserPython doesn't run at all (not even an error msg), or it runs, but tcl is no longer recognised. I haven't installed python2.4, and was wondering it anyone else had had this problem. A workaround is to remove the PYTHONPATH environment variable.

Creator of PoserPhysics
Creator of OctaneRender for Poser
Blog
Facebook


nruddock posted Tue, 20 September 2005 at 2:10 AM

Running multiple version requires you to take control of how the environment variables get set.
ISTR that there is an option when installing to not have them set by the installer.
BAT files can then be used to setup the environment for different versions


tromnek posted Tue, 20 September 2005 at 10:43 PM

You could probably hack PoserPython's "site.py" to see if PYTHONPATH is in the environment. If so remove it from os.path

something like

try: sys.path.remove(os.environ["PYTHONPATH"])<br></br>except: pass

might work
Message edited on: 09/20/2005 22:44


face_off posted Tue, 20 September 2005 at 11:08 PM

Thanks for the responses. Much appreciated.

Creator of PoserPhysics
Creator of OctaneRender for Poser
Blog
Facebook