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

[BUG] FreeBSD platform is not supported during install #464

Closed
vslash opened this issue May 13, 2024 · 1 comment
Closed

[BUG] FreeBSD platform is not supported during install #464

vslash opened this issue May 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@vslash
Copy link

vslash commented May 13, 2024

Contact Details

valery@vslash.com

Description

We cannot install the addon due to no support in bae/preferences.py for FreeBSD OS:
File "/home/valery/.config/blender/3.6/scripts/addons/CAD_Sketcher-main/base/preferences.py", line 71, in get_wheel version_info.major, version_info.minor, platform_strig UnboundLocalError: local variable 'platform_strig' referenced before assignment

Expected value:

import sys
sys.platform
'freebsd14'

bugfix could be like:

def get_wheel():
    p = Path(__file__).parent.absolute()
    from sys import platform, version_info

    if platform == "linux" or platform == "linux2":
        # Linux
        platform_strig = "linux"
    elif platform == "darwin":
        # OS X
        platform_strig = "macosx"
    elif platform == "win32":
        # Windows
        platform_strig = "win"
    elif platform.startswith("freebsd")
        # FreeBSD
        platform_strig = "freebsd"

but I don't know the future use for platform_strig, so "linux" could be a better value.

Addon Version

0.27

Blender Version

3.6

What platform are you running on?

Linux

@vslash vslash added the bug Something isn't working label May 13, 2024
@hlorus
Copy link
Owner

hlorus commented Jul 20, 2024

Thanks for the report. With blender 4.20 CAD Sketcher is installed as an extension which brings support for pip dependencies. Blender will install the correct solver module when the extension is installed.

@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
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants