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

incompatibility with python 3.12 #1132

Closed
slynobody opened this issue May 14, 2024 · 5 comments
Closed

incompatibility with python 3.12 #1132

slynobody opened this issue May 14, 2024 · 5 comments

Comments

@slynobody
Copy link

Describe the bug
does not work anymore with python 3.12

Include the following information:

  • OpenSnitch 1.6.5.1
  • OS: Debian
  • Version: trixie
  • Window Manager: KDE
  • Kernel version: 6.7

To Reproduce
Describe in detail as much as you can what happened.

Steps to reproduce the behavior:

  1. work with os with python 3.11, everything works
  2. install python3.12
  3. opensnitch-ui throws errors
  4. See error

Post error logs:
File "/usr/bin/opensnitch-ui", line 41, in
from opensnitch.service import UIService
File "/usr/lib/python3/dist-packages/opensnitch/service.py", line 18, in
from opensnitch.dialogs.prompt import PromptDialog
File "/usr/lib/python3/dist-packages/opensnitch/dialogs/prompt.py", line 17, in
from opensnitch.desktop_parser import LinuxDesktopParser
File "/usr/lib/python3/dist-packages/opensnitch/desktop_parser.py", line 3, in
import pyinotify
File "/usr/lib/python3/dist-packages/pyinotify.py", line 71, in
import asyncore
ModuleNotFoundError: No module named 'asyncore'

@gustavo-iniguez-goya
Copy link
Collaborator

Hi @slynobody ,

It seems that Debian's python3-pyinotify is still using the deprecated module asyncore. It has been removed in PEP-594:
https://peps.python.org/pep-0594/#networking-modules

Last version on Debian Sid is 0.9.6-2 (Sat, 11 Jun 2022 21:27:16). Maybe we need to file a bug report in order to let them know about this error?

On our side, I'll try to reproduce and fix it.

@slynobody
Copy link
Author

is there a workaround? python3.12 is on sid now replacing 3.11?

@gustavo-iniguez-goya
Copy link
Collaborator

I've just released v1.6.6 with a temporal solution. It should not crash now.

@gustavo-iniguez-goya
Copy link
Collaborator

@gustavo-iniguez-goya
Copy link
Collaborator

And now a fix has entered in Debian Sid 🎉

  * Add pyasyncore to Depends for support in Python >= 3.12.
    (Closes: #1075811, #1040102, #1075939)

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

2 participants