ross-g / io_pdx_mesh

Import/Export files for the Clausewitz game engine
GNU General Public License v3.0
88 stars 11 forks source link

Can't enable the Blender addon #12

Closed crisaaa closed 4 years ago

crisaaa commented 4 years ago

this is the error message " halpppppp "

ross-g commented 4 years ago

I will need a bit more information from you, as the addon starts fine with Blender 2.83.2 for me!

Please can you:

Thanks

crisaaa commented 4 years ago

will do

crisaaa commented 4 years ago
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_pdx_mesh-master\__init__.py", line 54, in <module>
    IO_PDX_SETTINGS = PDXsettings(config_path)
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_pdx_mesh-master\settings.py", line 26, in __init__
    self.load_settings_file(filepath)
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\scripts\addons\io_pdx_mesh-master\settings.py", line 52, in load_settings_file
    settings_dict = json.load(open(filepath))
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\lib\json\__init__.py", line 296, in load
    parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\lib\json\__init__.py", line 348, in loads
    return _default_decoder.decode(s)
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Program Files\Blender Foundation\Blender 2.82\2.82\python\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Error line

crisaaa commented 4 years ago

system-info.txt

ross-g commented 4 years ago

Sorry for the long delay, I can't reproduce this problem I'm afraid. I've put some code into the next release which should skip this part of the addon startup if it fails. So that might fix your issue.

The only recommendation I might have is to not install addons directly into your C:/Program Files/Blender ... folder, but to install them into the user profile folder. https://docs.blender.org/manual/en/latest/advanced/blender_directory_layout.html