OSArch Community

[BlenderBIM] installation problem

  1. N

    I have been struggling to get Blender BIM to install. When i 'tick the box' to enable I get the following Traceback... I know it's me :) Some insight into why it's me will be really appreciated.

    Traceback (most recent call last):

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\modules\requests\compat.py", line 11, in <module>

    import chardet

    ModuleNotFoundError: No module named 'chardet'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):

    File "C:\Program Files\Blender Foundation\Blender 3.4\3.4\scripts\modules\addon_utils.py", line 333, in enable

    mod = __import__(module_name)

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blenderbim__init__.py", line 39, in <module>

    import blenderbim.bim

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blenderbim\bim__init__.py", line 80, in <module>

    modules[name] = importlib.import_module(f"blenderbim.bim.module.{name}")

    File "C:\Program Files\Blender Foundation\Blender 3.4\3.4\python\lib\importlib__init__.py", line 126, in import_module

    return _bootstrap._gcd_import(name[level:], package, level)

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blenderbim\bim\module\lca__init__.py", line 20, in <module>

    from . import ui, prop, operator

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blenderbim\bim\module\lca\prop.py", line 20, in <module>

    from blenderbim.bim.module.lca.data import LcaData

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blenderbim\bim\module\lca\data.py", line 20, in <module>

    import olca

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blenderbim\libs\site\packages\olca__init__.py", line 1, in <module>

    from .ipc import *

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\addons\blenderbim\libs\site\packages\olca\ipc.py", line 3, in <module>

    import requests

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\modules\requests__init__.py", line 45, in <module>

    from .exceptions import RequestsDependencyWarning

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\modules\requests\exceptions.py", line 9, in <module>

    from .compat import JSONDecodeError as CompatJSONDecodeError

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\modules\requests\compat.py", line 13, in <module>

    import charset_normalizer as chardet

    File "C:\Users\nigel\AppData\Roaming\Blender Foundation\Blender\3.4\scripts\modules\charset_normalizer__init__.py", line 24, in <module>

    from .api import from_bytes, from_fp, from_path

    ModuleNotFoundError: No module named 'charset_normalizer.api'

  2. C

    ModuleNotFoundError: No module named 'chardet'

    Seems to be this module after googling:

    https://pypi.org/project/chardet/

    That is odd because BlenderBIM works for me without this module, I also don't have it installed.

    Maybe some other add-on is causing it?

    Atleast what you could try is trying to install the chardet add-on from Blender and see if the message dissappears

    
    import sys
    
    import subprocess
    
    py_exec = str(sys.executable)
    
    
    # ensure pip is installed
    
    #subprocess.call([py_exec, "-m", "pip uninstall pip", "--user" ])
    
    #subprocess.call([py_exec, "-m", "ensurepip", "--user" ])
    
    #subprocess.call([py_exec, "-m", "pip install -U pip", "--user" ])
    
    # update pip (not mandatory but highly recommended)
    
    #subprocess.call([py_exec, "-m", "pip", "install", "--upgrade", "pip" ])
    
    
    # install packages
    
    subprocess.call([py_exec,"-m", "pip", "install", f"--target={py_exec[:-14]}" + "lib", "chardet"])
    

    Or try disabling all other add-ons and see if the message dissapears

  3. N

    @Coen thank you for your help, alas to no avail. It is doing my head in, I have disabled all Addons, reinstalled Blender. Now lost for clues :(

  4. C
  5. N

    @Coen OMG I'm such a dummy, I needed to run Blender as an administrator and your code worked, BlenderBIM enabled successfully. Thank you. I'll write that on a post note and stick on my monitor :)

Login or Register to reply.