Skip to content

fsspec/spec.py#L568 causes AttributeError #1813

Open
@adhulipa

Description

@adhulipa

Bug stacktrace:

Im on a macOS system. Here's a partial stacktrace screenshot of the error I ran into
Image

Everything else in stack trace is custom library code and truncated for brevity

Potential bug site:

The issue is in:

seps = (os.path.sep, os.path.altsep) if os.path.altsep else (os.path.sep,)

Exception has occurred: AttributeError       (note: full exception trace is shown but execution is paused at: _run_module_as_main)
module 'posixpath' has no attribute 'sep'
  File "/path/to/my/venv/python/virtualenvs/base_lock/3.10.16/lib/python3.10/site-packages/fsspec/spec.py", line 563, in glob
    seps = (os.path.sep, os.path.altsep) if os.path.altsep else (os.path.sep,)

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