juftin / browsr

🗂️ a pleasant file explorer in your terminal supporting all filesystems
http://juftin.com/browsr/
MIT License
225 stars 13 forks source link

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

Open anki-code opened 4 months ago

anki-code commented 4 months ago
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)
juftin commented 4 months ago

browsr doesn't officially support Python 3.12 (yet) - https://github.com/juftin/browsr/issues/34. An upstream depeendency just started supporting it.

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