Giter Club home page Giter Club logo

Comments (2)

matthewfeickert avatar matthewfeickert commented on July 21, 2024

Seems to be Python 3.7 specific:

$ docker run --rm -ti python:3.7 /bin/bash
root@06c6d53d8eaf:/# python -m venv venv && . venv/bin/activate
(venv) root@06c6d53d8eaf:/# python -m pip --quiet install --upgrade pip setuptools wheel
(venv) root@06c6d53d8eaf:/# python -m pip --quiet install --upgrade celery
(venv) root@06c6d53d8eaf:/# python -m pip show celery
Name: celery
Version: 5.2.7
Summary: Distributed Task Queue.
Home-page: http://celeryproject.org
Author: Ask Solem
Author-email: [email protected]
License: BSD
Location: /venv/lib/python3.7/site-packages
Requires: billiard, click, click-didyoumean, click-plugins, click-repl, importlib-metadata, kombu, pytz, vine
Required-by: 
(venv) root@06c6d53d8eaf:/# python -c 'import celery'
(venv) root@06c6d53d8eaf:/# python -c 'from celery import Celery'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
ImportError: cannot import name 'Celery' from 'celery' (/venv/lib/python3.7/site-packages/celery/__init__.py)
(venv) root@06c6d53d8eaf:/# 

vs. Python 3.8:

$ docker run --rm -ti python:3.8 /bin/bash
root@aebe940fcecb:/# python -m venv venv && . venv/bin/activate
(venv) root@aebe940fcecb:/# python -m pip --quiet install --upgrade pip setuptools wheel
(venv) root@aebe940fcecb:/# python -m pip --quiet install --upgrade celery
(venv) root@aebe940fcecb:/# python -m pip show celery
Name: celery
Version: 5.2.7
Summary: Distributed Task Queue.
Home-page: http://celeryproject.org
Author: Ask Solem
Author-email: [email protected]
License: BSD
Location: /venv/lib/python3.8/site-packages
Requires: billiard, click, click-didyoumean, click-plugins, click-repl, kombu, pytz, vine
Required-by: 
(venv) root@aebe940fcecb:/# python -c 'import celery'
(venv) root@aebe940fcecb:/# python -c 'from celery import Celery'
(venv) root@aebe940fcecb:/# 

from packtivity.

matthewfeickert avatar matthewfeickert commented on July 21, 2024

Hm. Seems to be an importlib-metadata issue that won't get fixed until the next release of kombu given celery/celery#7783 (comment).

from packtivity.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.