-
Notifications
You must be signed in to change notification settings - Fork 9
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' #27
Comments
+1 |
same error. |
That is exactly what causes this issue. Installing aiopath v0.7.1+ fixes this problem. |
I tried aiopath 0.7.1 and 0.7.6, now there's a different error:
|
@yochananmarqos this might be some other issue not related with $ cast_control --help
Traceback (most recent call last):
File "/usr/bin/cast_control", line 5, in <module>
from cast_control.app.cli import cli
File "/usr/lib/python3.12/site-packages/cast_control/app/cli.py", line 8, in <module>
from .daemon import Args, MprisDaemon, get_daemon, get_daemon_from_args
File "/usr/lib/python3.12/site-packages/cast_control/app/daemon.py", line 12, in <module>
from .state import setup_logging
File "/usr/lib/python3.12/site-packages/cast_control/app/state.py", line 10, in <module>
from aiopath import AsyncPath
File "/usr/lib/python3.12/site-packages/aiopath/__init__.py", line 2, in <module>
from .path import AsyncPath, AsyncPurePath, AsyncWindowsPath, \
File "/usr/lib/python3.12/site-packages/aiopath/path.py", line 10, in <module>
from .flavours import _async_windows_flavour, _async_posix_flavour
File "/usr/lib/python3.12/site-packages/aiopath/flavours.py", line 2, in <module>
from pathlib import _PosixFlavour, _WindowsFlavour
ImportError: cannot import name '_PosixFlavour' from 'pathlib' (/usr/lib/python3.12/pathlib.py) With 0.7.1 and 0.7.6 $ cast_control --help
Usage: cast_control [OPTIONS] COMMAND [ARGS]...
Control casting devices via Linux media controls and desktops.
This daemon connects your casting device to the D-Bus media player interface
(MPRIS).
See https://github.com/alexdelorenzo/cast_control for more information.
Options:
-L, --license Show license and copyright information.
-V, --version Show version information.
--help Show this message and exit.
Commands:
connect Connect to a device and run the service in the foreground.
service Connect, disconnect or reconnect the background service to or... |
@BanditSan Yes, you're right. I manually created the Anyway, I've updated the |
AUR package maintainer here. I've updated everything now that Python 3.12 is available in Arch, however...
The text was updated successfully, but these errors were encountered: