Problem with addons version names if numbers and dots #91509

Closed
opened 2021-09-19 00:27:06 +02:00 by ManBlender · 8 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.77

Blender Version
Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-17 15:08, hash: 6cf734a2e5
Worked: (newest version of Blender that worked as expected)

Short description of error
I have error:

Traceback (most recent call last):
  File "E:\\blender-3.0.0-alpha+master.6cf734a2e5d2-windows.amd64-release\3.0\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
ModuleNotFoundError: No module named 'MACHIN3tools-0'


https://github.com/machin3io/MACHIN3tools

Exact steps for others to reproduce the error
I trying install the addon by .zip but error.
Then I try to change Roaming\Blender Foundation\Blender\3.0\scripts\addons\MACHIN3tools-0.8 to MACHIN3tools and working.
This mind that blender not accepting the 0.8

I meet this problem from blender 2.92 time ago and next versions.

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1650 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 466.77 **Blender Version** Broken: version: 3.0.0 Alpha, branch: master, commit date: 2021-09-17 15:08, hash: `6cf734a2e5` Worked: (newest version of Blender that worked as expected) **Short description of error** I have error: ``` Traceback (most recent call last): File "E:\\blender-3.0.0-alpha+master.6cf734a2e5d2-windows.amd64-release\3.0\scripts\modules\addon_utils.py", line 351, in enable mod = __import__(module_name) ModuleNotFoundError: No module named 'MACHIN3tools-0' ``` https://github.com/machin3io/MACHIN3tools **Exact steps for others to reproduce the error** I trying install the addon by .zip but error. Then I try to change Roaming\Blender Foundation\Blender\3.0\scripts\addons\MACHIN3tools-0.8 to MACHIN3tools and working. This mind that blender not accepting the 0.8 I meet this problem from blender 2.92 time ago and next versions.
Author

Added subscriber: @ManBlender

Added subscriber: @ManBlender

Closed as duplicate of #83133

Closed as duplicate of #83133

Added subscriber: @rjg

Added subscriber: @rjg

Dots separate python modules, hence they are not permitted in the directory/module names. See also patches D12071 and D9731 that were rejected for this reason.

Dots separate python modules, hence they are not permitted in the directory/module names. See also patches [D12071](https://archive.blender.org/developer/D12071) and [D9731](https://archive.blender.org/developer/D9731) that were rejected for this reason.
Author

What is final solution for this? Maybe the best is to change in Roaming dot . for _ while files are instaled ?

What is final solution for this? Maybe the best is to change in Roaming dot . for _ while files are instaled ?

@ManBlender The developer needs to create the zip file properly and not rely on the auto-generated zip that GitHub creates for releases. In this particular case, you can either create the zip file with proper naming yourself or download it from the officially advertised sources where the developer publishes the add-on (see documentation ).

@ManBlender The developer needs to create the zip file properly and not rely on the auto-generated zip that GitHub creates for releases. In this particular case, you can either create the zip file with proper naming yourself or download it from the officially advertised sources where the developer publishes the add-on (see [documentation ](https://machin3.io/MACHIN3tools/docs/#download)).
Author

Strange.. coz if addon is github, and exist some version with dots.. what thats mind? Author under tests not meet problems? Or this only on windows not linux?
It's looks like impossible for authors to not meet this problems. Also why the still using dots in repo? Thats intresting. I always renaming these files and code around coz sometimes subdirs also have dots.

Strange.. coz if addon is github, and exist some version with dots.. what thats mind? Author under tests not meet problems? Or this only on windows not linux? It's looks like impossible for authors to not meet this problems. Also why the still using dots in repo? Thats intresting. I always renaming these files and code around coz sometimes subdirs also have dots.

@ManBlender When you tag a release on GitHub, it automatically creates a zip file where the top directory has the version number appended (the version number contains dots). Since the places you are supposed to download/buy this particular add-on are blendermarket and gumroad (see the linked documentation), the developer likely didn't think it was necessary to provide a ready-to-use zip file on GitHub.

@ManBlender When you tag a release on GitHub, it automatically creates a zip file where the top directory has the version number appended (the version number contains dots). Since the places you are supposed to download/buy this particular add-on are blendermarket and gumroad (see the linked documentation), the developer likely didn't think it was necessary to provide a ready-to-use zip file on GitHub.
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#91509
No description provided.