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

ModuleNotFoundError: No module named 'ipahealthcheck.core' #278

Closed
gwikleag opened this issue Oct 6, 2022 · 0 comments · Fixed by #279
Closed

ModuleNotFoundError: No module named 'ipahealthcheck.core' #278

gwikleag opened this issue Oct 6, 2022 · 0 comments · Fixed by #279

Comments

@gwikleag
Copy link

gwikleag commented Oct 6, 2022

On Debian with the bullseye backports repository configured I get the error below. My guess is that ipahealtcheck is designed to be run only on freeipa servers and doesn't work on ipa clients. But where is the helpful error or documentation that says that? Maybe I did not install it according to recommendations? Where are installation instructions? Usually they are in the front page README on GitHub.

$ sudo apt install freeipa-healthcheck
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  python3-ipaserver
The following NEW packages will be installed:
  freeipa-healthcheck
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 29.7 kB of archives.
After this operation, 204 kB of additional disk space will be used.
Get:1 http://ftp.us.debian.org/debian bullseye/main amd64 freeipa-healthcheck all 0.8-1 [29.7 kB]
Fetched 29.7 kB in 7s (4,557 B/s)              
Selecting previously unselected package freeipa-healthcheck.
(Reading database ... 205509 files and directories currently installed.)
Preparing to unpack .../freeipa-healthcheck_0.8-1_all.deb ...
Unpacking freeipa-healthcheck (0.8-1) ...
Setting up freeipa-healthcheck (0.8-1) ...
Created symlink /etc/systemd/system/multi-user.target.wants/ipa-healthcheck.service → /lib/systemd/system/ipa-healthcheck.service.
Created symlink /etc/systemd/system/multi-user.target.wants/ipa-healthcheck.timer → /lib/systemd/system/ipa-healthcheck.timer.
Processing triggers for man-db (2.9.4-2) ...

$ ipa-healthcheck 
Traceback (most recent call last):
  File "/usr/local/bin/ipa-healthcheck", line 33, in <module>
    sys.exit(load_entry_point('ipahealthcheck==0.11', 'console_scripts', 'ipa-healthcheck')())
  File "/usr/local/bin/ipa-healthcheck", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 972, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 984, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'ipahealthcheck.core'

rcritten added a commit to rcritten/freeipa-healthcheck that referenced this issue Oct 7, 2022
I also mentioned that it only checks the local server, not others
currently.

Fixes: freeipa#278

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
rcritten added a commit to rcritten/freeipa-healthcheck that referenced this issue Oct 7, 2022
Related: freeipa#278

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
rcritten added a commit that referenced this issue Oct 10, 2022
I also mentioned that it only checks the local server, not others
currently.

Fixes: #278

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
rcritten added a commit that referenced this issue Oct 10, 2022
Related: #278

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
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.

1 participant