Tue, Nov 19, 1:34 PM CST

Renderosity Forums / Poser - OFFICIAL



Welcome to the Poser - OFFICIAL Forum

Forum Coordinators: RedPhantom

Poser - OFFICIAL F.A.Q (Last Updated: 2024 Nov 18 10:25 pm)



Subject: Bad Magic Number


anupaum ( ) posted Fri, 14 October 2011 at 10:19 PM · edited Tue, 19 November 2024 at 1:34 PM

I'm trying to run a script from DAZ called "Crying Time" in Poser Pro 2012, but I'm getting THIS error:

RuntimeError: Bad magic number in .pyc file

Any suggestions on how I might fix that problem?


RobynsVeil ( ) posted Fri, 14 October 2011 at 10:29 PM · edited Fri, 14 October 2011 at 10:31 PM

...yep: get the person who compiled it to recompile in the new Python version. Which product is this? have you a link?

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Fri, 14 October 2011 at 10:39 PM

file_474043.jpg

I've been re-working this image in Poser Pro 2012.  (Not done yet.  There's still too much light in the scene.  PPro 2012 renders with a lot less light than I'm accustomed to using . . .)  The girl in the skimpy, leather dress is supposed to be crying, but I can't get the script to work.

This is the product:

http://www.daz3d.com/i/3d-models/-/crying-time-for?item=10809

I don't know how to contact the vendors at DAZ.


RobynsVeil ( ) posted Fri, 14 October 2011 at 10:44 PM

Quote - I've been re-working this image in Poser Pro 2012.  (Not done yet.  There's still too much light in the scene.  PPro 2012 renders with a lot less light than I'm accustomed to using . . .)  The girl in the skimpy, leather dress is supposed to be crying, but I can't get the script to work.

This is the product:

http://www.daz3d.com/i/3d-models/-/crying-time-for?item=10809

I don't know how to contact the vendors at DAZ.

Yes, they are a bit insulated from their customers, there, aren't they? Seems weird to me: here and at all other marketplaces, you can just drop the vendor a line via sitemail. I'd probably try their Zendesk thingie. Let us know how you go.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


RobynsVeil ( ) posted Fri, 14 October 2011 at 10:48 PM

Oh, and about light. If you use the default lights that come with Poser, you might want to consider trying to make your own. They are really not that great. Okay, they are rubbish. IBL, and two spots and an infinite, all using depth-mapped shadows, which went out with the rumble seat.

Simple lighting is best. For outside shots: 1 infinite (ray-traced) and a sky dome using IDL: you got heaps of light, and it looks so much more natural.

Still getting my head around decent indoor lighting: a spot or point light, a fill and IBL, maybe?

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Fri, 14 October 2011 at 10:57 PM

For this image, I've got one spot from the back-left, one infinite and one IBL.  I've turned the power down on all these lights to less than 15%, but it STILL seems too bright!  (I have a love / hate relationship with lighting in Poser.  I love to hate it!)

Thanks for the tip on Zendesk.  I've submitted a request and I'll let you know how it works out.

Hope you're enjoying your spring Down Under!


coldrake ( ) posted Fri, 14 October 2011 at 11:09 PM

Quote - I'm trying to run a script from DAZ called "Crying Time" in Poser Pro 2012, but I'm getting THIS error:

RuntimeError: Bad magic number in .pyc file

Any suggestions on how I might fix that problem?

Have you tried posting in the DAZ forums? Both DraagonStorm and Marieah post frequently in the Commons and are always very helpful.

 

 

Coldrake


RobynsVeil ( ) posted Fri, 14 October 2011 at 11:10 PM

It's sticky-hot already... heheheh

I've taken to removing IBL from scenes and just using a skydome. IBL is a bit of a kludge, anyway. Is this an indoor scene? It looks to be indoor, perhaps. You might try turning one or the other off and re-rendering. And possibly going with ray-tracing instead of depth-mapped...

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Fri, 14 October 2011 at 11:18 PM

Quote - Have you tried posting in the DAZ forums? Both DraagonStorm and Marieah post frequently in the Commons and are always very helpful.

 

I haven't tried that, but perhaps I shall.  Thank you for the suggestion.


RobynsVeil ( ) posted Fri, 14 October 2011 at 11:19 PM · edited Fri, 14 October 2011 at 11:19 PM

Quote - > Quote - I'm trying to run a script from DAZ called "Crying Time" in Poser Pro 2012, but I'm getting THIS error:

RuntimeError: Bad magic number in .pyc file

Any suggestions on how I might fix that problem?

Have you tried posting in the DAZ forums? Both DraagonStorm and Marieah post frequently in the Commons and are always very helpful. Coldrake

Oh, is that how to get 'hold of them? I think if I were a vendor (which I am, here), I'd prefer a sitemail. That's just me, though. :blink: Good suggestion, Coldrake. 😄

 

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Fri, 14 October 2011 at 11:24 PM

Quote - It's sticky-hot already... heheheh

My step-father hails from Coffs Harbour.  He loved living by the water because it was more pleasant in the summer.

Quote - I've taken to removing IBL from scenes and just using a skydome. IBL is a bit of a kludge, anyway. Is this an indoor scene? It looks to be indoor, perhaps. You might try turning one or the other off and re-rendering. And possibly going with ray-tracing instead of depth-mapped...

I've never used a skydome.  In the past, I've used IBL to improve the realism of my lighting, but I'm beginning to think that my IBL days may be over . . .

This is a scene from my new book, "Ceremonies and Celebrations."  Kira, the girl on the left, is trying to help a girl who's been jailed for prostitution reform her life.  (A long story . . .) 

I don't use Poser's stock lights, and I've not used depth-mapped shadows since P6.


hborre ( ) posted Fri, 14 October 2011 at 11:51 PM · edited Fri, 14 October 2011 at 11:54 PM

Now this is PP2012 you are using, have you considered using IDL with this scene? 

BTW, I would guess that Gamma correction is on by default in your render settings.  It's the reason you are decreasing your light intensities.  I am also suspecting that one of the skin textures may have an active ambient channel causing the skin to self glow.


anupaum ( ) posted Sat, 15 October 2011 at 12:17 AM

I am using IDL.  Gamma Correction is on, and the figures were run through VSS.  There is nothing plugged into the ambient channel, and the ambient color is set to black.


RobynsVeil ( ) posted Sat, 15 October 2011 at 12:35 AM · edited Sat, 15 October 2011 at 12:35 AM

I'd be switching off the infinite light - the spot will give you more drama. You might even try turning off the IBL... and see how the render goes. 😄

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


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.

 



RobynsVeil ( ) posted Sat, 15 October 2011 at 3:21 AM

Wow, good ON you, Medzinatar! I never dreamt that a developer would include the source code in uncompiled form with his published product. I don't have this... so... I was flying blind.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Sat, 15 October 2011 at 11:40 AM

Quote - 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.

 

This is probably helpful, but I have NO idea what you're writing about . . .

:(

 

Here's the official reply from DAZ:

"Kraig Hausmann, Oct-15 10:22 (MDT):

Hi Robert,

I'm sorry, but there isn't. We have several brokered products that got left behind with the updated version of Poser. You can request a refund from us within 30 days of purchase.

Let me know if you have any other questions or if there’s any other way we can help."

I don't want a refund.  I want the script to work!


nruddock ( ) posted Sat, 15 October 2011 at 4:50 PM

If you have the corresponding source (PY) file, there is no need to explicitly compile, just deleting the PYC is sufficient.

If you only have a PYC file, you're stuck until the author updates it.


anupaum ( ) posted Sat, 15 October 2011 at 9:10 PM

The folder in my runtime contains ONLY the PYC files.  I guess I'm stuck.

 

Unless . . .

 

I load the scene in P Pro 2010, apply the script and render, then use that as a layer in Photoshop and erase the overlaying rendering in P Pro 2012.


RobynsVeil ( ) posted Sat, 15 October 2011 at 10:25 PM

Quote - > Quote - 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.

 

This is probably helpful, but I have NO idea what you're writing about . . .

:(

 

Here's the official reply from DAZ:

"Kraig Hausmann, Oct-15 10:22 (MDT):

Hi Robert,

I'm sorry, but there isn't. We have several brokered products that got left behind with the updated version of Poser. You can request a refund from us within 30 days of purchase.

Let me know if you have any other questions or if there’s any other way we can help."

I don't want a refund.  I want the script to work!

And they wonder why I don't like the plug-in approach. :blink: Did posting the question on the forums bring any satisfaction? Both of those artists are quite reputable: they might be willing to help even if Daz isn't.

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Sat, 15 October 2011 at 10:35 PM

I haven't been home for most of the day, so I haven't posted yet.  I will try shortly.


Medzinatar ( ) posted Sat, 15 October 2011 at 10:43 PM

Quote -   Unless . . .

I load the scene in P Pro 2010, apply the script and render, then use that as a layer in Photoshop and erase the overlaying rendering in P Pro 2012.

Once you load the pose in PP2010 and save, you can bring the scene back in PP2012.
The Python code is used only in applying materials, it is not executed after that



anupaum ( ) posted Sat, 15 October 2011 at 10:45 PM

Oh, really?  Now THERE'S an idea!  Thank you!


RobynsVeil ( ) posted Sat, 15 October 2011 at 10:48 PM

Quote - > Quote -   Unless . . .

I load the scene in P Pro 2010, apply the script and render, then use that as a layer in Photoshop and erase the overlaying rendering in P Pro 2012.

Once you load the pose in PP2010 and save, you can bring the scene back in PP2012.
The Python code is used only in applying materials, it is not executed after that

That is so clever, Medzinatar! Never even occured to me!

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Sat, 15 October 2011 at 11:26 PM

Sadly, it didn't work!


Medzinatar ( ) posted Sun, 16 October 2011 at 12:27 AM

I don't know what problem might be then.  I tried two different ways. 

 

First, in PP2010, I apply tears and red eye, then save material collection for figure (.mc6)
I apply that to figure in PP2012 and works as expected

I also opened saved PP2010 scene in PP2012 with no incident

 



Medzinatar ( ) posted Sun, 16 October 2011 at 10:30 AM

I notice you had also posted at DAZ Commons.
Putting reply there, but for other people watching this thread, I will clarify.

Unfortunately, the crying shaders are not able to be used with VSS without major modification.
The python script cannot find proper place to hook into, so its nodes just hang there unconnected.

For my test, I was not using VSS, so shader worked fine



anupaum ( ) posted Sun, 16 October 2011 at 11:25 AM

But the nodes ARE connected.  The modified face mat shows in the "simple" tab of the Material Room, and are clearly integrated into the shader tree under the "advanced" tab.  I've tried both of your suggestions for making this work, but it simply won't render.  Obviously, you're right.  But why???


Snarlygribbly ( ) posted Sun, 16 October 2011 at 12:18 PM

Quote - But the nodes ARE connected.  The modified face mat shows in the "simple" tab of the Material Room, and are clearly integrated into the shader tree under the "advanced" tab.  I've tried both of your suggestions for making this work, but it simply won't render.  Obviously, you're right.  But why???

 

My guess - without being able to see the shader tree - is that the script is connecting the nodes to the diffuse channel, but you're using a VSS skin shader that is connected to the alt diffuse channel (with the diffuse channel nullified by setting the diffuse_value to 0 or the diffuse_color to black)

Free stuff @ https://poser.cobrablade.net/


anupaum ( ) posted Sun, 16 October 2011 at 12:38 PM

file_474095.jpg

> Quote - > My guess - without being able to see the shader tree - is that the script is connecting the nodes to the diffuse channel, but you're using a VSS skin shader that is connected to the alt diffuse channel (with the diffuse channel nullified by setting the diffuse_value to 0 or the diffuse_color to black)

As usual, you're right! (Getting this far deep into the Material Room is very new to me.)

So, should I use a blender node and put the Crying Time MAT through alt diffuse?


BDDesign ( ) posted Sun, 16 October 2011 at 1:04 PM

Quote - Yes, they are a bit insulated from their customers, there, aren't they? Seems weird to me: here and at all other marketplaces, you can just drop the vendor a line via sitemail. I'd probably try their Zendesk thingie. Let us know how you go.

 

No they are not. The first thing I did when I realized that these scripts were broken was to send a PM to the creator, whom I heard back from within a day. You can contact them through the forums, and it is absolutely no more difficult than it is here or anywhere else.


RobynsVeil ( ) posted Sun, 16 October 2011 at 5:11 PM

How did you manage to find a way to PM a vendor at Daz? I've sought in vain to find a link or something... good ON you! 😄 Need to go and have another look: is it somewhere on the vendor's page?

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


Medzinatar ( ) posted Sun, 16 October 2011 at 5:40 PM

Quote - How did you manage to find a way to PM a vendor at Daz? I've sought in vain to find a link or something... good ON you! 😄 Need to go and have another look: is it somewhere on the vendor's page?

I just go to forum page, at top is link to message facility.  It's obtuse, because it either says "You have no new messages" or gives a count of how many. Just clicks on it and you will go to messaging.

Then clik on "new post" and you get panel "Send a new private message".

There is box to search for username or you can type it in.



anupaum ( ) posted Sun, 16 October 2011 at 5:49 PM

file_474108.jpg

Ok, I give up!  I've spent too much time on this . . .  It got to the point where it was just easier to paint in the runny make-up by hand.


anupaum ( ) posted Sun, 16 October 2011 at 5:50 PM

file_474109.jpg

Here's the second one in the series.  No need for runny make-up here!


RobynsVeil ( ) posted Sun, 16 October 2011 at 6:11 PM

Quote - > Quote - How did you manage to find a way to PM a vendor at Daz? I've sought in vain to find a link or something... good ON you! 😄 Need to go and have another look: is it somewhere on the vendor's page?

I just go to forum page, at top is link to message facility.  It's obtuse, because it either says "You have no new messages" or gives a count of how many. Just clicks on it and you will go to messaging.

Then clik on "new post" and you get panel "Send a new private message".

There is box to search for username or you can type it in.

Thanks so much, Medzinatar... sheesh, I'm an idiot. :blink: It's those "obvious" things that get me every time... :lol:

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


RobynsVeil ( ) posted Sun, 16 October 2011 at 6:12 PM · edited Sun, 16 October 2011 at 6:13 PM

Quote - Here's the second one in the series.  No need for runny make-up here!

Wow, your images are so sensitive... they really are lovely. Make me interested in what might be happening! Well done, Anupaum... 😄

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Sun, 16 October 2011 at 7:09 PM

Quote - Wow, your images are so sensitive... they really are lovely. Make me interested in what might be happening! Well done, Anupaum... 😄

Thank you!  These depict a scene from my latest novel, "Ceremonies and Celebrations."  You can find more info here:

http://www.newadventure.ca

There's a link to free e-book versions in the store.


RobynsVeil ( ) posted Sun, 16 October 2011 at 7:24 PM

Wow, Anupaum. You take Poser art to a whole new dimension. Had a look at your site: well-done! I'll have to have a read of your works when the whole Antonia thing finally settles into a dull roar... :biggrin:

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


anupaum ( ) posted Sun, 16 October 2011 at 8:05 PM

That's a kindly thing for you to write, Robyn!  Thank you!  I assure you, however, that I'm FAR better at writing than I am at Poser art.  This was initially a means by which I could illustrate my stories, but it's evolved into an integral part of creating the milieu and the characters within it.

I've done video slide shows with animations, too!  At the risk of inspiring moderator wrath, you can check my creations here:

http://www.youtube.com/user/anupaum?feature=mhee

Enjoy!


BDDesign ( ) posted Sun, 16 October 2011 at 8:28 PM

Quote - How did you manage to find a way to PM a vendor at Daz? I've sought in vain to find a link or something... good ON you! 😄 Need to go and have another look: is it somewhere on the vendor's page?

Also, if you find a post by a vendor, there's a PM button along the bottom edge immediately beneath each person's post.


RobynsVeil ( ) posted Mon, 17 October 2011 at 7:05 AM

Cool, thanks, BDDesign. 😄 How do you find our which forum they frequent? Or do you just post your issue and hope they come along and read it?

Monterey/Mint21.x/Win10 - Blender3.x - PP11.3(cm) - Musescore3.6.2

Wir sind gewohnt, daß die Menschen verhöhnen was sie nicht verstehen
[it is clear that humans have contempt for that which they do not understand] 

Metaphor of Chooks


NishikiIsshiki ( ) posted Mon, 17 October 2011 at 10:18 AM

Quote - I'm trying to run a script from DAZ called "Crying Time" in Poser Pro 2012, but I'm getting THIS error:

RuntimeError: Bad magic number in .pyc file

Any suggestions on how I might fix that problem?

 

Yes!

The same problem with "V4SkinRealismkit" .

 

 


imax24 ( ) posted Mon, 17 October 2011 at 10:33 AM

Quote - Once you load the pose in PP2010 and save, you can bring the scene back in PP2012. The Python code is used only in applying materials, it is not executed after that

 

I'm doing that a lot these days. I have some indispensible scripts whose authors don't seem to be in any hurry to update (they were free, so what's the motivation?) So I use them in PP2010 and reopen the scene in PP2012. Fortunately 2010 can read 2012 scenes, it just says something like "Newer version than expected, will try to read anyway." And it does. 

I wonder if this is possible: A Poser plug-in that allows it to read older python scripts along with newer ones.


BDDesign ( ) posted Mon, 17 October 2011 at 10:41 AM

Quote - Cool, thanks, BDDesign. 😄 How do you find our which forum they frequent? Or do you just post your issue and hope they come along and read it?

Their most likely than not going to be hanging around the Commons. You can go to the PM center and try to find them by name, or search the forums for their name, or of you just post a query in the Commons, either the vendor may see it, someone who knows the vendor might point them to your post or tell you how to contact them. It would be nicer if there was a contact system through the product pages, though.


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.