Opened 13 months ago

Last modified 10 months ago

#68619 new defect

py27-smmap @5.0.0: TypeError: 'encoding' is an invalid keyword argument for this function

Reported by: cooljeanius (Eric Gallager) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc: herbygillot (Herby Gillot), cooljeanius (Eric Gallager)
Port: py27-smmap

Description

Attempting to upgrade py27-smmap results in the following error:

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-smmap/py27-smmap/work/smmap-5.0.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
DEBUG: system:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-smmap/py27-smmap/work/smmap-5.0.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
Traceback (most recent call last):
  File "setup.py", line 14, in <module>
    long_description = open('README.md', encoding="utf-8").read().replace('\r\n', '\n')
TypeError: 'encoding' is an invalid keyword argument for this function
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-smmap/py27-smmap/work/smmap-5.0.0" && /opt/local/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7 setup.py --no-user-cfg build 
Exit code: 1
Error: Failed to build py27-smmap: command execution failed
DEBUG: Error code: CHILDSTATUS 84277 1
DEBUG: Backtrace: command execution failed
    while executing
"system {*}$notty {*}$callback {*}$nice $fullcmdstring"
    invoked from within
"command_exec -callback portprogress::target_progress_callback build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"

I'm on x86_64 Big Sur with Xcode 13.

Attachments (1)

py27-smmap_main.log (8.5 KB) - added by cooljeanius (Eric Gallager) 13 months ago.
main.log for py27-smmap

Download all attachments as: .zip

Change History (5)

Changed 13 months ago by cooljeanius (Eric Gallager)

Attachment: py27-smmap_main.log added

main.log for py27-smmap

comment:1 Changed 13 months ago by jmroot (Joshua Root)

Cc: herbygillot added

comment:2 in reply to:  1 ; Changed 12 months ago by cooljeanius (Eric Gallager)

Replying to jmroot:

3.0.5 was the last version to support python 2.7. https://github.com/gitpython-developers/smmap/blob/master/doc/source/changes.rst

So I guess just pin the py27 sub-port to that version, then? N.B. it can't be just deleted yet, because there are still some ports that depend upon it:

$ port rdependents py27-smmap
The following ports are dependent on py27-smmap:
  py27-gitdb
    py27-git-sweep
      py-git-sweep
    py27-gitpython

comment:3 Changed 10 months ago by cooljeanius (Eric Gallager)

Cc: cooljeanius added

comment:4 in reply to:  2 Changed 10 months ago by cooljeanius (Eric Gallager)

Replying to cooljeanius:

it can't be just deleted yet, because there are still some ports that depend upon it:

$ port rdependents py27-smmap
The following ports are dependent on py27-smmap:
  py27-gitdb
    py27-git-sweep
      py-git-sweep
    py27-gitpython

(This is #64664 btw)

Note: See TracTickets for help on using tickets.