Qauyren / blender-smd

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

Version 0.8 will not import - appears to be a naming issue #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I installed version 0.8 of the tools under 2.54, apparently with the bundled 
version of python 3.1. After installing, attempting to enable the module 
resulted in the following error:

ImportError: No module named io_smd_tools-0.8

Occuring on line 1086 of space_userpref.py.

Bunging in a couple of print()s confirmed that the python path was correct. 
Renaming the module to what it used to be called - io_smd_tools - and 
reinstalling - allowed me to enable the module (I now have two entries in 
addons; one which produces the above error and the other which enables 
successfully.)

This is presumably an issue with the "." (or maybe the hyphen) in the module 
name causing __import__ to get unhappy.
I'm guessing this must work for someone else it would already have been found, 
though. My system is Windows 7, 64bit, and I've not tried it on others.

Cheers,
Chris.

Original issue reported on code.google.com by thefishf...@gmail.com on 8 Oct 2010 at 1:17

GoogleCodeExporter commented 8 years ago
Thanks for reporting this.  I guess python modules don't like the '.' which 
makes perfect sense since myModule.foo should access 'foo' in myModule.  
Probably everyone who downloaded it had the same problem but you're the first 
to report it.

I just changed the description to tell people to rename the file.  Google Code 
doesn't allow renaming old downloads unfortunately.

Original comment by tnbak...@shaw.ca on 8 Oct 2010 at 9:43