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

ImportError: cannot import name '_PosixFlavour' from 'pathlib' #43

Open
anki-code opened this issue Mar 4, 2024 · 1 comment
Open

Comments

@anki-code
Copy link

anki-code commented Mar 4, 2024

docker run -it --rm python:3.12-slim bash
pip install browsr
# browsr 1.19.0
browsr .
Traceback (most recent call last):
  File "/usr/local/bin/browsr", line 5, in <module>
    from browsr.__main__ import browsr
  File "/usr/local/lib/python3.12/site-packages/browsr/__main__.py", line 5, in <module>
    from browsr.cli import browsr
  File "/usr/local/lib/python3.12/site-packages/browsr/cli.py", line 12, in <module>
    from browsr.base import (
  File "/usr/local/lib/python3.12/site-packages/browsr/base.py", line 17, in <module>
    from upath import UPath
  File "/usr/local/lib/python3.12/site-packages/upath/__init__.py", line 2, in <module>
    from upath.core import UPath
  File "/usr/local/lib/python3.12/site-packages/upath/core.py", line 8, in <module>
    from pathlib import _PosixFlavour  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ImportError: cannot import name '_PosixFlavour' from 'pathlib' (/usr/local/lib/python3.12/pathlib.py)
@anki-code anki-code changed the title ImportError: cannot import name '_PosixFlavour' from 'pathlib' (/usr/local/lib/python3.12/pathlib.py) ImportError: cannot import name '_PosixFlavour' from 'pathlib' Mar 4, 2024
@juftin
Copy link
Owner

juftin commented Mar 4, 2024

browsr doesn't officially support Python 3.12 (yet) - #34. An upstream depeendency just started supporting it.

This is coming very soon though - I expect within the next week.

@juftin juftin mentioned this issue Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants