Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Current pants with labels broken #66

Closed
florianleibert opened this Issue Aug 21, 2012 · 2 comments

Comments

Projects
None yet
3 participants
Contributor

florianleibert commented Aug 21, 2012

Florians-MacBook-Pro:commons florian$ ./pants idea tests/java/com/twitter/common:all-tests
/usr/bin/python2.6
Installing virtualenv
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2087k 100 2087k 0 0 912k 0 0:00:02 0:00:02 --:--:-- 944k
Running virtualenv with interpreter /usr/bin/python2.6
New python executable in ./build-support/python/../../.python/bootstrap/bin/python2.6
Also creating executable in ./build-support/python/../../.python/bootstrap/bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
Ignoring indexes: http://pypi.python.org/simple/
Downloading/unpacking mako
Could not find any downloads that satisfy the requirement mako
No distributions at all found for mako
Storing complete log in /Users/florian/.pip/pip.log
Ignoring indexes: http://pypi.python.org/simple/
Could not find any downloads that satisfy the requirement distribute in ./.python/bootstrap/lib/python2.6/site-packages/distribute-0.6.24-py2.6.egg
No distributions at all found for distribute in ./.python/bootstrap/lib/python2.6/site-packages/distribute-0.6.24-py2.6.egg
Storing complete log in /Users/florian/.pip/pip.log
Build operating on targets: OrderedSet([PythonBinary(src/python/twitter/pants/BUILD:pants)])
Building PythonBinary PythonBinary(src/python/twitter/pants/BUILD:pants):
Wrote /Users/florian/airbnb_code/commons/dist/pants.pex
Traceback (most recent call last):
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 122, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "./pants.pex/main.py", line 29, in
File "/Users/florian/airbnb_code/commons/pants.pex/.bootstrap/twitter/common/python/pex.py", line 101, in execute
File "/Users/florian/airbnb_code/commons/pants.pex/.bootstrap/twitter/common/python/pex.py", line 128, in execute_entry
File "/Users/florian/airbnb_code/commons/pants.pex/.bootstrap/twitter/common/python/pex.py", line 133, in execute_module
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 140, in run_module
fname, loader, pkg_name)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/runpy.py", line 34, in _run_code
exec code in run_globals
File "/Users/florian/airbnb_code/commons/pants.pex/pants_exe.py", line 174, in
File "/Users/florian/airbnb_code/commons/pants.pex/pants_exe.py", line 168, in main
File "/Users/florian/airbnb_code/commons/pants.pex/pants_exe.py", line 157, in _run
File "twitter/pants/commands/init.py", line 103, in run
File "twitter/pants/commands/ide.py", line 111, in execute
File "/Users/florian/airbnb_code/commons/pants.pex/.bootstrap/twitter/common/collections/orderedset.py", line 34, in init
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/_abcoll.py", line 298, in ior
for value in it:
File "twitter/pants/init.py", line 154, in extract_jvm_targets
File "twitter/pants/init.py", line 134, in is_jvm
AttributeError: 'JarDependency' object has no attribute 'has_label'

After chatting with @wickman , I believe the label support was added by @benjyw

Contributor

benjyw commented Aug 21, 2012

D'oh.

#67 fixes this, I hope.

Contributor

jsirois commented Aug 23, 2013

This seems fixed.

@jsirois jsirois closed this Aug 23, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment