Skip to content

os.uname error on Windows during install #23

Description

@enlochner

When running pip install . I get this error:
AttributeError: module 'os' has no attribute 'uname'. Did you mean: 'name'?

I think this is because the uname function only works on some Unix systems. We can fix this by using the platform module, and changing line 24 in setup.py to
JAVA_PLATFORM_INCLUDE = JAVA_INCLUDE + '/' + platform.uname()[0].lower()

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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