[MacPorts] #63574: py27-unidecode @1.3.1: TypeError: 'encoding' is an invalid keyword argument for this function

MacPorts noreply at macports.org
Mon Oct 4 15:13:55 UTC 2021


#63574: py27-unidecode @1.3.1: TypeError: 'encoding' is an invalid keyword argument
for this function
-------------------------+----------------------------
 Reporter:  cooljeanius  |      Owner:  (none)
     Type:  defect       |     Status:  new
 Priority:  Normal       |  Milestone:
Component:  ports        |    Version:  2.7.1
 Keywords:               |       Port:  py27-unidecode
-------------------------+----------------------------
 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.

-- 
Ticket URL: <https://trac.macports.org/ticket/63574>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list