lmacken / plow

Chia Plot Mover
GNU General Public License v3.0
41 stars 18 forks source link

Clear Linux error #9

Open hajes opened 1 year ago

hajes commented 1 year ago

./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 commented 1 year ago

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 commented 1 year ago

looks like python 3.11 refuses to work with outdated aioutils

hajes commented 1 year ago

https://stackoverflow.com/questions/74345065/attributeerror-module-asyncio-has-no-attribute-coroutine-in-python-3-11

still comes with errors

SpikeTM commented 1 year ago

Same issue python 3.11. Any resolution?

hajes commented 1 year ago

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

SpikeTM commented 1 year ago

Very nice,.. mind sharing your script?

lmacken commented 10 months ago

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 commented 10 months ago

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

hajes commented 10 months ago

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 commented 10 months ago

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