Issue #386 new

setuptools.sandbox.DirectorySandbox.open: TypeError: open() got an unexpected keyword argument 'dir_fd'

Alexey Kotlyarov
created an issue

setuptools.sandbox.DirectorySandbox.open is out of sync with os.open it replaces, missing (at least) the dir_fd argument. To reproduce:

virtualenv env -p python3
. env/bin/activate
pip install -U setuptools
easy_install greenlet

Stack trace end:

File "/home/alex/xaos/setuptools/env/lib/python3.3/shutil.py", line 464, in rmtree
  _rmtree_safe_fd(fd, path, onerror)
File "/home/alex/xaos/setuptools/env/lib/python3.3/shutil.py", line 396, in _rmtree_safe_fd
  dirfd = os.open(name, os.O_RDONLY, dir_fd=topfd)
TypeError: open() got an unexpected keyword argument 'dir_fd'

Version information:

python --version
Python 3.3.1

Comments (5)

  1. Log in to comment