#34709 closed defect (duplicate)
Qemu (and maybe others) won't build with python 3 as default
Reported by: | guillaumesalagnac | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 2.1.1 |
Keywords: | Cc: | ||
Port: | qemu |
Description
Installing qemu fails when the default selected python is python 3.1. But if I "port select" python 2.7 instead, then it works fine :
% sudo port -v install qemu ---> Computing dependencies for qemu. ---> Building qemu make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1' GEN qapi-types.h GEN qmp-commands.h File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1/scripts/qapi-types.py", line 167 except getopt.GetoptError, err: ^ SyntaxError: invalid syntax make: *** [qapi-types.h] Error 1 make: *** Waiting for unfinished jobs.... File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1/scripts/qapi-commands.py", line 376 except getopt.GetoptError, err: ^ SyntaxError: invalid syntax make: *** [qmp-commands.h] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1' Command failed: cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/work/qemu-1.0.1" && /usr/bin/make -j2 -w all Exit code: 2 Error: org.macports.build for port qemu returned: command execution failed Warning: targets not executed for qemu: org.macports.activate org.macports.build org.macports.destroot org.macports.install Please see the log file for port qemu for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_emulators_qemu/qemu/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port qemu failed % type python python is /opt/local/bin/python -> /opt/local/Library/Frameworks/Python.framework/Versions/3.1/bin/python3.1 python is /usr/bin/python % sudo port select python python27 Selecting 'python27' for 'python' succeeded. 'python27' is now active. % sudo port install qemu ---> Computing dependencies for qemu ---> Building qemu ---> Staging qemu into destroot ---> Installing qemu @1.0.1_0+target_i386+target_x86_64 ---> Activating qemu @1.0.1_0+target_i386+target_x86_64 ---> Cleaning qemu
Change History (4)
comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)
comment:2 Changed 12 years ago by guillaumesalagnac
Thanks. Is there something I could do to help ? I'm a very happy user of macports, but I know little about the internals...
comment:3 Changed 12 years ago by jmroot (Joshua Root)
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Given that you haven't named any specific "others", this is a duplicate of #34471.
Note: See
TracTickets for help on using
tickets.
That's not surprising at all. Yes, it's a bug in the qemu port that should be fixed, but it's probably a bug in hundreds of other ports too.