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

auto-cpufreq has runtime error. #325514

Closed
MisileLab opened this issue Jul 8, 2024 · 1 comment · Fixed by #325685
Closed

auto-cpufreq has runtime error. #325514

MisileLab opened this issue Jul 8, 2024 · 1 comment · Fixed by #325685
Assignees

Comments

@MisileLab
Copy link

Describe the bug

auto-cpufreq has runtime error.

Steps To Reproduce

Steps to reproduce the behavior:

  1. run auto-cpufreq in terminal

Expected behavior

give command not found error or help message

Additional context

error:

Traceback (most recent call last):
  File "/nix/store/325f4xs1wzw9m28wbzfsjy27j9wgiccd-python3.12-auto-cpufreq-2.3.0/bin/..auto-cpufreq-wrapped-wrapped", line 6, in <module>
    from auto_cpufreq.bin.auto_cpufreq import main
  File "/nix/store/325f4xs1wzw9m28wbzfsjy27j9wgiccd-python3.12-auto-cpufreq-2.3.0/lib/python3.12/site-packages/auto_cpufreq/bin/auto_cpufreq.py", line 14, in <module>
    from auto_cpufreq.core import *
  File "/nix/store/325f4xs1wzw9m28wbzfsjy27j9wgiccd-python3.12-auto-cpufreq-2.3.0/lib/python3.12/site-packages/auto_cpufreq/core.py", line 28, in <module>
    from auto_cpufreq.utils.config import config
  File "/nix/store/325f4xs1wzw9m28wbzfsjy27j9wgiccd-python3.12-auto-cpufreq-2.3.0/lib/python3.12/site-packages/auto_cpufreq/utils/config.py", line 2, in <module>
    from auto_cpufreq.utils.config_event_handler import ConfigEventHandler
  File "/nix/store/325f4xs1wzw9m28wbzfsjy27j9wgiccd-python3.12-auto-cpufreq-2.3.0/lib/python3.12/site-packages/auto_cpufreq/utils/config_event_handler.py", line 1, in <module>
    import pyinotify
  File "/nix/store/8bxngdzbnzig8ddw0ypdg1plsmrpqmi2-python3.12-pyinotify-0.9.6/lib/python3.12/site-packages/pyinotify.py", line 71, in <module>
    import asyncore
ModuleNotFoundError: No module named 'asyncore'

Notify maintainers

I mentioned sarcasticadmin because this pr.
@sarcasticadmin @Technical27

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

[user@system:~]$ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 6.9.7, NixOS, 24.11 (Vicuna), 24.11.20240708.5f736f2`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.18.4`
 - channels(root): `"nixos"`
 - nixpkgs: `/nix/store/ah7v6nyzkvcb0dm3cfiihpv47s3pj9yb-source`

Add a 👍 reaction to issues you find important.

@sarcasticadmin
Copy link
Member

Closing #325571 upon digging into this deeper: it looks like this error is due to the removal of asyncore from python 3.12 which is effecting pyinotify. See: seb-m/pyinotify#204 and https://peps.python.org/pep-0594/

This probably means anything running on python 3.12 with pyinotify is also broken. Ill make the fix there.

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