twitter/commons — Issue #17: IOError when calling --binary-deployjar
Author: rathboma
Created: 2012-02-24 17:55:58+00:00
State: open

When calling:
./pants binary a/b/c/d/e --binary-deployjar

This error:

IOError: [Errno 20] Not a directory: '/private/var/folders/CK/CKzwG+5sFuSjDMUTvdmWfk+++TI/-Tmp-/tmpuSHO8v/META-INF/MANIFEST.MF'

This is a pretty fundamental feature for me, so any insight to this is appreciated.

Here's the relevant bit of the stacktrace:

File "./build/pants.pex/twitter/pants/commands/goal.py", line 311, in execute
File "./build/pants.pex/twitter/pants/tasks/__init__.py", line 543, in attempt

File "./build/pants.pex/twitter/pants/tasks/__init__.py", line 402, in execute

File "./build/pants.pex/twitter/pants/tasks/__init__.py", line 363, in execute_task

File "./build/pants.pex/twitter/pants/tasks/binary_create.py", line 71, in execute
File "./build/pants.pex/twitter/pants/tasks/binary_create.py", line 108, in create_binary
File "./build/pants.pex/twitter/pants/base/target.py", line 120, in walk
File "./build/pants.pex/twitter/pants/targets/internal.py", line 182, in _walk
File "./build/pants.pex/twitter/pants/base/target.py", line 127, in _walk
File "./build/pants.pex/twitter/pants/tasks/binary_create.py", line 105, in add_jars
File "./build/pants.pex/twitter/pants/tasks/binary_create.py", line 139, in dump
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/contextlib.py", line 34, in __exit__
self.gen.throw(type, value, traceback)
File "./build/pants.pex/twitter/pants/tasks/binary_create.py", line 124, in open_jar
File "./build/pants.pex/twitter/pants/tasks/binary_create.py", line 133, in dump
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/zipfile.py", line 940, in extractall
self.extract(zipinfo, path, pwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/zipfile.py", line 928, in extract
return self._extract_member(member, path, pwd)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/zipfile.py", line 965, in _extract_member
target = file(targetpath, "wb")
IOError: [Errno 20] Not a directory: '/private/var/folders/CK/CKzwG+5sFuSjDMUTvdmWfk+++TI/-Tmp-/tmpuSHO8v/META-INF/MANIFEST.MF'