# Problem enabling siding generator addon

I created this siding generator and I have been adding some new features and I have encountered some problems that I just can't seem to get around. Currently it is not installing into Blender 2.72 properly, it works fine from the text editor, but if you try and install it as an addon you get an error like this:

Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender\2.72\scripts\modules\addon_utils.py", line 299, in enable
mod = __import__(module_name)


Even though the other file is right there as well. I don't get what changed, it used to work just fine.

• Maybe from .add_mesh_siding_utils import * will do the job. Mind the dot before the module you want to import – Miguellissimo Oct 11 '14 at 0:15
• Here's a thread that was just started by a person who wants to colloborate on repairing Addons that break from API changes. A thread like this could easily become a running dialogue on how to fix many Addons and also how to avoid problems in the future. blenderartists.org/forum/… – MarcClintDion Oct 11 '14 at 9:43

The problem comes from the name of the directory you created in the addon folder. For your case the folder needs to be named exactly add_mesh_siding_utils. If you rename the folder the addon will work.
This is why, blender is trying to import everything from the addon (this line in the error message.) from add_mesh_siding_utils import *
Blender is looking for a directory called add_mesh_siding_utils; the directory name is the module name.