Bug #104 - Incorrect Python environment
Product:PageStream 5.0.3.1 (Linux)Reported By:Tim Doty
Severity:NormalAssigned To:Deron Kazmaier
Priority:Average sign in to watch (1 is watching)
Status:Fixed in 5.0.4Reported:2006-04-28 03:22:00
Category:ScriptingUpdated:2006-04-28 03:22:00
Summary:Incorrect Python environment
Keywords:
Attached Files:No files attached.
 Sign In to add a file.

Apparently a change to the Python environment occured: posixpath is no longer available. E.g., attempting to call "import os":

'import site' failed; use -v for traceback
Traceback (most recent call last):
..File "<string>", line 1, in ?
..File "/home/tim/.PageStream5/Scripts/SendTextToEditor.py", line 52, in ?
...import os # system(), remove()
..File "/usr/lib/python2.4/os.py", line 48, in ?
....import posixpath as path
ImportError: No module named posixpath

Deron Kazmaier wrote...2009-03-03 15:42:37

I can't reproduce this. Can you give me a bit of sample code that fails?

Tim Doty wrote...2009-03-03 17:41:33

It must have been fixed or otherwise made irrelevant as it negatively impacted the SendTextToEditor script which works on current versions of PgS.

For the record, to reproduce it was simply:
Code:


import os

Deron Kazmaier wrote...2009-03-03 17:59:08

Well, import os works for me, so I'll mark this closed. Thanks as always!

[Status updated to 'Fixed in 5.0.4' on Tue, 03 Mar 2009 17:59:08 -0500]

Add a Comment
Sign in to add a comment.

Bug #104 - Incorrect Python environment by Tim Doty   
  created:2006-04-28 03:22:00   last updated:2006-04-28 03:22:00
  Copyright © 1985-2024 GrasshopperLLC. All Rights Reserved.


sign in to add a bug