export problem with 3ds - sketch up importer exists?

The interface, modeling, 3d editing tools, import/export, feature requests, etc

Moderators: jesterKing, stiv

Post Reply
carla
Posts: 0
Joined: Thu May 11, 2006 10:22 pm

export problem with 3ds - sketch up importer exists?

Post by carla » Thu May 11, 2006 10:53 pm

hello :) i'm new with blender, i just installed the program from the downloads of blender webpage: vs 2.41 Ms Windows Installer Python 2.4 for XP.....Location NL..... the installation seems to be fine but when I initiate the program appears a window that says:

Using Python vs 2.4 'import site' failed; use -v for traceback, ..........

besides that everything seems to work fine with the program.... but it is very important for me the export/import thing.....and I can't import 3ds format files ....what can i do?

another question I have is if exists any script to get related sketch up and blender...if any script can make blender import skp archives?

sorry for my english...thanks for the time............carla

stiv
Posts: 0
Joined: Tue Aug 05, 2003 7:58 am
Location: 45N 86W

Re: export problem with 3ds - sketch up importer exists?

Post by stiv » Fri May 12, 2006 2:36 am

carla wrote:Using Python vs 2.4 'import site' failed; use -v for traceback, ..........
This only matters if you are trying to use certain python scripts and you do not have Python installed.

but it is very important for me the export/import thing.....and I can't import 3ds format files ....what can i do?
The answer here depends on what the error is. If you tell us the error msg we will know more.

LetterRip
Posts: 0
Joined: Thu Mar 25, 2004 7:03 am

Post by LetterRip » Fri May 12, 2006 6:17 am

skp is a closed format currently, perhaps you can email google/sketchup asking if they plan to document the format.

3ds, obj, dxf, lwo, and collada are possible options (though none are garunteed to have all the info you want) that you could export from sketckup and into blender, though I'm not sure which of those sketchup supports.

LetterRip

Pfaffe
Posts: 0
Joined: Sun May 14, 2006 4:22 am

Post by Pfaffe » Sun May 14, 2006 8:38 am

I am having the exact same message when I start up blender (same version). I tried exporting a scene as a collada file and I tried importing a 3ds file neither of which worked.
The error I got on the file when importing the .3ds file was:
Using Python version 2.4
'import site' failed; use -v for traceback
--------------------------------
Importing "C:\Program Files\Blender Foundation\Blender\Model\Mazda RX7.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 "Object03" not found


------------------------
The error for exporting a COLLADA file was:

Using Python version 2.4
'import site' failed; use -v for traceback

Error! Could not find XML modules!

This script requires the xml module that is part of a
default standalone Python install.

To run the collada importer and exporter you need to have
Python version 2.4 installed in your system. It can be downloaded from:

http://www.python.org

Notes:
- The minor (third) version number doesn't matter, you can have either
Python 2.4.1 or 2.4.2 or higher.
- If you do have Python 2.4 installed and still can't run the scripts, then
make sure Blender's Python interpreter is finding the standalone modules
(run 'System Information' from Blender's Help -> System menu).

Traceback (most recent call last):
File "<string>", line 105, in ?
NameError: name 'Document' is not defined

Pfaffe
Posts: 0
Joined: Sun May 14, 2006 4:22 am

Post by Pfaffe » Sun May 14, 2006 8:52 am

FWIW:

The text in system-info.txt reports:

...
User defined dir fpr scripts:
<NOTICE> -- not found

Data dir "bpydata/" inside user defined dir:
<NOTICE> -- not found

Default config data "bpydata/config/" dir:
C:\Program Files\Blender Foundation\Blender\.blender\scripts\bpydata\config

- Modules: all basic ones were found.
...


I had to type that in since the 'copy' from the Text Editor doesnt work.

Pfaffe
Posts: 0
Joined: Sun May 14, 2006 4:22 am

Post by Pfaffe » Sun May 14, 2006 9:43 am

Ok I finally found a solution for the importing or .3ds files, the issue is discussed in the Pything section of the forums.

The fix is to change the following file:
C:\Program Files\Blender Foundation\Blender\.blender\scripts\3ds_import.py

Look for:

except AttributeError:

and change it to:

except ValueError:

I'm still hunting down the solution for the COLLADA problem.

Pfaffe
Posts: 0
Joined: Sun May 14, 2006 4:22 am

Post by Pfaffe » Sun May 14, 2006 10:27 am

COLLADA export problem solved as well.

I downloaded and installed the 2.4.2 version of python and added the installation directory to the python directory as suggested by
http://colladablender.illusoft.com/documentation.html

Once this was in place, the exporter works.

The original 9MB 3ds file became a 49mb .blend file and has been exported for 15 minutes to become a 99mb .dae.

Python certainly isnt the fastest kid on the block. Ouch.

Post Reply