Mon, Nov 18, 1:39 AM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 17 8:56 pm)



Subject: Python Error?


trades2cash ( ) posted Mon, 07 April 2008 at 4:51 PM · edited Mon, 18 November 2024 at 1:29 AM

Could someone tell me what this error me everytime i try to run a certain python..........
Traceback (most recent call last):
  File "C:Program Filese frontierPoser 7RuntimePythonJiggles4jiggles.py", line 86, in ?
    PrfTime = os.path.getatime(PrfFile)
  File "RuntimePythonlibntpath.py", line 237, in getatime
    return os.stat(filename).st_atime
OSError: [Errno 2] No such file or directory: 'C:Program Filese frontierPoser 7runtimePrefsPoser.ini'


markschum ( ) posted Mon, 07 April 2008 at 5:00 PM · edited Mon, 07 April 2008 at 5:14 PM

start at the bottom  and work backwards .
it cant find the poser.ini file in poser 7 program folder .

in Poser 7 the poser.ini file got moved to
C:Documents and SettingsOwnerApplication DataPoser 7

The jiggles script needs to be modified to point to the new location . I changed this line  >>
PrfFile = os.path.normpath(BasePath + '/runtime/Prefs/Poser.ini')
and made the part in the brackets  to read "c:/.................../poser.ini"  the actual path of the file.


trades2cash ( ) posted Mon, 07 April 2008 at 5:38 PM

Thanks I will give it a try.


ockham ( ) posted Mon, 07 April 2008 at 11:45 PM

The latest version of Jiggles automatically looks for the P7 "poser.ini" file
in the right place.

http://ockhamsbungalow.com/Python/Jiggles5.zip

I just noticed that the 'display' part of the website

http://ockhamsbungalow.com/Python

was still pointing to an older version, so I corrected that.

My python page
My ShareCG freebies


trades2cash ( ) posted Wed, 09 April 2008 at 3:47 PM

Thank you very much. I knew i had seen the newer version but i couldnt remeber where. Thats what i get for not book marking. Thanks again.


globo ( ) posted Fri, 02 May 2008 at 5:04 PM · edited Fri, 02 May 2008 at 5:13 PM

 Has anyone here an idea as to what that must be changed to on OS X?

 

----------------------------------------------------------------

 

Preferences

 

*----------------------------------------------------------------

 

*Poser stores files containing preference information in the user's home directory.
This preference information includesMemory dots, Library preferences, Poser UI preferences,
and the **Poser.ini/*Poser Prefs file.
These preference files are stored in the following locations:

Windows: :Documents and
SettingsApplication DataPoser 7

Mac OS X: /Users//Library/Preferences/Poser 7/

So the path isn't even based on Poser's root directory. Has anyone on the Mac ever got this baby to work?
 

globo


markschum ( ) posted Fri, 02 May 2008 at 6:21 PM

You can do what I suggested in my first post and just replace the path being built with a hardcoded path to the file location.  The script appears to be using that file to determine if its work file needs to be recalculated.


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.