Skip to content
This repository was archived by the owner on Jul 29, 2024. It is now read-only.
This repository was archived by the owner on Jul 29, 2024. It is now read-only.

Setup fails in Python 3 when splitting string #35

@tomchor

Description

@tomchor

Using Python 3, Setup fails for me with this error:

Traceback (most recent call last):
  File "setup.py", line 51, in <module>
    library_dirs = string.split(os.environ['LD_LIBRARY_PATH'],':')
AttributeError: module 'string' has no attribute 'split'

Which I think is because the string.split is a method that exists for Python 2, but doesn't exist for Python 3. This could easily be re-written as

library_dirs = os.environ['LD_LIBRARY_PATH'].split(':')

But I'm guessing there's a reason why it wasn't written like this is the first place, otherwise I would have done a pull request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions