I can't get lwoimport.py and objimport.py to work, HELP

I can’t get these scripts to work, and i have tried everything i know.
I use Blender 2.25 and 2.27 i have python 2.01 installed. The pythonpath is set correctly, most of the export scripts still work.
I got the script from: http://www.janw.gothere.uk.com/import.html#wavefront

  • The lwoimport.py keeps printing “This script is only working with the new GUI module” in the console.

  • The objimport.py gives me an error “No module named Blendimport” when i change “import BlendImport” to “import Blender” i get a new error “module object has no attribute 'argv”. I have no idea what this means.

Keep in mind that i am no programmer so please keep you reply’s as simple as possible.

Greetings,
MadMesh

can you try it in 2.23?

(if you can’t load you file in 2.23 you can save the imported objects into their own file, and append them to your original file)

And you have also to change the line:


 import Blender

as


import Blender210 as Blender

I don’t have Blender 2.23 and i can’t find it on the Blender site http://download.blender.org/release/
There are older versions there just not 2.23 :frowning:

Is the Python module in 2.25 and 2.27 very different from older versions? If so is there a easy way to update the python scripts?

Greetings,
MadMesh

The 2.23 versions are still available on the net.
Here’s one place you can try:

ftp://ftp.cs.umn.edu/pub/blender/pub/

It’s very easy to update the python script, just type in the text editor, the change recommended by jms.

As far as I understand it, Blender 1.8 to 2.23 used a certain Python API, some where in the middle Jan Walter changed the Api and made quite a few import/export scripts using this API. Then after 2.25, they returned to th old Api (or some derivative of the original Api) and currently plans are underway to update the current Python Api, with the idea to maintain a level of backwards compatibility with older Python scripts.

:stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue: :stuck_out_tongue:

Thanx, that worked.

Greetings,
MadMesh