Opened 3 years ago

Closed 3 years ago

#63574 closed defect (fixed)

py27-unidecode @1.3.1: TypeError: 'encoding' is an invalid keyword argument for this function

Reported by: cooljeanius (Eric Gallager) Owned by: reneeotten (Renee Otten)
Priority: Normal Milestone:
Component: ports Version: 2.7.1
Keywords: Cc: esafak (Emre Şafak)
Port: py27-unidecode

Description

Upgrading py27-unidecode from 1.2.0 to 1.3.1 leads to this error:

Executing:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_python_py-unidecode/py27-unidecode/work/Unidecode-1.3.1" && /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-unidecode/py27-unidecode/work/Unidecode-1.3.1" && /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 17, in <module>
    long_description=get_long_description(),
  File "setup.py", line 9, in get_long_description
    with open(os.path.join(os.path.dirname(__file__), "README.rst"), encoding='utf-8') as fp:
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-unidecode/py27-unidecode/work/Unidecode-1.3.1" && /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-unidecode: command execution failed
DEBUG: Error code: CHILDSTATUS 17597 1

The other versions of py-unidecode upgraded successfully, so this must just be specific to python27. I'm on Big Sur with Xcode 13, for reference.

Change History (2)

comment:1 Changed 3 years ago by reneeotten (Renee Otten)

my bad... upstream dropped support for PY27; fix coming shortly

comment:2 Changed 3 years ago by reneeotten (Renee Otten)

Owner: set to reneeotten
Resolution: fixed
Status: newclosed

In d99aa88a46bf94a2560e4c114b0842520008e31b/macports-ports (master):

py-unidecode: update to 1.3.2, pin PY27 version

Closes: #63574

Note: See TracTickets for help on using tickets.