Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upSupport for Python 3 #13
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ask
Dec 17, 2012
Member
Yeah, Python 3 support is planned, but it would most likely also require changes at the C level
|
Yeah, Python 3 support is planned, but it would most likely also require changes at the C level |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jensenbox
Nov 9, 2013
Same issue here - enclosed is a larger stack trace:
Downloading/unpacking librabbitmq (from -r /home/christian/documents/projects/rh/requirements.txt (line 41))
Downloading librabbitmq-1.0.2.tar.gz (455kB): 455kB downloaded
Running setup.py egg_info for package librabbitmq
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_christian/librabbitmq/setup.py", line 185
except Exception, exc:
^
SyntaxError: invalid syntax
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 16, in <module>
File "/tmp/pip_build_christian/librabbitmq/setup.py", line 185
except Exception, exc:
^
SyntaxError: invalid syntax
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /tmp/pip_build_christian/librabbitmq
Storing complete log in /home/christian/.pip/pip.log
jensenbox
commented
Nov 9, 2013
|
Same issue here - enclosed is a larger stack trace:
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
uschen
commented
Nov 14, 2013
|
Any schedule for 3 support? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ask
Nov 15, 2013
Member
Not yet. Need to port the C code too and I haven't even looked at the changes in the Python 3 C API.
|
Not yet. Need to port the C code too and I haven't even looked at the changes in the Python 3 C API. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kamikaze
commented
Dec 4, 2013
|
Have the same problem with 1.0.3 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
w3iBStime
commented
Mar 14, 2014
|
Thanks for a great library! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
w3iBStime
Mar 14, 2014
From initial digging, it looks like it'll need, among other things(?):
#if PY_MAJOR_VERSION >=3
# define Py_TPFLAGS_HAVE_ITER 0
#endifhttps://mail.python.org/pipermail/python-porting/2012-April/000289.html
Adding PyTypeObject *ob_type; to PyRabbitMQ_Connection (via the PyObject_HEAD_INIT macro? http://docs.python.org/3.3/c-api/typeobj.html)
...and some changes related to string encoding (everything is unicode under Py3). E.g.,
- PyString_FromString -> PyUnicode_FromString
- PyString_AsString -> PyUnicode_AsEncodedString
2to3 appears to take care of most of the Python code.
w3iBStime
commented
Mar 14, 2014
|
From initial digging, it looks like it'll need, among other things(?): #if PY_MAJOR_VERSION >=3
# define Py_TPFLAGS_HAVE_ITER 0
#endifhttps://mail.python.org/pipermail/python-porting/2012-April/000289.html Adding PyTypeObject *ob_type; to PyRabbitMQ_Connection (via the PyObject_HEAD_INIT macro? http://docs.python.org/3.3/c-api/typeobj.html) ...and some changes related to string encoding (everything is unicode under Py3). E.g.,
2to3 appears to take care of most of the Python code. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jbonfante
commented
Apr 2, 2014
|
+1 for py3 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
timdawborn
commented
Apr 9, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
kamikaze
commented
Apr 25, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
bosr
commented
May 6, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
sgeoffrey
commented
May 27, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
synthead
commented
May 30, 2014
|
Ditto. I'd love to see Python 3 support! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
adampl
commented
Jun 3, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
omerzimp
Jun 10, 2014
@ask What do you think about converting the bindings to CFFI so that Python 3 bindings would be possible and PyPy would be supported?
omerzimp
commented
Jun 10, 2014
|
@ask What do you think about converting the bindings to CFFI so that Python 3 bindings would be possible and PyPy would be supported? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
davidfischer-ch
commented
Jun 10, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ask
Jun 10, 2014
Member
@omerzimp I don't know how powerful CFFI is, and if that is possible, but that is something I have been considering. I doubt I would have the time to do so anytime soon though.
|
@omerzimp I don't know how powerful CFFI is, and if that is possible, but that is something I have been considering. I doubt I would have the time to do so anytime soon though. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Xiol
commented
Jun 12, 2014
|
+1 Last thing holding me back from porting my stuff across to Python 3 entirely! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
w3iBStime
Jun 12, 2014
@Xiol : If you can live with the performance, py-amqp (https://pypi.python.org/pypi/amqp/) is compatible with Python 3.
I also had to work around an issue with heartbeats since my consumers are long-running (the work-around is available here: celery/py-amqp#37 (comment))
w3iBStime
commented
Jun 12, 2014
|
@Xiol : If you can live with the performance, py-amqp (https://pypi.python.org/pypi/amqp/) is compatible with Python 3. I also had to work around an issue with heartbeats since my consumers are long-running (the work-around is available here: celery/py-amqp#37 (comment)) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
glyphobet
commented
Jul 24, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hwkns
commented
Aug 30, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
hovissimo
commented
Sep 8, 2014
|
One more voice wishing for Python 3 support |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vitaly4uk
commented
Oct 24, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ngonzalvez
commented
Nov 17, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
jsalvet
commented
Nov 19, 2014
|
+1000 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
littlezz
commented
Dec 23, 2014
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
grahamc
commented
Feb 17, 2015
|
Oh what the heck, +1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dwieeb
commented
Feb 18, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zloy531
commented
Feb 23, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
gavinmh
commented
Feb 23, 2015
|
+1 for Python3 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
r-darwish
commented
Mar 11, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mark-adams
commented
Mar 13, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mstajdohar
commented
Mar 19, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dgelvin
commented
Mar 25, 2015
|
Made a first attempt at this here. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
iyn
commented
Apr 21, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
aidanlister
commented
May 10, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
underyx
commented
May 12, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
btoueg
commented
Jun 10, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
mastak
commented
Jun 15, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
ajutras
commented
Jun 18, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
anthraxx
commented
Jun 24, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
arthurk
commented
Jul 24, 2015
|
+1 |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
malinoff
Jul 24, 2015
Member
I think it is enough of "+1"s. I'm going to lock this issue not because we won't add python 3 support, but to avoid messing up our mailboxes.
If anybody of "+1"ers have some time, please spend it on creating pull requests for python 3 support. Thank you.
|
I think it is enough of "+1"s. I'm going to lock this issue not because we won't add python 3 support, but to avoid messing up our mailboxes. If anybody of "+1"ers have some time, please spend it on creating pull requests for python 3 support. Thank you. |
celery
locked and limited conversation to collaborators
Jul 24, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
auvipy
self-assigned this
Aug 6, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
berkerpeksag
Aug 9, 2016
Member
I think the next step would be to improve the test suite. We especially need to test the Connection object and its methods return types.
|
I think the next step would be to improve the test suite. We especially need to test the Connection object and its methods return types. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Finally fixed. :) |
thijstriemstra commentedDec 13, 2012
It would be nice to support Python 3 at some point. Getting this error at the moment when running
python3.3 setup.py build: