ionthedev / ReSprytile

A Blender add-on for building tile based low-poly scenes with paint/map editor like tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strange Module Not Found Error

Robo-Fortune opened this issue · comments

This may be due to some peculiarities of NixOS that I'm not as yet aware of, but upon installing the add-on as a .zip file, blender correctly adds the addon's files to its addon filepath, and displays a message reading that the modules have been installed. On trying to enable the addon, however, an error occurs with the following traceback-

File "/nix/store/(random string)-blender-3.5.1/share/blender/3.5/scripts/modules/addon_utils.py", line 333, in enable
mod = __import__(module_name)
ModuleNotFoundError: No module named 'ReSprytile-0.8'

The issue, seemingly, is that the file has incorrectly truncated the path for the module it's trying to enable, removing the final ".1"; this occurred earlier, but also truncated the filename to "ReSprytile-0". The current state was achieved by simply changing the name of the folder to "ReSprytile-0", but has persisted after reinstalling the addon altogether.

Oddly, this issue does not happen with the original Sprytile, which instead breaks after having been enabled due to an error while loading image previews.

Expected Behavior

The addon, after installation, should be possible to enable through the blender preferences addon menu.

###Steps to Reproduce

  • Install blender 3.5.1 declaratively through Nix package manager
  • Download ReSprytile 0.8.1 as .zip from releases page
  • Install ReSprytile 0.8.1 through Blender's Preferences/Add-ons menu
  • Attempt to enable the addon in the Preferences/Add-ons Menu

Update: Issue solved by using release 0.6.1 instead of 0.8.1; 0.8.1 still not installing properly for some reason

@Robo-Fortune Try renaming the .zip file from ReSprytile-0.8.1.zip to ReSprytile.zip or SpryTile.zip and install it again. Worked for me.

Here's what worked for me, if this helps anyone googling this. Ubuntu user, Blender 3.6.5

  • 0.8.1 wasn't working (same error as OP)
  • 0.6.1 would install, but then doing anything would throw errors
  • 0.8.0 seems to work just fine

I am experiencing the same problem. Renaming the zip did not work.

rename the folders contained within the zip file, not the zip file itself.

Unzipping, renaming the folder to ReSprytile, and finally zipping it again works. (For version 3.6 LTS)