librabbitmq icon indicating copy to clipboard operation
librabbitmq copied to clipboard

Can not import _librabbitmq

Open SnoozeFreddo opened this issue 4 years ago • 1 comments

When i run my program i get:

  return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "PycharmProjects/celery_testing/venv/lib/python3.7/site-packages/kombu/transport/librabbitmq.py", line 10, in <module>
    import librabbitmq as amqp
  File "/venv/lib/python3.7/site-packages/librabbitmq/__init__.py", line 7, in <module>
    import _librabbitmq

Google gives me some weird results for my problem :F

and here is how i start the basic app:

app = Celery('proj', broker='librabbitmq://', include=['proj.tasks'])

I found this here: https://github.com/celery/librabbitmq/pull/150

but i am using python 3.7, Celery 5.1.2, kombu 5.1, amqp 5.0.6 and librabbitmq=2.0.0 and i still hve the problem :(

SnoozeFreddo avatar Jul 08 '21 11:07 SnoozeFreddo

There's not enough information to debug this issue. Did the package compile successfully?

thedrow avatar Jul 13 '21 06:07 thedrow