fsspec / fsspec/filesystem_spec
`fsspec/spec.py#L568` causes `AttributeError`
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1.4k
- Forks
- 490
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 38
Description
Bug stacktrace:
Im on a macOS system. Here's a partial stacktrace screenshot of the error I ran into
Everything else in stack trace is custom library code and truncated for brevity
Potential bug site:
The issue is in:
https://github.com/fsspec/filesystem_spec/blob/961412dc83cb242728860f8637ab234485962f40/fsspec/spec.py#L568
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,)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in fsspec/spec.py at the glob method around line 563, where os.path.sep and os.path.altsep are accessed. Reproduce the macOS failure with the reported Python 3.10 environment and verify that glob no longer raises AttributeError for the path separator lookup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100