Forum: Poser - OFFICIAL


Subject: Bad Magic Number

anupaum opened this issue on Oct 14, 2011 · 45 posts


Medzinatar posted Sat, 15 October 2011 at 1:42 AM

Although not much help, I noticed that the source was included for three of the functions.
I deleted the .pyc files for DSCTScleraRed15.pyc, DSCTScleraRed25.pyc, DSCTScleraRed35.pyc and recompile the associated .py
Those function can now be called from the respective "Sclera Red " pose files.

To fix fast, go to source and change

"import poser" to "import poser, compiler"

then add line in code section

compiler.compileFile('DSCTScleraRed**.py')  (where ** is proper name of source)

Then run script from File--> Run Python Script

This way if python is changed again, you just have to run source to upgrade to new compile version.