Moo-Ack-Productions / MCprep

Blender python addon to increase workflow for creating minecraft renders and animations
https://theduckcow.com/MCprep
GNU General Public License v3.0
287 stars 24 forks source link

MCprep 3.6.1 Update is Missing Compiled Translations #627

Closed StandingPadAnimations closed 3 months ago

StandingPadAnimations commented 3 months ago

Did the issue happen after restarting Blender?

Check known issues

What happened?

MCprep 3.6.1 is missing compiled translation files, which causes the following erorr for end users:

Traceback (most recent call last):
  File "/usr/share/blender/4.2/scripts/modules/addon_utils.py", line 407, in enable
    mod = importlib.import_module(module_name)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/importlib/__init__.py", line 90, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1331, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 935, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 995, in exec_module
  File "<frozen importlib._bootstrap>", line 488, in _call_with_frames_removed
  File "/home/mahid/.config/blender/4.2/scripts/addons/MCprep_addon/__init__.py", line 59, in <module>
    from . import load_modules
  File "/home/mahid/.config/blender/4.2/scripts/addons/MCprep_addon/load_modules.py", line 28, in <module>
    from . import conf
  File "/home/mahid/.config/blender/4.2/scripts/addons/MCprep_addon/conf.py", line 325, in <module>
    env = MCprepEnv()
          ^^^^^^^^^^^
  File "/home/mahid/.config/blender/4.2/scripts/addons/MCprep_addon/conf.py", line 149, in __init__
    self.languages[language.name] = gettext.translation("mcprep",
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.12/gettext.py", line 538, in translation
    t = _translations.setdefault(key, class_(fp))
                                      ^^^^^^^^^^
  File "/usr/lib/python3.12/gettext.py", line 272, in __init__
    self._parse(fp)
  File "/usr/lib/python3.12/gettext.py", line 424, in _parse
    catalog[str(msg, charset)] = str(tmsg, charset)

This causes the following to occur:

What steps are needed to produce the bug?

1) Update MCprep 3.6 to MCprep 3.6.1* 2) Restart Blender 3) Enable MCprep

*Oddly enough, this doesn't seem to happen when manually installing MCprep 3.6.1

What version of MCprep are you using?

MCprep 3.6.1

What version of Blender are you using?

Blender 4.2, though this has also been observed in Blender 3.3

StandingPadAnimations commented 3 months ago

Closing as 3.6.1 is now pulled from releases