aurora-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Smith (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AURORA-534) unable to build aurora client on osx due to argparse
Date Wed, 18 Jun 2014 16:44:25 GMT

    [ https://issues.apache.org/jira/browse/AURORA-534?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14035918#comment-14035918
] 

Joe Smith commented on AURORA-534:
----------------------------------

Heya [~bhuvan], are you able to reproduce this after https://github.com/apache/incubator-aurora/commit/2983fe25d68693f2f737ccd448b8ef349cb00ac2
was shipped?

> unable to build aurora client on osx due to argparse
> ----------------------------------------------------
>
>                 Key: AURORA-534
>                 URL: https://issues.apache.org/jira/browse/AURORA-534
>             Project: Aurora
>          Issue Type: Bug
>          Components: Build
>    Affects Versions: 0.5.0
>            Reporter: Bhuvan Arumugam
>
> Pants seem to use CPython 2.6.x by default, even though the system default is python
2.7.x. The {{argparse}} dont exist in v2.6. It should be added to the dependency list, as
pants officially support v2.6.
> Infact adding following dependency in {{src/main/python/apache/aurora/client/bin/BUILD}}
help.
> {code}
> pants('3rdparty/python:argparse'),
> {code}
> {code}
> sunshine:incubator-aurora bhuvan$ python -V
> Python 2.7.5
> sunshine:incubator-aurora bhuvan$ ./dist/aurora_client.pex 
> Traceback (most recent call last):
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex/.bootstrap/_twitter_common_python/pex.py",
line 214, in execute
>     working_set = self._env.activate()
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex/.bootstrap/_twitter_common_python/environment.py",
line 122, in activate
>     self._working_set = self._activate()
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex/.bootstrap/_twitter_common_python/environment.py",
line 142, in _activate
>     resolved = working_set.resolve(all_reqs, env=self)
>   File "/Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex/.bootstrap/pkg_resources.py",
line 588, in resolve
>     raise DistributionNotFound(req)
> DistributionNotFound: argparse
> {code}
> verbose output when building the pex:
> {code}
> PANTS_VERBOSE=1 ./pants src/main/python/apache/aurora/client/bin:aurora_client
> Build operating on targets: OrderedSet([PythonBinary(src/main/python/apache/aurora/client/bin/BUILD:aurora_client)])
> warning: tag '0.5.1-snapshot' is really 'quark/0.5.1-snapshot' here
> Building PythonBinary PythonBinary(src/main/python/apache/aurora/client/bin/BUILD:aurora_client):
> Building PythonBinary PythonBinary(src/main/python/apache/aurora/client/bin/BUILD:aurora_client):
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/bin/BUILD:aurora_client_lib)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/commands/BUILD:all)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/commands/BUILD:core)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:command_runner)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:api)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:restarter)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:instance_watcher)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:scheduler_client)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/auth/BUILD:auth)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/BUILD:cluster)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/BUILD:http_signaler)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:updater_util)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:sla)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/BUILD:base)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/BUILD:common)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/BUILD:aurora_job_key)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/BUILD:cluster_option)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/BUILD:clusters)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/common/BUILD:shellify)
>   Dumping library: PythonLibrary(src/main/thrift/org/apache/aurora/gen/BUILD:py-thrift-packaged)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:updater)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:job_monitor)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:quota_check)
>   Dumping library: PythonLibrary(src/main/python/apache/thermos/config/BUILD:schema)
>   Dumping library: PythonLibrary(src/main/python/apache/thermos/common/BUILD:planner)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/config/BUILD:schema)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/config/schema/BUILD:schema)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/api/BUILD:disambiguator)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/hooks/BUILD:hooks)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/BUILD:api)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/BUILD:config)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/BUILD:binding_helper)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/config/BUILD:config)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/BUILD:factory)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/BUILD:options)
>   Dumping library: PythonLibrary(src/main/python/apache/thermos/common/BUILD:options)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/commands/BUILD:help)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/commands/BUILD:run)
>   Dumping library: PythonLibrary(src/main/python/apache/aurora/client/commands/BUILD:ssh)
>   Dumping library: PythonBinary(src/main/python/apache/aurora/client/bin/BUILD:aurora_client)
>   Dumping requirement: twitter.common.app==0.3.0
>   Dumping requirement: twitter.common.log==0.3.0
>   Dumping requirement: twitter.common.python==0.5.4
>   Dumping requirement: twitter.common.quantity==0.3.0
>   Dumping requirement: twitter.common.rpc==0.3.0
>   Dumping requirement: twitter.common.zookeeper==0.3.0
>   Dumping requirement: twitter.common.lang==0.3.0
>   Dumping requirement: pystachio==0.7.2
>   Dumping requirement: twitter.common.collections==0.3.0
>   Dumping requirement: src.main.thrift.org.apache.aurora.gen.py-thrift-69dcf628==0.0.0
(repo: /Volumes/apple/quark/incubator-aurora/.pants.d/python/artifacts/CPython-2.6.8/src.main.thrift.org.apache.aurora.gen.py-thrift)
>   Dumping requirement: src.main.thrift.org.apache.thermos.py-thrift-5eb0d35a==0.0.0 (repo:
/Volumes/apple/quark/incubator-aurora/.pants.d/python/artifacts/CPython-2.6.8/src.main.thrift.org.apache.thermos.py-thrift)
>   Dumping requirement: src.main.thrift.org.apache.aurora.gen.py-thrift-test-1f502361==0.0.0
(repo: /Volumes/apple/quark/incubator-aurora/.pants.d/python/artifacts/CPython-2.6.8/src.main.thrift.org.apache.aurora.gen.py-thrift-test)
>   Dumping requirement: src.main.thrift.org.apache.aurora.gen.py-thrift-storage-d286f62d==0.0.0
(repo: /Volumes/apple/quark/incubator-aurora/.pants.d/python/artifacts/CPython-2.6.8/src.main.thrift.org.apache.aurora.gen.py-thrift-storage)
>   Dumping requirement: thrift
>   Dumping distribution: .../twitter.common.string-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.exceptions-0.3.0-py26-none-any.whl
>   Dumping distribution: .../pystachio-0.7.2-py26-none-any.whl
>   Dumping distribution: .../twitter.common.decorators-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.quantity-0.3.0-py26-none-any.whl
>   Dumping distribution: .../src.main.thrift.org.apache.aurora.gen.py_thrift_69dcf628-0.0.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.contextutil-0.3.0-py26-none-any.whl
>   Dumping distribution: .../thrift-0.9.1-cp26-none-macosx_10_9_intel.whl
>   Dumping distribution: .../twitter.common.util-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.metrics-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.process-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.zookeeper-0.3.0-py26-none-any.whl
>   Dumping distribution: .../zope.interface-4.1.1-cp26-none-macosx_10_9_intel.whl
>   Dumping distribution: .../src.main.thrift.org.apache.thermos.py_thrift_5eb0d35a-0.0.0-py26-none-any.whl
>   Dumping distribution: .../src.main.thrift.org.apache.aurora.gen.py_thrift_storage_d286f62d-0.0.0-py26-none-any.whl
>   Dumping distribution: .../kazoo-1.3.1-py26-none-any.whl
>   Dumping distribution: .../twitter.common.concurrent-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.collections-0.3.0-py26-none-any.whl
>   Dumping distribution: .../futures-2.1.2-py26-none-any.whl
>   Dumping distribution: .../twitter.common.options-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.app-0.3.0-py26-none-any.whl
>   Dumping distribution: .../src.main.thrift.org.apache.aurora.gen.py_thrift_test_1f502361-0.0.0-py26-none-any.whl
>   Dumping distribution: .../wheel-0.23.0-py2.py3-none-any.whl
>   Dumping distribution: .../twitter.common.lang-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.rpc-0.3.0-py26-none-any.whl
>   Dumping distribution: .../setuptools-5.1-py2.py3-none-any.whl
>   Dumping distribution: .../twitter.common.python-0.5.4-py26-none-any.whl
>   Dumping distribution: .../twitter.common.log-0.3.0-py26-none-any.whl
>   Dumping distribution: .../twitter.common.dirutil-0.3.0-py26-none-any.whl
> Wrote /Volumes/apple/quark/incubator-aurora/dist/aurora_client.pex
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message