Yn1t / blender-smd

Automatically exported from code.google.com/p/blender-smd
0 stars 0 forks source link

"Cannot import name datamodel" in Blender 2.68 RC #87

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.download the plugin zip to desktop
2.go into blender's user preferences and open the addons tab, click "install 
from file..." and find the zip on desktop. click "install from file" near 
top-right of window.
3.click the little box on the addon that's  supposed to enable it.

What is the expected output? What do you see instead?
i expect to see the little box have a check mark in it and me making models for 
source, but what i get instead is an error that ensures the addon doesn't 
enable.

What version of Blender and the SMD Tools are you using? On what operating
system?
Blender: 2.67.1
tools: 1.8.0
system: windows 7 32 bit 

Please provide any additional information below.

it seems to very partially install- whenever i hit space and search for "smd", 
i get all the smd options, but when i import a .qc, the model comes in 
un-textured.

Original issue reported on code.google.com by 1995...@gmail.com on 6 Jul 2013 at 11:01

GoogleCodeExporter commented 8 years ago
1) Please tell me what the error was.
2) You seem to be using an SVN or other custom build of Blender. Please try 
again with the latest official version from 
http://www.blender.org/download/get-blender/.
3) Textures are never imported, that is normal.

Original comment by cont...@steamreview.org on 7 Jul 2013 at 9:37

GoogleCodeExporter commented 8 years ago
I suppose this is the same error. Tried to reinstall Blender/SMD tool. Either 
it exports automatically as a .DMX, or it lets me define what file I want it 
saved as, and then this error pops up, or a runtime error like the previous 
issue (even after the 3 files were deleted).

Original comment by garmin2...@gmail.com on 8 Jul 2013 at 12:31

GoogleCodeExporter commented 8 years ago
1. here's a pic of it:
http://img196.imageshack.us/img196/3793/7ia.png

2. nope, that's where i got my version. not using svn or any other custom
builds.

3. oh, it doesn't? oops, sorry... the picture of the heavy weapons guy
being edited was very misleading, considering he is fully textured in
there. may i make a suggestion you let people know somehow so you don't
have to sift through error reports about no texture importing?

thanks for the speedy reply. :)

Original comment by 1995...@gmail.com on 8 Jul 2013 at 1:29

GoogleCodeExporter commented 8 years ago
Garmin, your problem is that you are trying to export to C:\, which is a 
location you don't have write permission for. Export to somewhere in your user 
folder. Several people have now reported "bugs" about this, so I've converted 
the exception into a simple error report without the call stack.

1995, it turns out that 2.68RC is calling itself 2.67.1. One mystery solved. 
You also make a good point about the image, I'll have to think about that.

On the subject of the error, can you take a look at your scripts folder (as 
mentioned in that image)? You should have the Datamodel module at 
addons\io_scene_valvesource\datamodel.py only. If you have any other copies of 
it try deleting them and let me know.

Original comment by cont...@steamreview.org on 8 Jul 2013 at 7:43

GoogleCodeExporter commented 8 years ago
I was briefly able to reproduce this with my own custom build of Blender, but 
now it's gone again.

Try deleting this folder:

%APPDATA%\Blender 
Foundation\Blender\2.67\scripts\addons\io_scene_valvesource\__pycache__

Original comment by cont...@steamreview.org on 8 Jul 2013 at 8:23

GoogleCodeExporter commented 8 years ago
it doesn't work. i did as asked, but blender put the folder back within the
same second i deleted it.

Original comment by 1995...@gmail.com on 10 Jul 2013 at 6:07

GoogleCodeExporter commented 8 years ago
Delete it with Blender closed than start the program up.

Original comment by cont...@steamreview.org on 10 Jul 2013 at 6:33

GoogleCodeExporter commented 8 years ago
that doesn't seem to work either. the folder stays gone, but then comes
back as soon as i try enable the addon again. :/

Original comment by 1995...@gmail.com on 10 Jul 2013 at 10:29

GoogleCodeExporter commented 8 years ago
That is correct behaviour. I assume the error is still happening?

Original comment by cont...@steamreview.org on 10 Jul 2013 at 11:23

GoogleCodeExporter commented 8 years ago
...i have no idea what you just said, concidering you appear to be talking
to several people at the same time. here's what i understood to do:

"delete all the copys of the addon you have in blender folders, and
re-install. if that didn't work, delete datamodel.py."
well, didn't work. thanks for the patience, BTW.

Original comment by 1995...@gmail.com on 11 Jul 2013 at 12:21

GoogleCodeExporter commented 8 years ago
I still have no idea what's causing this, but it is highly unlikely to be 
anything that I'm doing. Please use a stable release of Blender for now.

Original comment by cont...@steamreview.org on 16 Jul 2013 at 8:42

GoogleCodeExporter commented 8 years ago
:/ i said i got the blender version i have from the same place as you
recommended. guess i'll go find some other, competing exporter. sorry, but
thanks for you time i guess.

Original comment by 1995...@gmail.com on 16 Jul 2013 at 10:23

GoogleCodeExporter commented 8 years ago
You're using a Release Candidate, which is a pre-release test build. Simply use 
Blender 2.67 and everything will be fine.

Original comment by cont...@steamreview.org on 16 Jul 2013 at 10:42

GoogleCodeExporter commented 8 years ago
...ok, i'll go try again. sorry, was being a bit of a jerk there. i'll let
you know if it works.

Original comment by 1995...@gmail.com on 16 Jul 2013 at 10:47

GoogleCodeExporter commented 8 years ago
right, so, when i click the link at
http://www.blender.org/download/get-blender/ that says "2.67b installer", i
don't know if thats the right one because google chrome puts a "(1) " after
the download, indicating i already downloaded this before.

Original comment by 1995...@gmail.com on 16 Jul 2013 at 11:20

GoogleCodeExporter commented 8 years ago
I can confirm that installing 
"http://download.blender.org/release/Blender2.67/blender-2.67b-windows64.exe" 
fix the problem encountered with blender 2.68.

Original comment by cpasju...@gmail.com on 19 Jul 2013 at 9:52

GoogleCodeExporter commented 8 years ago
Issue 92 has been merged into this issue.

Original comment by cont...@steamreview.org on 20 Jul 2013 at 10:17

GoogleCodeExporter commented 8 years ago
This problem has now been reported in 2.68 final. Looks like some more 
attention is needed.

What happens if the Blender user profile at %AppData%\Blender 
Foundation\Blender\2.68 is deleted or renamed?

Original comment by cont...@steamreview.org on 20 Jul 2013 at 10:18

GoogleCodeExporter commented 8 years ago
To be clear, *don't* choose Import Previous Settings after deleting the folder. 
I want to find out what happens when the Tools are installed onto a fresh 
profile.

Original comment by cont...@steamreview.org on 20 Jul 2013 at 10:55

GoogleCodeExporter commented 8 years ago
Issue 93 has been merged into this issue.

Original comment by cont...@steamreview.org on 21 Jul 2013 at 8:12

GoogleCodeExporter commented 8 years ago
Does the problem persist after line 230 of __init__.py is removed? Use the # 
character to comment the line out if you prefer.

Original comment by cont...@steamreview.org on 21 Jul 2013 at 8:30

GoogleCodeExporter commented 8 years ago
Yes, the problem persists after removing this line:
bpy.app.handlers.scene_update_post.append(scene_update)
Note I haven't followed the previous steps considering 1995 reported they 
haven't been working. I'm downloading 2.67 for now.

Original comment by pkoles...@gmail.com on 21 Jul 2013 at 5:04

GoogleCodeExporter commented 8 years ago
Does renaming/moving your 2.68 profile help?

Original comment by cont...@steamreview.org on 21 Jul 2013 at 8:30

GoogleCodeExporter commented 8 years ago
I just reverted to 2.67b and it works great.  I could reinstall 2.68 and the 
addon if you want me to, but I'm fine with using 2.67b.

Original comment by pkoles...@gmail.com on 21 Jul 2013 at 8:48

GoogleCodeExporter commented 8 years ago
Could you do that, please. I'd like to find out what's going on here.

Original comment by cont...@steamreview.org on 22 Jul 2013 at 9:48

GoogleCodeExporter commented 8 years ago
I removed profile.py and cProfile.py and the errors still occured

Original comment by pkoles...@gmail.com on 22 Jul 2013 at 7:51

GoogleCodeExporter commented 8 years ago
Eh? Your profile is the folder %AppData%\Blender Foundation\Blender\2.68.

Original comment by cont...@steamreview.org on 22 Jul 2013 at 9:49

GoogleCodeExporter commented 8 years ago
Okay, I wasn't sure what you meant. I moved the profile and the problem 
persisted.

Original comment by pkoles...@gmail.com on 23 Jul 2013 at 9:04

GoogleCodeExporter commented 8 years ago
please how can i fix . 

Original comment by iDulg...@gmail.com on 24 Jul 2013 at 9:08

GoogleCodeExporter commented 8 years ago
Issue 96 has been merged into this issue.

Original comment by cont...@steamreview.org on 25 Jul 2013 at 8:22

GoogleCodeExporter commented 8 years ago
I finally managed to reproduce this problem. Please install the attached fix 
and tell me if it works.

Original comment by cont...@steamreview.org on 25 Jul 2013 at 9:08

GoogleCodeExporter commented 8 years ago
Seems to be working now, thanks so much!

Original comment by gamemast...@gmail.com on 25 Jul 2013 at 7:25

GoogleCodeExporter commented 8 years ago
It works! Great job.

Original comment by pkoles...@gmail.com on 25 Jul 2013 at 9:43

GoogleCodeExporter commented 8 years ago
Fixed in r338.

Original comment by cont...@steamreview.org on 25 Jul 2013 at 9:51

GoogleCodeExporter commented 8 years ago
The official release of 1.8.4 has some additional changes. Please download it 
even if you downloaded the file in my comment above.

http://code.google.com/p/blender-smd/downloads/list

Original comment by cont...@steamreview.org on 25 Jul 2013 at 10:03