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

Clear Linux error #9

Open
hajes opened this issue Aug 12, 2023 · 10 comments
Open

Clear Linux error #9

hajes opened this issue Aug 12, 2023 · 10 comments

Comments

@hajes
Copy link

hajes commented Aug 12, 2023

./plow.py
Traceback (most recent call last):
File "/home/hajes/./plow.py", line 16, in
import aionotify
File "/home/hajes/.local/lib/python3.11/site-packages/aionotify/init.py", line 5, in
from .base import Watcher
File "/home/hajes/.local/lib/python3.11/site-packages/aionotify/base.py", line 10, in
from . import aioutils
File "/home/hajes/.local/lib/python3.11/site-packages/aionotify/aioutils.py", line 122, in
@asyncio.coroutine
^^^^^^^^^^^^^^^^^
AttributeError: module 'asyncio' has no attribute 'coroutine'. Did you mean: 'coroutines'?

@hajes
Copy link
Author

hajes commented Aug 12, 2023

python3 -m pip install aioutils
Defaulting to user installation because normal site-packages is not writeable
DEPRECATION: Loading egg at /usr/lib/python3.11/site-packages/cupshelpers-1.0-py3.11.egg is deprecated. pip 23.3 will enforce this behaviour change. A possible replacement is to use pip for package installation..
Collecting aioutils
Using cached aioutils-0.3.10.tar.gz (9.3 kB)
Preparing metadata (setup.py) ... error
error: subprocess-exited-with-error

× python setup.py egg_info did not run successfully.
│ exit code: 1
╰─> [11 lines of output]
Traceback (most recent call last):
File "", line 2, in
File "", line 34, in
File "/tmp/pip-install-4b8_y1xv/aioutils_c347824d546a4c9f962684db1a9ecb9c/setup.py", line 5, in
from aioutils import version
File "/tmp/pip-install-4b8_y1xv/aioutils_c347824d546a4c9f962684db1a9ecb9c/aioutils/init.py", line 1, in
from .pool import Pool, Group
File "/tmp/pip-install-4b8_y1xv/aioutils_c347824d546a4c9f962684db1a9ecb9c/aioutils/pool.py", line 46
task = asyncio.async(coro_or_future)
^^^^^
SyntaxError: invalid syntax
[end of output]

note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

@hajes
Copy link
Author

hajes commented Aug 12, 2023

looks like python 3.11 refuses to work with outdated aioutils

@hajes
Copy link
Author

hajes commented Aug 12, 2023

@SpikeTM
Copy link

SpikeTM commented Aug 26, 2023

Same issue python 3.11. Any resolution?

@hajes
Copy link
Author

hajes commented Aug 26, 2023

It uses outdated modules...i have written own script

@SpikeTM
Copy link

SpikeTM commented Aug 26, 2023

Very nice,.. mind sharing your script?

@lmacken
Copy link
Owner

lmacken commented Oct 19, 2023

Thanks for the report. Yeah it looks like aionotify upstream stopped doing releases, so it's currently broken on python3.11+. https://github.com/rbarrois/aionotify/pull/19/commits

@lmacken
Copy link
Owner

lmacken commented Oct 19, 2023

We could potentially port to another library like https://github.com/absperf/asyncinotify/

@hajes
Copy link
Author

hajes commented Oct 19, 2023

So far, my kludge is a custom bash script. Of course, it is a dumb script that needs some manual handling - otherwise it will try to copy all at once to all destinations.

Eventually, every major distro will move to 3.11+. It looks like this module is not developed anymore.

@lmacken
Copy link
Owner

lmacken commented Oct 19, 2023

I updated the README to mention this, https://github.com/lmacken/plow#known-issues

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

3 participants