I am currently adding some features to an addon I made a while back: https://github.com/Zyl9393/mouse_strafing
One of the things I would like to have working is Linux support. When importing the .zip file with the addon files on Windows (through the “Install” button on the Add-ons page in Blender Preferences) the addon loads and works fine. When doing the same on Linux, I get this error:
Traceback (most recent call last): File "/home/me/blender-2.91.0-linux64/2.91/scripts/modules/addon_utils.py", line 351, in enable mod = __import__(module_name) File "/home/me/.config/blender/2.91/scripts/addons/mouse_strafing\__init__.py", line 27, in <module> from . import mouse_strafing ImportError: attempted relative import with no known parent package
I have looked at how other Blender Add-ons have their import statements, and see no striking differences. What do I need to change to get it working?