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

Support Blender 4.20 and above #452

Closed
4 tasks done
hlorus opened this issue Mar 16, 2024 · 7 comments
Closed
4 tasks done

Support Blender 4.20 and above #452

hlorus opened this issue Mar 16, 2024 · 7 comments
Assignees
Labels
Bounty - Medium https://www.cadsketcher.com/cad-sketcher-bounty-board

Comments

@hlorus
Copy link
Owner

hlorus commented Mar 16, 2024

@hlorus hlorus added the Bounty - Medium https://www.cadsketcher.com/cad-sketcher-bounty-board label Mar 16, 2024
@hlorus hlorus self-assigned this Mar 16, 2024
@bEPHen
Copy link

bEPHen commented Jul 18, 2024

I would almost increase this priority due to Blender 4.2 LTS is released.
(I had to downgrade blender to keep yusing CAS Sketcher)

@hlorus
Copy link
Owner Author

hlorus commented Jul 19, 2024

What error did you face? It should already work, the remaining points here are for documentation and improvements for the installation through the new extension system.

@henimex
Copy link

henimex commented Jul 19, 2024

Hi im not an old user. just try to use your add on based on a video tutorial. when im trying to enable it im getting this error. i just tried manualy copy files to location.

cannot import name 'bl_info' from 'bl_ext.user_default.CAD_Sketcher' (C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\CAD_Sketcher|init.py)

@hlorus
Copy link
Owner Author

hlorus commented Jul 19, 2024

Hi im not an old user. just try to use your add on based on a video tutorial. when im trying to enable it im getting this error. i just tried manualy copy files to location.

cannot import name 'bl_info' from 'bl_ext.user_default.CAD_Sketcher' (C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\CAD_Sketcher|init.py)

Where did you download the addon from? Try it with the latest version from github please.

@henimex
Copy link

henimex commented Jul 19, 2024

I directly downloaded from github mate. after your post i deleted everything and redownload... same error apeared. Blender 4.2 is there anything else i could try

@hlorus
Copy link
Owner Author

hlorus commented Jul 19, 2024

With 4.2 there's now also the extension system. Did you also try to install it though this?

@Bavac
Copy link

Bavac commented Jul 20, 2024

Hi, I tried through the extension system, still get the same error.

Posted the traceback. From what I can see the problem seems to be that the utilities script can't access the global variable bl_info. If I comment out the check that gets the version number from the variable and instead let it get the version from the manifest. It works fine. Hope this helps:)

  File "C:\Program Files\Blender Foundation\Blender 4.2\4.2\scripts\modules\addon_utils.py", line 482, in enable
    mod.register()
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\CAD_Sketcher\__init__.py", line 56, in register
    logger.info("Enabled CAD Sketcher base, version: {}".format(get_addon_version()))
                                                                ^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\CAD_Sketcher\utilities\__init__.py", line 28, in get_addon_version
    version = get_addon_version_tuple()
              ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\CAD_Sketcher\utilities\__init__.py", line 14, in get_addon_version_tuple
    return get_bl_info()["version"]
           ^^^^^^^^^^^^^
  File "C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\CAD_Sketcher\utilities\__init__.py", line 6, in get_bl_info
    from .. import bl_info
ImportError: cannot import name 'bl_info' from 'bl_ext.user_default.CAD_Sketcher' (C:\Users\User\AppData\Roaming\Blender Foundation\Blender\4.2\extensions\user_default\CAD_Sketcher\__init__.py)```

@hlorus hlorus closed this as completed Jul 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bounty - Medium https://www.cadsketcher.com/cad-sketcher-bounty-board
Projects
None yet
Development

No branches or pull requests

4 participants