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

Syntax error while making librabbitmq #35

Closed
yutas opened this issue Jul 24, 2012 · 2 comments
Closed

Syntax error while making librabbitmq #35

yutas opened this issue Jul 24, 2012 · 2 comments

Comments

@yutas
Copy link

yutas commented Jul 24, 2012

Hi, I can't build librabbitmq on my Archlinux neither with autoreconf nor with cmake. In both cases I get the same syntax error:

~/tmp/bin-rabbitmq-c > make
[ 2%] Generating amqp_codegen.py
[ 4%] Generating codegen.py
[ 6%] Generating amqp_framing.h
File "/home/yutas/tmp/bin-rabbitmq-c/librabbitmq/codegen.py", line 50
print self.prefix + line
^
SyntaxError: invalid syntax
make[2]: *** [librabbitmq/amqp_framing.h] Error 1
make[1]: *** [librabbitmq/CMakeFiles/rabbitmq.dir/all] Error 2
make: *** [all] Error 2

I have python 3.2.3 and python-simplejson 2.5.2-1 installed. What may be wrong?

@yutas
Copy link
Author

yutas commented Jul 24, 2012

Well, I finally managed to make it, when changed in CMakeFiles/rabbitmq.dir/build.make
/usr/bin/python to /usr/bin/python2.7

@yutas yutas closed this as completed Jul 24, 2012
@alanxz
Copy link
Owner

alanxz commented Jul 24, 2012

The code generator hasn't been updated to run under python 3.x. Try
building it with python 2.x.

On Tuesday, July 24, 2012, yutas wrote:

Hi, I can't build librabbitmq on my Archlinux neither with autoreconf nor
with cmake. In both cases I get the same syntax error:

~/tmp/bin-rabbitmq-c > make
[ 2%] Generating amqp_codegen.py
[ 4%] Generating codegen.py
[ 6%] Generating amqp_framing.h
File "/home/yutas/tmp/bin-rabbitmq-c/librabbitmq/codegen.py", line 50
print self.prefix + line
^
SyntaxError: invalid syntax
make[2]: *** [librabbitmq/amqp_framing.h] Error 1
make[1]: *** [librabbitmq/CMakeFiles/rabbitmq.dir/all] Error 2
make: *** [all] Error 2

I have python 3.2.3 and python-simplejson 2.5.2-1 installed. What may be
wrong?


Reply to this email directly or view it on GitHub:
#35

-Alan

Sent from my mobile device

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