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

Python 3.12 removed asyncore module #204

Open
arkamar opened this issue Jun 22, 2023 · 1 comment · May be fixed by #205
Open

Python 3.12 removed asyncore module #204

arkamar opened this issue Jun 22, 2023 · 1 comment · May be fixed by #205

Comments

@arkamar
Copy link

arkamar commented Jun 22, 2023

This library is broken with Python 3.12 because of removed asyncore module

27f4772d425a ~ # python3.12 pyinotify-0.9.6/python3/pyinotify.py -h
Traceback (most recent call last):
  File "/root/pyinotify-0.9.6/python3/pyinotify.py", line 71, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'

Python 3.11 prints this warning:

27f4772d425a ~ # python3.11 pyinotify-0.9.6/python3/pyinotify.py -h
/root/pyinotify-0.9.6/python3/pyinotify.py:71: DeprecationWarning: The asyncore module is deprecated and will be removed in Python 3.12. The recommended replacement is asyncio
  import asyncore
Usage: pyinotify.py [options] [path1] [path2] [pathn]
arkamar added a commit to arkamar/gentoo that referenced this issue Jun 22, 2023
Library is broken with py3.12 because of removed asyncore module.

Upstream-issue: seb-m/pyinotify#204
Signed-off-by: Petr Vaněk <[email protected]>
arkamar added a commit to arkamar/gentoo that referenced this issue Jun 22, 2023
Library is broken with py3.12 because of removed asyncore module.

Upstream-issue: seb-m/pyinotify#204
Signed-off-by: Petr Vaněk <[email protected]>
gentoo-bot pushed a commit to gentoo/gentoo that referenced this issue Jun 22, 2023
Library is broken with py3.12 because of removed asyncore module.

Upstream-issue: seb-m/pyinotify#204
Signed-off-by: Petr Vaněk <[email protected]>
Closes: #31572
Signed-off-by: Michał Górny <[email protected]>
troycurtisjr added a commit to troycurtisjr/pyinotify that referenced this issue Aug 11, 2023
@troycurtisjr troycurtisjr linked a pull request Aug 11, 2023 that will close this issue
@lexdene
Copy link

lexdene commented Oct 12, 2023

Maybe this project is no longer maitained.
So I forked it and renamed to pyinotify-elephant-fork.

Try:

pip install pyinotify-elephant-fork

https://pypi.org/project/pyinotify-elephant-fork/

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

Successfully merging a pull request may close this issue.

2 participants