Page 1 of 1

Yaml not recognized

PostPosted: Fri Jul 24, 2009 8:37 pm
by Dragonwing
After following these instructions, I got Blender and PyPRP all installed and set up. Upon attempting to create a new book ( Scripts->Add->PyPRP->New Book ), Blender gives me this error:

ImportError: no module named yaml

I ran the yaml installer at least 3 times, rebooted once, and I still get this error.

Not quite sure what to make of it.

Re: Yaml not recognized

PostPosted: Fri Jul 24, 2009 9:32 pm
by D'Lanor
Make sure you have Blender 2.49 compiled with Python 2.5 installed. If you installed Blender 2.49a it uses Python 2.6.

While it may be possible to use the latest Blender version 2.49a with PyPRP (I have not tried it myself) it will be harder to install because you'll have to locate Python 2.6 compatible libraries yourself (if any). There are several forum topics about failed PyPRP installations in combination with Blender 2.49a so at this point 2.49 should remain the recommended version. I have edited the wiki accordingly.

Re: Yaml not recognized

PostPosted: Fri Jul 24, 2009 9:45 pm
by Dragonwing
Thanks D'Lanor - I was just on Cyan Chat and Paradox offered a solution for Blender 2.49a.

Basically just install Yaml and PIL for python 2.6 and you're good to go. The different versions of the libs can be found on the download pages:
PyYAML
PIL

Create New Book works now!

Thanks Paradox!

Re: Yaml not recognized

PostPosted: Sun Jul 26, 2009 6:41 am
by Christian Walther
D'Lanor wrote:Make sure you have Blender 2.49 compiled with Python 2.5 installed. If you installed Blender 2.49a it uses Python 2.6.

It should also be noted that this is not a strict requirement - it's just what the official Windows builds of Blender 2.49a do. For example, the official Mac OS builds use Python 2.5 or 2.3. Possibly you'd find a Windows build that uses Python 2.5 somewhere too.