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

importlib-metadata 5.0.0 in lockfile prevents nautobot from starting on python 3.7 #36

Closed
gsnider2195 opened this issue Jan 30, 2023 · 1 comment

Comments

@gsnider2195
Copy link
Contributor

Environment

  • Python version: 3.7.12
  • Nautobot version: 1.2.0-1.3.10
  • nautobot-data-validation-engine version: develop branch

Steps to Reproduce

  1. clone develop branch
  2. invoke build
  3. invoke debug

Expected Behavior

Nautobot starts

Observed Behavior

Nautobot fails to start with traceback:

nautobot_data_validation_engine-nautobot-1  |   File "/usr/local/lib/python3.7/site-packages/nautobot/core/__init__.py", line 5, in <module>
nautobot_data_validation_engine-nautobot-1  |     from nautobot.core.celery import app as celery_app
nautobot_data_validation_engine-nautobot-1  |   File "/usr/local/lib/python3.7/site-packages/nautobot/core/celery/__init__.py", line 4, in <module>
nautobot_data_validation_engine-nautobot-1  |     from celery import Celery, shared_task
nautobot_data_validation_engine-nautobot-1  | ImportError: cannot import name 'Celery' from 'celery' (/usr/local/lib/python3.7/site-packages/celery/__init__.py)
nautobot_data_validation_engine-nautobot-1  |Waited 30s or more for the DB to become ready.

Related to celery issue celery/celery#7783

The poetry.lock file is using importlib-metadata version 5.0.0. There doesn't appear to be any dependency on this version and the workaround is to pin the version to <5.0.0. The nautobot dependency was changed from ~4.4 to ^4.4 in nautobot v1.4.0 which resolves the issue.

@DistantVoyager
Copy link
Contributor

No longer using importlib-metadata==5.0.0 in #48

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