Comments (2)
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.
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)
- Singularity should not assume data is in home
- when creating step, store some metadata (which parameters are defined...) for later error reporting
- recognize "kerberos: true" and set KRB env vars automatically HOT 1
- RuntimeWarning: line buffering (buffering=1) isn't supported in binary mode HOT 1
- Allow for alternative Singularity data mount or better mount point detection
- Use new base image for Dockerfile as CentOS 8 is EOL HOT 2
- Remove importlib-metadata constraint due to celery and kombu HOT 1
- Use gh-action-pypi-publish v1.7.0+ APIs HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packtivity.