Page 3 of 4
Re: The French's Mystpedia Age Project
Posted: Tue Feb 12, 2008 2:43 pm
by Chacal
Just a thought: Unix is case-sensitive for file names, whereas Windows is not. If you have problems with an application not finding files, this is often the cause. Try renaming the file to the exact name in the error message. "Yaml" and "yaml" are not the same.
Re: The French's Mystpedia Age Project
Posted: Tue Feb 12, 2008 4:17 pm
by Gbadji
Thanks Paradox,
I have made a copy of the PIL folder and the Crypto Folder in the script folder, I steal have a problem with Image module:
Code: Select all
prompt> blender
Compiled with Python version 2.3.5.
Checking for installed Python... got it!
/Applications/blender-2.45-darwin-8.10.1-i386/Blender.app/Contents/MacOS/.blender/scripts/alc_hsStream.py:32: RuntimeWarning: Python C API version mismatch for module Crypto.Cipher.AES: This Python has API version 1012, module Crypto.Cipher.AES has version 1013.
from Crypto.Cipher import AES
Traceback (most recent call last):
File "<string>", line 63, in ?
File "/Applications/blender-2.45-darwin-8.10.1-i386/Blender.app/Contents/MacOS/.blender/scripts/alcresmanager.py", line 38, in ?
from alcprpfile import *
File "/Applications/blender-2.45-darwin-8.10.1-i386/Blender.app/Contents/MacOS/.blender/scripts/alcprpfile.py", line 26, in ?
from alc_Classes import *
File "/Applications/blender-2.45-darwin-8.10.1-i386/Blender.app/Contents/MacOS/.blender/scripts/alc_Classes.py", line 35, in ?
import md5, random, binascii, cStringIO, copy, Image, math, struct, StringIO, os, os.path, pickle
ImportError: No module named Image
Is it because of my difference of Crypto.Cipher version (I don't trust that) or because I keep the folder instead of copy the files directly in the script folder? If it's this explanation, why it's working with yaml and Crypto folders and not with PIL? It's made no sense

.
And my english is less than understandable at this hour, see you tomorrow.
Re: The French's Mystpedia Age Project
Posted: Tue Feb 12, 2008 4:29 pm
by Paradox
Are you using Python 2.5? I remember that Blender 2.45 had an option to use Python 2.4.
PyPRP requires 2.5.
Re: The French's Mystpedia Age Project
Posted: Tue Feb 12, 2008 10:47 pm
by Gbadji
Thanks, but I'm steal sleeping

My Python installation is 2.5:
but blender (version 2.45) said is compiled with 2.3.5
Code: Select all
/Applications/blender-2.45-darwin-8.10.1-i386/Blender.app/Contents/MacOS/blender
Compiled with Python version 2.3.5.
Checking for installed Python... got it!
Blender quit
and I don't found the option you speak about (
it's there I'm thinking I'm sleeping and I haven't time to search on the blender site web, I have to go to work, I will search during my "lunch break" or this evening):
Code: Select all
/Applications/blender-2.45-darwin-8.10.1-i386/Blender.app/Contents/MacOS/blender -h
Blender 2.45 (sub 0) Build
Usage: blender [options ...] [file]
Render options:
-b <file> Render <file> in background
-S <name> Set scene <name>
-f <frame> Render frame <frame> and save it
-s <frame> Set start to frame <frame> (use with -a)
-e <frame> Set end to frame (use with -a)<frame>
-o <path> Set the render path and file name.
Use // at the start of the path to
render relative to the blend file.
The frame number will be added at the end of the filename.
eg: blender -b foobar.blend -o //render_ -F PNG -x 1
-F <format> Set the render format, Valid options are..
TGA IRIS HAMX FTYPE JPEG MOVIE IRIZ RAWTGA
AVIRAW AVIJPEG PNG BMP FRAMESERVER
(formats that can be compiled into blender, not available on all systems)
HDR TIFF EXR MPEG AVICODEC QUICKTIME CINEON DPX
-x <bool> Set option to add the file extension to the end of the file.
-t <threads> Use amount of <threads> for rendering
Animation options:
-a <file(s)> Playback <file(s)>
-p <sx> <sy> Open with lower left corner at <sx>, <sy>
-m Read from disk (Don't buffer)
Window options:
-w Force opening with borders (default)
-W Force opening without borders
-p <sx> <sy> <w> <h> Open with lower left corner at <sx>, <sy>
and width and height <w>, <h>
Game Engine specific options:
-g fixedtime Run on 50 hertz without dropping frames
-g vertexarrays Use Vertex Arrays for rendering (usually faster)
-g noaudio No audio in Game Engine
-g nomipmap No Texture Mipmapping
-g linearmipmap Linear Texture Mipmapping instead of Nearest (default)
Misc options:
-d Turn debugging on
-noaudio Disable audio on systems that support audio
-h Print this help text
-y Disable script links, use -Y to find out why its -y
-P <filename> Run the given Python script (filename or Blender Text)
-v Print Blender version and exit
Sorry Chacal, I haven't see your answer. Thanks for it.
See you latter.
Re: The French's Mystpedia Age Project
Posted: Wed Feb 13, 2008 7:54 am
by D'Lanor
Try removing the compiled *.pyc files from the Blender .scripts directory. Leave all the *.py files in there. They will be recompiled using your current Python version upon first use.
Re: The French's Mystpedia Age Project
Posted: Wed Feb 13, 2008 10:40 am
by Gbadji
Thanks D'Lanor, I tried, it didn't worked

.
But, i found an other solution and I'm happy to say that I can follow the step 2 of the
tutorial 
.
What I did ? I install blender again but choosing the right version
here (I take the one with Python 2.5, having this python version installed is not enough!).
Of course without forgetting to copy again PyPRP files in the blender script folder with the yaml folder, the Crypto folder and the PIL folder
.I haven't play all the tutorial yet, so I can't say everything is ok but I can continue

.
May I suggest a note for noobies in the GoW wiki?
Well, thanks again and see you soon for the next question.
Re: The French's Mystpedia Age Project
Posted: Mon Sep 07, 2009 2:19 pm
by Gbadji
Hi,
I'm back with the same question

.
I have installed the GoW_pyPRP 1.5 so I installed Python 2.6.2 and get the last version of blender 2.49b but, for Mac it's compile with python 2.5.
So I have the same message: lib image is not found.
Do you know if blender 2.49 exist for Mac Os and python 2.6 ?
Thanks
Re: The French's Mystpedia Age Project
Posted: Mon Sep 07, 2009 3:32 pm
by Paradox
If Blender is compiled with Python 2.5, then you should be able to use Python 2.5.
Don't worry about Python 2.6.
Re: The French's Mystpedia Age Project
Posted: Tue Sep 08, 2009 12:44 pm
by Gbadji
Thanks Paradox, but I still have the problem. I tried in the first time with python 2.5.4 without success. I install python 2.5.1 without success too.
This is the traceback when I try to export an age:
Code: Select all
$ /Applications/blender-2.49b-OSX-10.5-py2.5-intel/blender.app/Contents/MacOS/blender
Compiled with Python version 2.5.1.
Checking for installed Python... got it!
WARNING: Python Crypto Toolkit not found!, support for Myst 5 files is disabled!!
WARNING: Python Crypto Toolkit not found!, support for Myst 5 files is disabled!!
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Applications/blender-2.49b-OSX-10.5-py2.5-intel/blender.app/Contents/MacOS/.blender/scripts/prp_Export.py", line 55, in <module>
from prp_ResManager import *
File "/Applications/blender-2.49b-OSX-10.5-py2.5-intel/blender.app/Contents/MacOS/.blender/scripts/prp_ResManager.py", line 35, in <module>
from prp_File import *
File "/Applications/blender-2.49b-OSX-10.5-py2.5-intel/blender.app/Contents/MacOS/.blender/scripts/prp_File.py", line 20, in <module>
from prp_AnimClasses import *
File "/Applications/blender-2.49b-OSX-10.5-py2.5-intel/blender.app/Contents/MacOS/.blender/scripts/prp_AnimClasses.py", line 30, in <module>
import md5, random, binascii, cStringIO, copy, Image, math, struct, StringIO, os, os.path, pickle
ImportError: No module named Image
Blender quit
$ python -V
Python 2.5.1
$
Something strange :
exporting an age is working with Blender 2.47, Python 2.5.1 and the script folder located in the 2.49B installation (/Applications/blender-2.49b-OSX-10.5-py2.5-intel/blender.app/Contents/MacOS/.blender/scripts/ so using PyPRP 1.5).
Code: Select all
$ /Applications/blender-2.47-OSX-10.4-py2.5-intel/blender.app/Contents/MacOS/blender
Compiled with Python version 2.5.1.
Checking for installed Python... got it!
Psyco not available to PyPRP...
Exporting /Volumes/Partage/Myrtho/Generation/Myrtho.age ...
Args are e_age
['e', 'age']
Exporting age Myrtho
[AlcScript Parser]
...
@ Saving page Textures -1
@ Saving page BuiltIn -2
@ Saving page mainRoom 0
Writing Myrtho.fni
Computing Checksums...
Writing Myrtho.sum
done in 1.65 seconds
I don't want to become crazy, so can I use Blender 2.47 or Blender 2.49b is mandatory for some features of PyPRP 1.5 ?
(EDIT) Next time I will read others post befor ask my question (like
viewtopic.php?f=59&t=3186 
). I installed Blender 2.49 and Python 2.5.1 and export age is working.
Thanks for your help.
Re: The French's Mystpedia Age Project
Posted: Sat Sep 12, 2009 7:25 am
by Christian Walther
For what it's worth, Mac OS X 10.5 comes with Python 2.5, so there is no need to install another one. You just need to make sure that when you have multiple Python installations (e.g. the system-provided one in
/System/Library/Frameworks/Python.framework and a third-party one in
/Library or
/usr/local or the like), you install PyYAML and PIL into the same one as is used by Blender. See also
this thread.