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

Need prerequisites to run. #63

Open
scythargon opened this issue Dec 7, 2021 · 7 comments
Open

Need prerequisites to run. #63

scythargon opened this issue Dec 7, 2021 · 7 comments

Comments

@scythargon
Copy link

scythargon commented Dec 7, 2021

First had to switch my base docker image to OS with ldd version > 2.28, now stuck on

ModuleNotFoundError:
No module named 'celery.fixups'

Probably an option to be installed via pip would be nice.

@scythargon
Copy link
Author

Eventually what worked for me: just clone it form github, install all the deps via poetry for correct python version (3.9.1) and viola!

@danihodovic
Copy link
Owner

There is a pre-built docker image that works for me danihodovic/celery-exporter.

@sazary
Copy link

sazary commented Jan 19, 2022

I have experienced the same problem too with the latest release (88d5911).

Output of the pre-built binary:

me@machine:~# ./celery-exporter --broker-url=redis://localhost:6379/0

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
cli.py 4 <module>


core.py 829 __call__


core.py 782 main


core.py 1066 invoke


core.py 610 invoke


cli.py 34 cli


exporter.py 147 run


base.py 289 __init__


base.py 289 <listcomp>


imports.py 56 symbol_by_name


__init__.py 127 import_module


<frozen importlib._bootstrap> 1030 _gcd_import


<frozen importlib._bootstrap> 1007 _find_and_load


<frozen importlib._bootstrap> 972 _find_and_load_unlocked


<frozen importlib._bootstrap> 228 _call_with_frames_removed


<frozen importlib._bootstrap> 1030 _gcd_import


<frozen importlib._bootstrap> 1007 _find_and_load


<frozen importlib._bootstrap> 984 _find_and_load_unlocked


ModuleNotFoundError:
No module named 'celery.fixups'
[249618] Failed to execute script cli

My environment:

Ubuntu 20.04.2 LTS
Python 3.8.10

BTW the docker version works without problem.

@danihodovic
Copy link
Owner

Can you try the latest release? #76 may have fixed it.

@cstorres
Copy link

cstorres commented Mar 2, 2022

Is it possible that the latest release doesn't include the fix? I tried but the same issue is still happening.

And yes, the docker version works like a charm!

@danihodovic
Copy link
Owner

@cstorres what environment are you running it on? Can you share the logs of the error you're seeing?

@cstorres
Copy link

cstorres commented Mar 2, 2022

Same error:

No module named 'celery.fixups'

I downloaded the binary from latest. I'm executing it inside a docker image based on Red Hat 8.5 with Python 3.8 installed.

I was able to build it from scratch tho :)

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

4 participants