Previous Thread  Next Thread

chat icon Python - 3DS Import Problem

carlitowebb

Posted: Mon Jan 30, 2006 1:52 pm
Joined: 30 Jan 2006
Posts: 3
Hi, can anyone help - I'm brand new to Blender and am trying to import a 3DS object (exported from Sketchup 5). I've tried a model and even a simple box - each time I get the error "Python Script Error - Check Console". !!

I'm stuck at this point, I thought it was because the files were on my desktop - and the path lenght was too long, so moved the file to a folder on the local HDD and still same problem.

The box was just a simple 100mm x 100mm x 100mm cube exported straight out of Sketchup.

Suggestions?

Carl
Reply with quote


stiv

Posted: Mon Jan 30, 2006 3:59 pm
Joined: 05 Aug 2003
Posts: 3485
Quote:
Python Script Error - Check Console


Whatever you do, DO NOT look at the console and read the message there. The information revealed can be too horrible for the mere human mind to accept.

Also, do not report the console message here in the hope that we can solve the problem.
Reply with quote


lusque

Posted: Tue Jan 31, 2006 9:42 am
Joined: 16 Oct 2002
Posts: 77
The same thing happened to me today, I tried to open a 3ds file with Blender 2.41 under WinXP, getting the error "Python Script Error- Check Console"

That's the output:
Code:

Importing "e:\MABE\PVC\pulpito\pulpito sat xl.3DS"
Traceback (most recent call last):
  File "<string>", line 646, in my_callback
  File "<string>", line 634, in load_3ds
  File "<string>", line 603, in process_main_chunk
  File "<string>", line 260, in process_object_block
  File "<string>", line 199, in getUniqueName
ValueError: object "K27623:1" not found


Also note that I can import the same 3ds in Blender 2.40 without errors.
So I think something's wrong with the 3ds importer.
Do I have to tell this to someone in particular? If so, who is and how can I contact him? Thankyou.

Sorry for my bad english and sorry, I can't post the 3ds file, is a work thing.
Reply with quote


carlitowebb

Posted: Tue Jan 31, 2006 9:44 am
Joined: 30 Jan 2006
Posts: 3
Ok, can someone point me in the direction of the correct forum? Being totally new to Blender - all I want to do is resolve this minor issue and get a move on doing a small dental project.

carlito.
Reply with quote


lusque

Posted: Tue Jan 31, 2006 11:18 am
Joined: 16 Oct 2002
Posts: 77
Carlitowebb you are in the correct forum. Stiv was just telling you (with humor Wink) that without more information is impossible to help you.

Read my post above, if you get the same error you can try importing the 3ds in Blender 2.40, it worked for me.
Reply with quote


stiv

Posted: Tue Jan 31, 2006 3:53 pm
Joined: 05 Aug 2003
Posts: 3485
lusque wrote:
Code:

  File "<string>", line 199, in getUniqueName
ValueError: object "K27623:1" not found


Object.Get() now throws ValueError instead of the rather incorrect AttributeError when it can not find an object by name.

In the getUniqueName function (around line 203)
except AttributeError:
needs to be
except ValueError:
Reply with quote


lusque

Posted: Tue Jan 31, 2006 6:39 pm
Joined: 16 Oct 2002
Posts: 77
Thank you stiv, it worked. Very Happy
Reply with quote


carlitowebb

Posted: Wed Feb 01, 2006 9:51 am
Joined: 30 Jan 2006
Posts: 3
That works - and apologies for my apparent lack of humour. Bad day!! Many thanks. Superb.
Reply with quote


stiv

Posted: Wed Feb 01, 2006 4:55 pm
Joined: 05 Aug 2003
Posts: 3485
It is not humor. It is an experiment in using reverse psychology to get people to actually check the console and read the error messages printed there. What could be more attractive than that which is forbidden!

It happens more on elysiun since those are the user forums, but you would be apalled at how many times this pattern is repeated:

A: I'm getting an error! What should I do?
B: What is the error message?
A: I don't know. I did not read it.

Not being able to find the console is a completely separate topic.

Note: the afflicted scripts have been fixed in CVS.
Reply with quote


panzer

Posted: Wed Feb 01, 2006 8:18 pm
Joined: 01 Feb 2006
Posts: 4
Hi.... I'm also a complete Blender newb, and I'm getting that exact error.

What I'm lost on, is what exactly is the fix? Am I looking for the getUniqueName in code somewhere, so I can change 'except AttributeError:' to 'except ValueError:'?

Sorry for the stupid question, I'm about a day into Blender, and pushing hard through the documentation and tutorials!
Reply with quote


lusque

Posted: Wed Feb 01, 2006 9:31 pm
Joined: 16 Oct 2002
Posts: 77
@stiv: even if it was a psychology experiment it was funny Very Happy

@panzer: Don't worry, you have 2 choices:

1: download and install Blender 2.40 in another folder (not the one you have installed Blender 2.41). Use Blender 2.40 to import the 3ds file, save a blend and continue working in Blender 2.41

2: locate the file "3ds_import.py", if you are under windows it is in a subfolder of the blender installation directory.
Mine is: "C:\Program Files\Blender Foundation\Blender241\.blender\scripts"
Open "3ds_import.py" in a text editor (Notepad is fine)
Go to the row 203 and substitute
"except AttributeError:"
with
"except ValueError:"
save and exit. Now it should work
Reply with quote


panzer

Posted: Wed Feb 01, 2006 10:35 pm
Joined: 01 Feb 2006
Posts: 4
Awesome, thanks lusque. That's exactly what I needed to know. Worked perfectly! (I did #2)
Reply with quote


dharveymi

Posted: Wed Mar 29, 2006 2:03 am
Joined: 29 Mar 2006
Posts: 2
I can not find the scripts file on the my mac. Also don't know how to access the console. Please help.
Reply with quote


reed

Posted: Thu Mar 30, 2006 10:30 pm
Joined: 17 Jun 2004
Posts: 25
I don't know where the scripts directory is on MacOSX but the Console is an application (look in Utilities).
Reply with quote


lusque

Posted: Sat Apr 01, 2006 10:56 am
Joined: 16 Oct 2002
Posts: 77
Hi dharveymi,
unluckly I'm not a Mac owner so I don't know where exactly the file is, but have you tried "find" on your entire harddisk?
Or maybe is in a hidden folder of the blender folder (I know that on Unix systems filenames that begin with a dot (like ".blender") are usually hidden).
Sorry I cannot help you more than this.

Also there's a misunderstanding.
The Blender "consolle" is the other window that opens when you launch Blender. It is black an smaller than the blender window and shows only text messages. Usually is placed behind the blender window, so maybe you didn't notice. It is used by blender to tell you things like errors, warnings, ecc...
Again, this is the behaviour on windows, I'm not sure for Macs.

But fear not! This forum is full of Mac Blenderheads willing to help Very Happy
By the way you can also try on www.elysiun.com forum
Reply with quote


Goto page 1, 2, 3  Next
 
Jump to:  
Powered by phpBB © 2001, 2005 phpBB Group