POV-Ray : Newsgroups : povray.unix : problems with python-script : problems with python-script Server Time
28 Jul 2024 08:27:25 EDT (-0400)
  problems with python-script  
From: ganymed
Date: 28 Aug 2002 01:42:53
Message: <3d6c62dc@news.povray.org>
I was recommended a python-script ( 
http://www.janw.gothere.uk.com/Download/Python/povexport.py ) to export the 
objects to povray 
( http://www.janw.gothere.uk.com/ )
But unfortunately always an error is displayed in the bash when I start the 
script (P+ALT) in the blender-text-editor:

---------------------------------------------------------------------------
PYTHON SCRIPT ERROR:
Traceback (most recent call last):
  File "povexport.py", line 364, in ?
AttributeError: getCurrentScene
---------------------------------------------------------------------------
I think I have followed the instructions on the web-page correctly. (See 
Usage && Install/Unix) 
Has anyone an idea what the problem could be?

I entered the following lines in the blender-text-editor: (See Jan 
Walter`Blender page - Installation-Unix)
import sys
print sys.path

Output in the bash:

['/usr/lib/python2.0/', '/usr/local/lib/python2.0/', 
'/home/strubi/develop/lib/linux-glibc2.1.3-i386/python/lib/python2.0/
plat-linux2', 
'/home/strubi/develop/lib/linux-glibc2.1.3-i386/python/lib/python2.0/
lib-tk', 
'/home/strubi/develop/lib/linux-glibc2.1.3-i386/python/lib/lib-dynload', 
'/home/ganymed/blender-creator-2.23-linux-glibc2.1.2-i386-static/.', '']

(Why strubi? There is no user strubi on my system! Is this the cause for 
the problem? How can I change that?)

Besides:
>python
>>>import sys
>>>print sys.path

Output in the bash:
['', '/usr/local/Python-2.0', '/usr/local/lib/python2.0', 
'/usr/local/Python-2.0/moreDirectories', '/usr/lib/python2.2', 
'/usr/lib/python2.2/plat-linux-i386', '/usr/lib/python2.2/lib-tk', 
'/usr/lib/python2.2/lib-dynload', '/usr/lib/python2.2/site-packages']


thanks for your responses!

Ps.: I use blender-creator-2.23-linux-glibc2.1.2-i386-static // 
Mandrake 8.2


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.