Skip to content

NameError: libs is not defined when running build.py on non-Windows systems #2

@rowingchenn

Description

@rowingchenn

Running npm run build-flask on Ubuntu causes a NameError in api/build.py:

Traceback (most recent call last):
File "api/build.py", line 35, in
f"--add-data={libs}{';' if system() == 'Windows' else ':'}{libs}",
NameError: name 'libs' is not defined

libs is only defined inside the if system() == "Windows": block,
but it is referenced later in code that executes on all platforms.
This causes the build to fail on Linux and macOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions