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 'requests' #105

Open
screwyy opened this issue Nov 1, 2024 · 1 comment
Open

ModuleNotFoundError: No module named 'requests' #105

screwyy opened this issue Nov 1, 2024 · 1 comment

Comments

@screwyy
Copy link

screwyy commented Nov 1, 2024

hello, I'm running v2.8.3 as a container on a v1.31 k8s cluster and I receive the error:

  Warning  BackOff    9s                 kubelet            Back-off restarting failed container rdk-exporter in pod rdk-exporter-c9bff8954-4dqrz_exporters(188f80b1-bfee-4606-b69b-bc7a00f7f7a7)
(ady) [ansible@inmlmawstlsans01 tls:N/A ~]$ kubectl -n exporters logs pod/rdk-exporter-c9bff8954-4dqrz
Traceback (most recent call last):
  File "/app/rundeck_exporter.py", line 7, in <module>
    import requests
ModuleNotFoundError: No module named 'requests'
@screwyy screwyy changed the title No module requests ModuleNotFoundError: No module named 'requests' Nov 1, 2024
@phsmith
Copy link
Owner

phsmith commented Nov 1, 2024

Hi @screwyy, sorry for the delay.

This is really weird. I just cleaned up my docker environment and ran the image and everything worked fine:

docker run --network host --rm --name rundeck-exporter -e RUNDECK_URL=http://localhost:4440 -e RUNDECK_EXPORTER_PORT=9621 -e RUNDECK_TOKEN=exporter_auth_token -e RUNDECK_SKIP_SSL=0 -e RUNDECK_PROJECTS_EXECUTIONS=1 -e RUNDECK_CPU_STATS=true -e RUNDECK_MEMORY_STATS=true  phsmith/rundeck-exporter:2.8.3 

2024-11-01 20:57:24,871 - INFO - Rundeck exporter server started at 127.0.0.1:9621...

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