Blender Export Python error

View previous topic View next topic Go down

Blender Export Python error

Post  tomha on Fri Mar 27, 2009 5:59 am

Not being a Blender expert, less than a newbe really, when I follow along tutorial video #2 in YouTube I get to the export part of the tutorial Blender throws an error saying see Python Console. I do not know how to show the console and export at the same time.

Has anyone seen this error, or know how to open the console + exporter to debug it?

I downloaded the latest version of Blender and SIO2 last night and tried it on Mac Mini and a windows Vista machine both boxes show the same error.

I wish there were more info to the error..

Thanks
Tom

tomha

Posts : 9
Join date : 2009-03-27

View user profile

Back to top Go down

Re: Blender Export Python error

Post  Jawdy on Fri Mar 27, 2009 6:01 am

Have you installed the correct version of Python? I think it needs 2.3.2 (for Windows), 2.3 (for Mac, or 2.5 if you do a custom install), but check the Blender site to make sure.
avatar
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: Blender Export Python error

Post  tomha on Fri Mar 27, 2009 8:24 am

Thanks for the quick reply.

I just tried the same test on a 17" MacBook Pro

Python 2.5.1 (r251:54863, Jan 13 2009, 10:26:13)
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>>

I did not have SIO2 or Blender so I had to download the most current version of there sites.

Tom

tomha

Posts : 9
Join date : 2009-03-27

View user profile

Back to top Go down

Re: Blender Export Python error

Post  Jawdy on Fri Mar 27, 2009 8:28 am

Hmm, not quite sure there.
I run Blender on my Windows machine (only have a little Mac Mini which it struggles with Blender), and I know it's very picky about the Python version for that. Not too sure if the same is the case with the OS X version.

Did you do the Blender "Custom Install"? On the download section of the Blender page it says that Pyhton 2.3 needs to be installed, and 2.5 if you're doing a custom install. With it being picky on the Win32 binaries - would it be doing the same with the OS X build?
avatar
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: Blender Export Python error

Post  tomha on Fri Mar 27, 2009 9:11 am

Good question, I downloaded the Blender Custom install python 2.5.

On your mac what version of Blender/SIO2/Python are you running?

Tom

tomha

Posts : 9
Join date : 2009-03-27

View user profile

Back to top Go down

Re: Blender Export Python error

Post  Jawdy on Fri Mar 27, 2009 9:16 am

tomha wrote:Good question, I downloaded the Blender Custom install python 2.5.

On your mac what version of Blender/SIO2/Python are you running?

Tom
I had Blender 2.47, and didn't get around to installing Python as the performance wasn't all that usable.

Can someone who uses Blender 2.48 on OS X chime in with what Python version works for them?

Once I get home (and if you've not had any responses) I'll reinstall Blender and get Python going under OS X, then let you know if I have any joy with it.
avatar
Jawdy

Posts : 65
Join date : 2009-03-17
Location : UK

View user profile http://www.gaslightgames.co.uk

Back to top Go down

Re: Blender Export Python error

Post  tomha on Fri Mar 27, 2009 9:47 am

Ok I just tried blender-2.47-OSX-10.4-py2.5-intel.zip from http://download.blender.org/release/Blender2.47/ With the latest version of SIO2 and got the same result. Python error. This in on a MacBook Pro very decked out.

Thanks for any help you can give me Smile

Tom

tomha

Posts : 9
Join date : 2009-03-27

View user profile

Back to top Go down

Re: Blender Export Python error

Post  Francescu on Fri Mar 27, 2009 10:34 am

To open the console on the Mac, launch Console.app under Applications->Utilities,
you should get more info about the error...

On my mac, I'm using Python 2.5.1 (r251:54863, Jul 23 2008, 11:00:16)

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: Blender Export Python error

Post  tomha on Fri Mar 27, 2009 2:05 pm

Thanks, I wish I was a Python programmer, I do other languges.. I tried to save back to the data folder and to a different folder both off the desktop. I changed my name to '-----' the path is correct!



3/27/09 3:54:07 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] Traceback (most recent call last):
3/27/09 3:54:07 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] File "sio2_exporter.py", line 159, in event_gui
3/27/09 3:54:07 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] File "sio2_exporter.py", line 639, in export
3/27/09 3:54:07 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] IOError: [Errno 2] No such file or directory: '/Users/-----/Desktop/SIO2_SDK_v1.3.5/data/test.sio2/tutorial04/camera/Camera'
3/27/09 3:57:46 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] SIO2::Exporter v1.3.5
3/27/09 3:57:46 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] Copyright (C) 2009 SIO2 Interactive
3/27/09 3:57:46 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] camera/Camera
3/27/09 3:57:46 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] Traceback (most recent call last):
3/27/09 3:57:46 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] File "sio2_exporter.py", line 159, in event_gui
3/27/09 3:57:46 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] File "sio2_exporter.py", line 639, in export
3/27/09 3:57:46 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] IOError: [Errno 2] No such file or directory: '/Users/-----/Desktop/test/new/tutorial04/camera/Camera'
3/27/09 3:59:49 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] SIO2::Exporter v1.3.5
3/27/09 3:59:49 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] Copyright (C) 2009 SIO2 Interactive
3/27/09 3:59:49 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] camera/Camera
3/27/09 3:59:49 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] Traceback (most recent call last):
3/27/09 3:59:49 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] File "sio2_exporter.py", line 159, in event_gui
3/27/09 3:59:49 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] File "sio2_exporter.py", line 639, in export
3/27/09 3:59:49 PM [0x0-0xa50a5].org.blenderfoundation.blender[1167] IOError

tomha

Posts : 9
Join date : 2009-03-27

View user profile

Back to top Go down

Re: Blender Export Python error

Post  Francescu on Fri Mar 27, 2009 2:36 pm

In the exporter you specify a "folder" where to export the .sio2 archive.

Are you certain that '/Users/-----/Desktop/SIO2_SDK_v1.3.5/data/test.sio2/tutorial04/camera/Camera' is a valid folder?
(notice how you have ...camera/Camera at the end)

Francescu

Posts : 136
Join date : 2009-03-18

View user profile

Back to top Go down

Re: Blender Export Python error

Post  tomha on Fri Mar 27, 2009 2:49 pm

the directory up to data is valid, that's where it loaded the blender file. From that point the exporter added.

tomha

Posts : 9
Join date : 2009-03-27

View user profile

Back to top Go down

Re: Blender Export Python error

Post  sio2interactive on Fri Mar 27, 2009 4:53 pm

tomha: You should pass a folder to the path inside the blender exporter, not the actual archive.

Example:

Path in Exporter: /Users/me/Desktop/
Scene Name: MyScene

Will result in:

Will Create: /Users/me/Desktop/Scene/ (all the objects, textures, images will be exported to that root)

Then the Final Output will be created : /Users/me/Desktop/MyScene.sio2 ( /Users/me/Desktop/Scene/* compressed as .sio2 )

_________________
SIO2 Interactive
Free Open Source 3D Game Engine for iPhone and iPod Touch
http://sio2interactive.com
avatar
sio2interactive

Posts : 1526
Join date : 2008-08-26
Age : 38
Location : Shanghai

View user profile http://sio2interactive.com

Back to top Go down

Re: Blender Export Python error

Post  tomha on Fri Mar 27, 2009 6:01 pm

Thank you for your help. Putting it in the data folder worked. I can live with that very well.

Have a great weekend

Tom

tomha

Posts : 9
Join date : 2009-03-27

View user profile

Back to top Go down

Re: Blender Export Python error

Post  Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum