Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when installing through Blender's UI #67

Closed
gentlegiantJGC opened this issue Nov 29, 2021 · 2 comments
Closed

Error when installing through Blender's UI #67

gentlegiantJGC opened this issue Nov 29, 2021 · 2 comments

Comments

@gentlegiantJGC
Copy link

The folder name inside the zip source includes the version number which makes the folder an invalid python id when blender tries to import it.

Steps to reproduce

  1. Open Blender's addon menu
  2. Click install
  3. Select the downloaded zip file
  4. Click the check box to enable the addon
  5. See the error in the console
Traceback (most recent call last):
  File "D:\Programs\Blender\2.90.1\2.90\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
ModuleNotFoundError: No module named 'tree-gen-0'

The folder in that path is actually tree-gen-0.0.3 which is the same as in the original zip file.
The solution is probably to create a github workflow to build the install file correctly

@samipfjo
Copy link
Contributor

Yeah, it's a packaging issue. For others visiting with the same problem, here's a file that works.

@friggog
Copy link
Owner

friggog commented Dec 14, 2021

I've updated the 0.0.3 release, annoying that we can't use the automatic github packaging for this any more

@friggog friggog closed this as completed Dec 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants