Tom Arnfeld created AURORA-196:
----------------------------------

             Summary: Unable to build aurora_client.pex on Ubuntu 12.04
                 Key: AURORA-196
                 URL: https://issues.apache.org/jira/browse/AURORA-196
             Project: Aurora
          Issue Type: Bug
          Components: Build, Client
            Reporter: Tom Arnfeld


After cloning aurora at 0.5.0-dev1391543893 (I tried 0.4.3) on ubuntu 12.04 
(EC2) and running `./gradlew distTar` I then tried building the aurora 
client... which fails.

I'm following a similar path to the vagrant tooling seen here: 
https://github.com/apache/incubator-aurora/blob/master/examples/vagrant/provision-dev-environment.sh#L26
{quote}

ubuntu@ip-10-65-53-5:~/aurora$   ./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)])
Building PythonBinary 
PythonBinary(src/main/python/apache/aurora/client/bin/BUILD:aurora_client):
Problem executing PythonBuilder for targets 
OrderedSet([PythonBinary(src/main/python/apache/aurora/client/bin/BUILD:aurora_client)]):
 Traceback (most recent call last):
  File 
"/home/ubuntu/.pex/install/e141d17bf9e2a37a49e94a569cf6778d7a512a35/twitter.pants-0.0.13-py2.7.egg/twitter/pants/commands/build.py",
 line 99, in _python_build
    return executor.build(targets, self.build_args, 
conn_timeout=self.options.conn_timeout)
  File 
"/home/ubuntu/.pex/install/e141d17bf9e2a37a49e94a569cf6778d7a512a35/twitter.pants-0.0.13-py2.7.egg/twitter/pants/python/python_builder.py",
 line 59, in build
    rv = PythonBinaryBuilder(binary_target, args, self.root_dir, 
conn_timeout=conn_timeout).run()
  File 
"/home/ubuntu/.pex/install/e141d17bf9e2a37a49e94a569cf6778d7a512a35/twitter.pants-0.0.13-py2.7.egg/twitter/pants/python/binary_builder.py",
 line 46, in run
    env = self.chroot.dump()
  File 
"/home/ubuntu/.pex/install/e141d17bf9e2a37a49e94a569cf6778d7a512a35/twitter.pants-0.0.13-py2.7.egg/twitter/pants/python/python_chroot.py",
 line 177, in dump
    for dist in self._resolver.resolve(reqs_to_build, 
interpreter=self._interpreter):
  File 
"/home/ubuntu/.pex/install/e141d17bf9e2a37a49e94a569cf6778d7a512a35/twitter.pants-0.0.13-py2.7.egg/twitter/pants/python/resolver.py",
 line 72, in resolve
    interpreter=interpreter))
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.deps/twitter.common.python-0.2.2-py2.7.egg/twitter/common/python/resolver.py",
 line 38, in resolve
    installer=self.make_installer(requirements, interpreter, platform)):
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.bootstrap/pkg_resources.py",
 line 568, in resolve
    dist = best[req.key] = env.best_match(req, self, installer)
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.bootstrap/pkg_resources.py",
 line 806, in best_match
    return self.obtain(req, installer) # try and download/install
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.bootstrap/pkg_resources.py",
 line 818, in obtain
    return installer(requirement)
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.deps/twitter.common.python-0.2.2-py2.7.egg/twitter/common/python/obtainer.py",
 line 62, in obtain
    dist = self._translator.translate(link)
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.deps/twitter.common.python-0.2.2-py2.7.egg/twitter/common/python/translator.py",
 line 46, in translate
    dist = tx.translate(link)
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.deps/twitter.common.python-0.2.2-py2.7.egg/twitter/common/python/translator.py",
 line 93, in translate
    unpack_path = link.fetch(conn_timeout=self._conn_timeout)
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.deps/twitter.common.python-0.2.2-py2.7.egg/twitter/common/python/http/link.py",
 line 187, in fetch
    return self._unpack(target, location)
  File 
"/home/ubuntu/aurora/build-support/pants-0.0.13.pex/.deps/twitter.common.python-0.2.2-py2.7.egg/twitter/common/python/http/link.py",
 line 182, in _unpack
    raise self.UnreadableLink('Could not read %s' % self.url)
UnreadableLink: Could not read 
https://pypi.python.org/packages/source/t/twitter.common.python/twitter.common.python-0.2.0.tar.gz#md5=79dd0292b439b502ecb900d617235e8b


Usage:
  pants-0.0.13.pex build (options) [spec] (build args)
  pants-0.0.13.pex build (options) [spec]... -- (build args)

Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --no-pantsrc          Specifies that pantsrc files should be ignored.
  --log-exit            Log an exit message on success or failure.
  -t CONN_TIMEOUT, --timeout=CONN_TIMEOUT
                        Number of seconds to wait for http connections.

Builds the specified python target(s).

{quote}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to