Page 1 of 2

Export issue

PostPosted: Fri Jan 23, 2009 2:58 am
by ardent red
Code: Select all
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] Traceback (most recent call last):
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 169, in open_file
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     export_age(agename,basepath,selection,merge)
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 106, in export_age
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     age.mfs.update()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_MFSGen.py", line 102, in update
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     f.sha1=SHA.new(read.read()).hexdigest()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] AttributeError: 'module' object has no attribute 'new'
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] Traceback (most recent call last):
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 169, in open_file
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     export_age(agename,basepath,selection,merge)
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 106, in export_age
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     age.mfs.update()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_MFSGen.py", line 102, in update
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     f.sha1=SHA.new(read.read()).hexdigest()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] AttributeError: 'module' object has no attribute 'new'
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] Traceback (most recent call last):
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 169, in open_file
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     export_age(agename,basepath,selection,merge)
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 106, in export_age
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     age.mfs.update()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_MFSGen.py", line 102, in update
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     f.sha1=SHA.new(read.read()).hexdigest()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] AttributeError: 'module' object has no attribute 'new'
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] Traceback (most recent call last):
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 169, in open_file
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     export_age(agename,basepath,selection,merge)
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_Export.py", line 106, in export_age
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     age.mfs.update()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]   File "C:\Program Files\Blender Foundation\Blender\.blender\scripts\prp_MFSGen.py", line 102, in update
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520]     f.sha1=SHA.new(read.read()).hexdigest()
23/Jan/09 10:49:49 PM [0x0-0x60060].com.codeweavers.CrossOverHelper.winxp.blender[1520] AttributeError: 'module' object has no attribute 'new'


The nasty mess you see above was the error thrown up on export. it looks like all of the files have been generated apart from .sum file. I'm trying to export an age using crossover and the windows versions of blender and the python things on a mac- could this be causing any problems?

Re: Export issue

PostPosted: Fri Jan 23, 2009 3:25 am
by kaelisebonrai
I'd recommend downloading the Mac versions of blender, and python.. They are available, and should definitely work with the exporter... well, unless someone did something crazy. =/

Re: Export issue

PostPosted: Fri Jan 23, 2009 3:27 am
by ardent red
yes, I've tried getting the mac exporter to work, but Mac PyYAML has... problems. (yeah, AR- blame it on the computer ;))

Re: Export issue

PostPosted: Fri Jan 23, 2009 10:12 pm
by ardent red
woohoo, problem solved! I generated the checksums with PlasmaShop. Then, I struggled to get the age into Relto. It took me a while to realize that I was using the wrong Uru installation XD.

Re: Export issue

PostPosted: Sat Jan 24, 2009 4:05 am
by Christian Walther
Looks like you have an incompatible version of PyCrypto. To check, open a Scripts window in Blender, choose System > Interactive Python Console from the Scripts menu, and type
Code: Select all
import Crypto
help(Crypto)

For me, it says
Code: Select all
Help on package Crypto:

NAME
    Crypto - Python Cryptography Toolkit

FILE
    /Library/Python/2.5/site-packages/pycrypto-2.0.1-py2.5-macosx-10.5-i386.egg/Crypto/__init__.py

DESCRIPTION
    A collection …

and works fine.

Running Blender in CrossOver seems like a very awkward way of running things to me. For me, Blender and PyPRP work just fine on Mac OS. For what it's worth, I have
Code: Select all
buia:~ cwalther$ python
Python 2.5.1 (r251:54863, Jan 17 2008, 19:35:17)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> yaml.__file__
'/Library/Python/2.5/site-packages/PyYAML-3.05-py2.5.egg/yaml/__init__.pyc'

Re: Export issue

PostPosted: Sat Jan 24, 2009 3:24 pm
by ardent red
Christian, when I do that it says:
Code: Select all
<type 'exceptions.ImportError'>: No module named Crypto


If I try to import YAML, it throws up a similar error- so it looks like I haven't installed either of them correctly :?. I'll try to install them again, though the command line confuses me endlessly.

EDIT: right. they show up as installed through command line python, but when I look for them using the blender command line, it claims that they're not there. should I just try exporting an age?

EDIT 2: oh- they installed onto python 2.4, and blender uses 2.5. How do I install them onto 2.5 rather than 2.4?

Re: Export issue

PostPosted: Sun Jan 25, 2009 2:42 am
by Christian Walther
ardent red wrote:Christian, when I do that it says:
Code: Select all
<type 'exceptions.ImportError'>: No module named Crypto

Hmm, then I can't really explain your initial error message to myself. It isn't supposed to even try to calculate SHA1 sums (which are not needed for CC ages) when PyCrypto isn't installed. Perhaps there's a bug in there.

If I try to import YAML, it throws up a similar error- so it looks like I haven't installed either of them correctly :?. I'll try to install them again, though the command line confuses me endlessly.

Did you literally try import YAML (wrong) instead of import yaml (right)? I don't think PyPRP would even start without YAML.

oh- they installed onto python 2.4, and blender uses 2.5. How do I install them onto 2.5 rather than 2.4?

Hard to tell. How did you install them in the first place, from source (using a setup.py or something), or using a pre-built installer?

Finally, are you sure you want to invest more work into the CrossOver solution, rather than trying to get it to work on Mac OS? I could be of more help with the latter than with the former (not to mention that I consider it the proper way).

Re: Export issue

PostPosted: Sun Jan 25, 2009 5:52 am
by Aloys
Christian Walther wrote:Did you literally try import YAML (wrong) instead of import yaml (right)? I don't think PyPRP would even start without YAML.

Correct, if you try to export/import an Age with PyPRP without a proper install of YAML it returns an error "ImportError: No module named yaml".
So there's definitely something wrong here.

Re: Export issue

PostPosted: Sun Jan 25, 2009 3:21 pm
by ardent red
I did 'import yaml' in lowercase, and installed both of them from source using setup.py. I've been doing all of this work onto Mac OS Blender rather than the Crossover one, because I decided that the crossover way was too painful. Thanks for the help so far :)

Re: Export issue

PostPosted: Mon Jan 26, 2009 4:55 am
by Christian Walther
ardent red wrote:I've been doing all of this work onto Mac OS Blender rather than the Crossover one, because I decided that the crossover way was too painful.

Ah, OK.

I did 'import yaml' in lowercase, and installed both of them from source using setup.py.

OK, then it's just a matter of running python2.5 setup.py instead of python setup.py (assuming that your default python points to python2.4). (How come you have a Python 2.4 at all? Mac OS X 10.5 comes with 2.5, and 10.4 with 2.3.)