Skip to content

Support for Python 3.14 #529

@mscheltienne

Description

@mscheltienne

Hello, it seems python 3.14 is not yet properly supported. Attached is the error at import time:

In [4]: import cloudpathlib
---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
Cell In[4], line 1
----> 1 import cloudpathlib

File ~/git/Dandelion-Science/dandelion-utils/.venv/lib64/python3.14/site-packages/cloudpathlib/__init__.py:4
      1 import os
      2 import sys
----> 4 from .anypath import AnyPath
      5 from .azure.azblobclient import AzureBlobClient
      6 from .azure.azblobpath import AzureBlobPath

File ~/git/Dandelion-Science/dandelion-utils/.venv/lib64/python3.14/site-packages/cloudpathlib/anypath.py:6
      3 from pathlib import Path
      4 from typing import Any, Union
----> 6 from .cloudpath import InvalidPrefixError, CloudPath
      7 from .exceptions import AnyPathTypeError
      8 from .url_utils import path_from_fileurl

File ~/git/Dandelion-Science/dandelion-utils/.venv/lib64/python3.14/site-packages/cloudpathlib/cloudpath.py:72
     70     from pathlib import _make_selector  # type: ignore[attr-defined]
     71 elif sys.version_info >= (3, 13):
---> 72     from pathlib._local import _PathParents
     73     import posixpath as _posix_flavour  # type: ignore[attr-defined]   # noqa: F811
     75     from .legacy.glob import _make_selector  # noqa: F811

ModuleNotFoundError: No module named 'pathlib._local'

To reproduce the environment:

uv venv --python 3.14
uv pip install ipython cloudpathlib
source .venv/bin/activate

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