Page MenuHome

blender will not let me install addons
Closed, ArchivedPublic

Description

Hello thank you for answering, what I try to do is install some addons that I got to continue with my work but blender does not allow me to install them. I have been working with this software for 2 years now and it is the first time this has happened to me.
I try to install hard ops, pro lighting studio, kit ops, IES lights, contours retopology tools, animation nodes, UVsquare, flip fluid.
install hard ops, animation nodes, pro lighting studio, contours retopology, lights IES, in the company's computer but in mine I always get this notice,
I have windows 10 x 64 bit, a graphic card envy box 5000, I have already uninstalled and reinstalled but I always get the same problem

addon_utils.disable: rigify not disabled.
Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\modules\addon_utils.py", line 331, in enable
  mod = __import__(module_name)
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\__init__.py", line 41, in <module>
  from . import utils, rig_lists, generate, ui, metarig_menu
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\addons\rigify\utils.py", line 22, in <module>
  import imp
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\imp.py", line 23, in <module>
  from importlib import util
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\importlib\util.py", line 13, in <module>
  from contextlib import contextmanager
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\contextlib.py", line 5, in <module>
  from functools import wraps
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\functools.py", line 22, in <module>
  from types import MappingProxyType

ImportError: cannot import name 'MappingProxyType'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\startup\bl_operators\wm.py", line 1830, in execute
  mod = addon_utils.enable(self.module, default_set=True, handle_error=err_cb)
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\modules\addon_utils.py", line 339, in enable
  handle_error(ex)
File "C:\Program Files\Blender Foundation\Blender\2.79\scripts\startup\bl_operators\wm.py", line 1825, in err_cb
  import traceback
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\traceback.py", line 5, in <module>
  import linecache
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\linecache.py", line 8, in <module>
  import functools
File "C:\Program Files\Blender Foundation\Blender\2.79\python\lib\functools.py", line 22, in <module>
  from types import MappingProxyType

ImportError: cannot import name 'MappingProxyType'

Event Timeline

Brecht Van Lommel (brecht) lowered the priority of this task from 90 to 30.Nov 8 2018, 11:21 AM

This likely happens due to an addon installation that put files in the wrong location. I'm not sure exactly which addon causes this problem, but we've seen the same error before.

To fix it, go to this location in the file browser where the installed addons are:
C:\Users\<YourUserName>\AppData\Roaming\Blender Foundation\Blender\2.79\scripts\addons

There will be a "types.py" in that folder, which shouldn't be there. Deleting that file may solve the issue, and if not you can try moving all the files out of that folder and installing addons again.

Bastien Montagne (mont29) changed the task status from Unknown Status to Archived.Nov 22 2018, 11:54 AM
Bastien Montagne (mont29) claimed this task.

More than a week without reply or activity. Due to the policy of the tracker archiving for until required info/data are provided.

For anyone finding this from google: I just ran into this error message, and it was caused by trying to import a file from the addon's own package, which did not exist, using this syntax:
from . import non_existent_file.

This happened to me with the addon Sorcar that seems to have incorrect unregister calls as re-enabling the addon throws the same error.

However, restarting Blender allows it to be enabled again, but with the addon enabled I clicked Edit > Preferences > Load Factory Preferences which disabled it, and it wouldn't install even after making a new file or restarting.

I managed to enable it again by deleting ~/.config/blender/2.83/config/userpref.blend.

On Windows 10, I found a solution to this problem was to right click the downloaded .py file and check the "Unblock" box in security before importing it.