Page MenuHome

addons with a dot in their dirname are not seen/discovered by blender
Closed, ArchivedPublic

Description

System Information
Win8.1 64bit | GTX680

Blender Version
Broken: 509270e

Short description of error
When installing addon via User Preference panel, it will fail when the zipped addon's root folder name contains dots ("."). Typically those downloaded directly from Github.

Event Timeline

Leon Cheung (leon_cheung) raised the priority of this task from to 90.
Leon Cheung (leon_cheung) updated the task description. (Show Details)
Leon Cheung (leon_cheung) edited a custom field.
Bastien Montagne (mont29) lowered the priority of this task from 90 to 50.Mar 2 2016, 12:35 PM

It’s not installation that fails, it's finding such named addon. Blender simply does not find any addon which dir name has a dot somewhere, will check what happens here…

Bastien Montagne (mont29) renamed this task from Failed to install zipped addons to addons with a dot in their dirname are not seen/discovered by blender.Mar 2 2016, 12:44 PM

Issue comes from bpy.utils.path.module_names(), which assumes dirnames have no dot.

Fix is trivial, but not sure whether this behavior is intended (e.g. for optimizations of load time), so will let @Campbell Barton (campbellbarton) handle it. :)

Brendon Murphy (meta-androcto) lowered the priority of this task from 50 to Normal.Mar 5 2016, 5:16 AM

lower to normal priority

Campbell Barton (campbellbarton) changed the task status from Unknown Status to Archived.Mar 16 2016, 2:12 AM

Python modules can't have dots in their name, so even if we change bpy.utils.path.module_names to support this, Python wont be able to import this.

Add-ons must follow naming rules of Python modules, this is documented here: https://www.blender.org/api/blender_python_api_current/info_tutorial_addon.html#install-the-addon