Comments (7)
I believe it has to do with the imports within the amqp module.
I've done some changes to get the code imported on python 2.7.3 and created pr #88. My virtualenv has vine 1.1.0, kombu 3.0.35 with celery 3.1.23 (and a lot more). I needed one more change to get celery 3.1.23 running with amqp 2.0.0 as well, but I'll create a separate pr for that
from py-amqp.
Before Python version 2.7.7, the struct.pack() function required a native string as its format argument.
from py-amqp.
anyone can check it? @ask
from py-amqp.
I'm seeing the same message using python 2.7.3 using amqp==2.0.0 since I've upgraded amqp-1.4.9 this morning.
...
from amqp import ChannelError, ConnectionError, ResourceError
File "/var/www/brownpapersession/dev/env-brownpapersession/local/lib/python2.7/site-packages/amqp/init.py", line 39, in
from .basic_message import Message # noqa
File "/var/www/brownpapersession/dev/env-brownpapersession/local/lib/python2.7/site-packages/amqp/basic_message.py", line 19, in
from . import spec
ImportError: cannot import name spec
from py-amqp.
Hey!
Kombu 3.x should not be used with amqp 2.0, and the kombu requirements have reflected this since the release of 3.0.0:
https://github.com/celery/kombu/blob/3.0/requirements/default.txt
If you use kombu 3.x, you should keep to the 1.4 series of py-amqp!
from py-amqp.
That said, I don't know if kombu 3.x is actually incompatible, and I don't understand why this error is happening.
The earliest 2.7 version I have available is 2.7.8 and importing amqp.spec
works there. Same for 2.7.10.
Could you try to do a pip install vine
to see if that helps?
from py-amqp.
Actually we rely librabbitmq==1.6.1,
but librabbitmq rely amqp>=1.4.6
https://github.com/celery/librabbitmq/blob/v1.6.1/requirements/default.txt
from py-amqp.
Related Issues (20)
- Version 5.0.4 has an error HOT 16
- TCP_USER_TIMEOUT doesn't exist on solaris 11.4 HOT 2
- [BUG] Cannot set cert_reqs=ssl.CERT_NONE due to order of context modification in _wrap_socker_sni HOT 1
- Potentially broken _AbstractTransport.__repr__ HOT 4
- 5.0.6: sphinx warnings HOT 6
- 5.0.6: test suite is using `case` which uses `nose` (which is outdated) HOT 2
- Initial Update
- 5.0.7 SSL connection problem HOT 4
- Celery broken after release 5.0.8 HOT 6
- 5.1.1: pytest warnings HOT 2
- 'Server unexpectedly closed connection' HOT 6
- Waht is stable version? HOT 1
- amqp.exceptions.NotFound: Queue.declare: (404) NOT_FOUND
- pyamqp won't send heartbeat?
- 5.1.1: documentation build fails with sphinx 6.1.3 HOT 3
- Maximum recursion depth exceeded
- How does pyamqp/kombu make multiple threads share the same amqp connection? HOT 5
- bug: version 5.2.0 breaks celery with sqs msg processing HOT 3
- Client which use amqp lib always think that connection is blocked.
- Basic.publish: (406) PRECONDITION_FAILED - message size larger than configured max 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 py-amqp.