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

Open
vslash opened this issue May 13, 2024 · 0 comments
Open

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

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

Comments

@vslash
Copy link

vslash commented May 13, 2024

Contact Details

[email protected]

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
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

1 participant