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

Not working in Python 3.12 due to pyinotify #916

Open
5 of 16 tasks
elwint opened this issue Oct 11, 2023 · 7 comments
Open
5 of 16 tasks

Not working in Python 3.12 due to pyinotify #916

elwint opened this issue Oct 11, 2023 · 7 comments

Comments

@elwint
Copy link

elwint commented Oct 11, 2023

AutoKey is a Xorg application and will not function in a Wayland session. Do you use Xorg (X11) or Wayland?

Xorg

Has this issue already been reported?

  • I have searched through the existing issues.

Is this a question rather than an issue?

  • This is not a question.

What type of issue is this?

None

Choose one or more terms that describe this issue:

  • autokey triggers
  • autokey-gtk
  • autokey-qt
  • beta
  • bug
  • critical
  • development
  • documentation
  • enhancement
  • installation/configuration
  • phrase expansion
  • scripting
  • technical debt
  • user interface

Other terms that describe this issue if not provided above:

No response

Which Linux distribution did you use?

No response

Which AutoKey GUI did you use?

None

Which AutoKey version did you use?

No response

How did you install AutoKey?

No response

Can you briefly describe the issue?

ModuleNotFoundError: No module named 'asyncore'
Related to seb-m/pyinotify#204

Can the issue be reproduced?

None

What are the steps to reproduce the issue?

No response

What should have happened?

No response

What actually happened?

No response

Do you have screenshots?

No response

Can you provide the output of the AutoKey command?

No response

Anything else?

No response

@josephj11
Copy link
Contributor

josephj11 commented Oct 11, 2023

Welcome to the AutoKey community, @elwint !

Good to know. Hopefully, you can wrap autokey-qt or autokey-gtk in a script that invokes it with Python 3.11 as a workaround or, maybe, symlink python to python3.11 until this can be addressed.

We are very low on developer resources, so it may be a while before this can be addressed.

@feluxe
Copy link

feluxe commented May 22, 2024

I have the same issue. autokey doesn't work with python 3.12 on my machine.

@josephj11
Copy link
Contributor

I just checked and AFAIK, I am running 3.12 on Kubuntu 22.04 but I don't see any Python components that look like they're greater than 3.10. python3 -V says 3.12 and everything works fine - installed from the debs on GitHub.

locate -b asyncore
/usr/lib/python3.10/asyncore.py
/usr/lib/python3.10/__pycache__/asyncore.cpython-310.pyc

@josephj11
Copy link
Contributor

@elwint Have you tried anything else or made any progress?

@feluxe Can you provide details of exactly what it does do and the other information that the report form above asks the OP for?

@VelorumS
Copy link

Try to install the pyasyncore Python package. It brings back asyncore that's deprecated.

https://github.com/simonrob/pyasyncore

It seems that Python has deprecated asyncore in version 3.6 and removed it in version 3.12 https://docs.python.org/3.11/library/asyncore.html

asyncio should be used instead.

pyinotify has to fix the code: seb-m/pyinotify#204

@elwint
Copy link
Author

elwint commented May 23, 2024

@josephj11 My quick workaround has been overwriting pyinotify.py in my pipx venv with troycurtisjr fixed version in seb-m/pyinotify#205

@josephj11
Copy link
Contributor

Thanks to both of you @VelorumS and @elwint for the feedback.

If you know any Python developers looking for a good project to work on, please send them our way! We currently have none and can't fix even seemingly simple problems such as this. I would be very sad to see this project die.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants