Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

List packaging as a dependency #186

Closed
jrbourbeau opened this issue Feb 17, 2024 · 2 comments · Fixed by #187
Closed

List packaging as a dependency #186

jrbourbeau opened this issue Feb 17, 2024 · 2 comments · Fixed by #187
Assignees
Labels
bug 🐛 Something isn't working
Milestone

Comments

@jrbourbeau
Copy link

I ran into this error:

----> 1 out = Path("model.json")

File ~/mambaforge/envs/test/lib/python3.11/site-packages/upath/core.py:125, in UPath.__new__(cls, protocol, *args, **storage_options)
    123 # determine which UPath subclass to dispatch to
    124 if cls._protocol_dispatch or cls._protocol_dispatch is None:
--> 125     upath_cls = get_upath_class(protocol=pth_protocol)
    126     if upath_cls is None:
    127         raise ValueError(f"Unsupported filesystem: {pth_protocol!r}")

File ~/mambaforge/envs/test/lib/python3.11/site-packages/upath/registry.py:208, in get_upath_class(protocol, fallback)
    206         return WindowsUPath
    207     else:
--> 208         from upath.implementations.local import PosixUPath
    210         return PosixUPath
    211 if not fallback:

File ~/mambaforge/envs/test/lib/python3.11/site-packages/upath/implementations/local.py:15
     12 from urllib.parse import SplitResult
     14 from fsspec import __version__ as fsspec_version
---> 15 from packaging.version import Version
     17 from upath._flavour import FSSpecFlavour as _FSSpecFlavour
     18 from upath.core import UPath

ModuleNotFoundError: No module named 'packaging'

because packaging isn't listed a required dependency

install_requires=
fsspec>=2022.1.0

Installing packaging fixed the issue

@ap-- ap-- self-assigned this Feb 17, 2024
@ap-- ap-- added the bug 🐛 Something isn't working label Feb 17, 2024
@ap--
Copy link
Collaborator

ap-- commented Feb 17, 2024

Thank you for reporting!

@jrbourbeau
Copy link
Author

Thanks for the quick fix @ap-- !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants