#66572 closed defect (fixed)

iulib @0.4-20141216_3: SyntaxError: Missing parentheses in call to 'print'.

Reported by: cooljeanius (Eric Gallager) Owned by: Marius Schamschula <mschamschula@…>
Priority: Normal Milestone:
Component: ports Version: 2.8.0
Keywords: Cc:
Port: iulib

Description

Trying to rev-upgrade after the latest tiff update:

scons: Reading SConscript files ...
  File "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_iulib/iulib/work/tmbdev-iulib-b2b66db/SConstruct", line 63

    print "WARNING: compile with -DUNSAFE or high optimization only for production use"

    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?

Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_graphics_iulib/iulib/work/iulib-b2b66dbcbbbfcb4aac0784ea9f07db998077dbc1" && /opt/local/bin/scons -j16 
Exit code: 2
Error: Failed to build iulib: command execution failed
DEBUG: Error code: CHILDSTATUS 8744 2

I'm on Big Sur with Xcode 13.

Attachments (1)

iulib_main.log (16.9 KB) - added by cooljeanius (Eric Gallager) 16 months ago.
main.log for iulib

Download all attachments as: .zip

Change History (5)

Changed 16 months ago by cooljeanius (Eric Gallager)

Attachment: iulib_main.log added

main.log for iulib

comment:1 Changed 16 months ago by Schamschula (Marius Schamschula)

Apparently, there haven't been any updates since 2014. There were PRs in 2017, but they haven't been merged.

Also, see #42353

In other words, it needs to be fixed by patching in MacPorts.

comment:2 Changed 16 months ago by Schamschula (Marius Schamschula)

It was written for Python 2.7, but we're now using Python 3.x.

comment:3 in reply to:  2 Changed 16 months ago by ryandesign (Ryan Carsten Schmidt)

Replying to Schamschula:

It

—the SConstruct file—

was written for Python 2.7, but we're now using Python 3.x.

—for scons. This is an example of the fallout I anticipated in #59303.

Adding the parentheses to the print call is easy. Haven't checked yet if that's the only problem.

comment:4 Changed 16 months ago by Marius Schamschula <mschamschula@…>

Owner: set to Marius Schamschula <mschamschula@…>
Resolution: fixed
Status: newclosed

In 7012dabc7b7c8ff8f70bf79e92026873f9ee406b/macports-ports (master):

iulib: Fix Python 2.7 to 3.x print ssyntax

merge implicit.patch into patch-SConstruct.diff
Closes: #66572

Note: See TracTickets for help on using tickets.