Opened 11 years ago

Closed 9 years ago

#43473 closed defect (fixed)

rabbitmq-server: build fails when Python 2.7 is not the active version

Reported by: poorsod@… Owned by: meyer@…
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc:
Port: rabbitmq-server

Description

Steps to reproduce:

sudo port select --set python python34
sudo port install rabbitmq-server

Actual results:

The build fails. Inspecting the logs reveals a syntax error coming from Python - there is a rogue print statement (the syntax changed in Python 3). Setting python27 as the active version of python solves the issue.

Expected results:

It builds using python27 even when it is not the default version.

Change History (4)

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to meyer@…

comment:2 Changed 10 years ago by robertoschwald (Robert Oschwald)

Same problem here when python25 is active:

:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work/rabbitmq-server-3.1.5'
:info:build Makefile:375: deps.mk: No such file or directory
:info:build python codegen.py body codegen/amqp-rabbitmq-0.9.1.json codegen/credit_extension.json src/rabbit_framing_amqp_0_9_1.erl
:info:build  You don't appear to have simplejson.py installed
:info:build  (an implementation of a JSON reader and writer in Python).
:info:build  You can install it:
:info:build    - by running 'apt-get install python-simplejson' on Debian-based systems,
:info:build    - by running 'yum install python-simplejson' on Fedora/Red Hat system,
:info:build    - by running 'port install py25-simplejson' on Macports on OS X
:info:build      (you may need to say 'make PYTHON=python2.5', as well),
:info:build    - from sources from 'http://pypi.python.org/pypi/simplejson'
:info:build    - simplejson is a standard json library in the Python core since 2.6
:info:build make: *** [src/rabbit_framing_amqp_0_9_1.erl] Error 1
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work/rabbitmq-server-3.1.5'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_net_rabbitmq-server/rabbitmq-server/work/rabbitmq-server-3.1.5" && /usr/bin/make -w all 
:info:build Exit code: 2
:error:build org.macports.build for port rabbitmq-server returned: command execution failed
:debug:build Error code: CHILDSTATUS 9482 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"portbuild::build_main org.macports.build"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
:info:build Warning: targets not executed for rabbitmq-server: org.macports.activate org.macports.build org.macports.destroot org.macports.install

When selecting Python 2.6, it works.

Last edited 10 years ago by robertoschwald (Robert Oschwald) (previous) (diff)

comment:3 Changed 9 years ago by mamoll (Mark Moll)

This has been fixed. But there are now many other issues, see #47799.

comment:4 Changed 9 years ago by mamoll (Mark Moll)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.