TypeError during build: chown() missing 1 required positional argument: 'numeric_owner'

Bug #1503807 reported by Jason R. Coombs
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
lxml
Fix Released
Undecided
scoder

Bug Description

Building lxml 3.4.4 or 3.5.0b1 on OS X 10.11 and Python 3.5.0 with STATIC_DEPS=True, I get the following error:

```
$ STATIC_DEPS=True easy_install 'lxml<3.5dev'
Searching for lxml<3.5dev
Reading https://pypi.python.org/simple/lxml/
Best match: lxml 3.4.4
Downloading https://pypi.python.org/packages/source/l/lxml/lxml-3.4.4.tar.gz#md5=a9a65972afc173ec7a39c585f4eea69c
Processing lxml-3.4.4.tar.gz
Writing /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/setup.cfg
Running lxml-3.4.4/setup.py -q bdist_egg --dist-dir /var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/egg-dist-tmp-l56u3azr
Building lxml version 3.4.4.
Latest version of libiconv is 1.14
Downloading libiconv into libs/libiconv-1.14.tar.gz
Unpacking libiconv-1.14.tar.gz into build/tmp
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 152, in save_modules
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 193, in setup_context
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 237, in run_setup
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 267, in run
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 236, in runner
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 46, in _execfile
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/setup.py", line 230, in <module>
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/setup.py", line 144, in setup_extra_options
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/setupinfo.py", line 57, in ext_modules
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/buildlibxml.py", line 331, in build_libxml2xslt
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/buildlibxml.py", line 245, in unpack_tarball
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/buildlibxml.py", line 225, in _extractall
TypeError: chown() missing 1 required positional argument: 'numeric_owner'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/3.5/bin/easy_install", line 9, in <module>
    load_entry_point('setuptools==18.3.2', 'console_scripts', 'easy_install')()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/command/easy_install.py", line 2279, in main
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/command/easy_install.py", line 389, in run
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/command/easy_install.py", line 638, in easy_install
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/command/easy_install.py", line 668, in install_item
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/command/easy_install.py", line 851, in install_eggs
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/command/easy_install.py", line 1079, in build_and_install
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/command/easy_install.py", line 1065, in run_setup
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 240, in run_setup
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 193, in setup_context
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/contextlib.py", line 77, in __exit__
    self.gen.throw(type, value, traceback)
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 164, in save_modules
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 139, in resume
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/compat.py", line 65, in reraise
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 152, in save_modules
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 193, in setup_context
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 237, in run_setup
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 267, in run
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 236, in runner
  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/setuptools-18.3.2-py3.5.egg/setuptools/sandbox.py", line 46, in _execfile
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/setup.py", line 230, in <module>
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/setup.py", line 144, in setup_extra_options
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/setupinfo.py", line 57, in ext_modules
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/buildlibxml.py", line 331, in build_libxml2xslt
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/buildlibxml.py", line 245, in unpack_tarball
  File "/var/folders/c6/v7hnmq453xb6p2dbz1gqc6rr0000gn/T/easy_install-lfefnmrr/lxml-3.4.4/buildlibxml.py", line 225, in _extractall
TypeError: chown() missing 1 required positional argument: 'numeric_owner'
```

I suspect the monkeypatch for _extractall is no longer compatible with Python 3.5.

Revision history for this message
Jason R. Coombs (jaraco) wrote :
scoder (scoder)
Changed in lxml:
assignee: nobody → scoder (scoder)
milestone: none → 3.5
status: New → Fix Committed
Revision history for this message
Jason R. Coombs (jaraco) wrote :

Sure would be nice to get a release with this fix, as installs from PyPI always fail.

Revision history for this message
George V. Reilly (georgevreilly) wrote :

This works for me:
  STATIC_DEPS=true pip3 install https://github.com/lxml/lxml/archive/master.zip

However, I am now stymied by https://github.com/Kozea/pygal/issues/282

Revision history for this message
scoder (scoder) wrote :

Fixed in lxml 3.5.0.

Changed in lxml:
status: Fix Committed → Fix Released
Revision history for this message
Jason R. Coombs (jaraco) wrote :

Awesome. Thanks!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.