On Wed, Mar 11, 2015 at 2:55 PM, Andras Kerekes <
andras.kere...@ishisystems.com> wrote:

> Hi All,
>
>
>
> I’m trying to install the Aurora CLI client and no success. I’m on Ubuntu
> 12.04 running in VirtualBox.
>
>
>
> First I tried the 0.7.0-incubating tarball version that I have downloaded
> from the Download section. Ran ‘./pants binary
> src/main/python/apache/aurora/client/cli:aurora’ command which at the end
> of the output had this:
>
>
>
> Installing
> /home/osboxes/aurora/apache-aurora-0.7.0-incubating/build-support/pants.venv/lib/python2.7/site-packages/twitter.common.util-0.3.2-py2.7-nspkg.pth
>
>   Found existing installation: setuptools 3.6
>
>     Uninstalling setuptools:
>
>       Successfully uninstalled setuptools
>
> Successfully installed Markdown Pygments ansicolors cov-core coverage
> docutils lockfile pantsbuild.pants pex psutil py pystache pytest pytest-cov
> requests six twitter.common.collections twitter.common.config
> twitter.common.confluence twitter.common.contextutil
> twitter.common.decorators twitter.common.dirutil twitter.common.lang
> twitter.common.log twitter.common.options twitter.common.process
> twitter.common.string twitter.common.threading twitter.common.util
> setuptools
>
> Cleaning up...
>
>
>
> Exception message: [Errno 2] No such file or directory
>

I was able to repro - there are 2 issues at play afaict.
1.) Unfortunately - for now - your box will need git installed - this
accounts for the:
...

Cleaning up...



Exception message: [Errno 2] No such file or directory

...


(Use ./pants ... --print-exception-stacktrace to get more clues about
errors.)


This Vagrantfile + setup gets past the missing git issue for me:
jsirois@gill ~/downloads/aurora_repro $ cat Vagrantfile
Vagrant.configure(2) do |config|
  config.vm.box = "ubuntu/precise64"
  config.vm.synced_folder "vagrant_data", "/vagrant_data"
  config.vm.provider "virtualbox" do |vb|
    vb.gui = false
    vb.memory = "1024"
  end
  config.vm.provision "shell", inline: <<-SHELL
    sudo apt-get update
    sudo apt-get install -y build-essential python-dev openjdk-7-jdk git
  SHELL
end
jsirois@gill ~/downloads/aurora_repro $ vagrant up && vagrant provision &&
vagrant ssh

2.) Ubuntu 12.4 has a broken python 2.7.3/virtualenv wrt building python
native extensions (I'm not sure which is at fault).  You'll need to
manually create a symlink like so after the failures above have been
cleared:

...

vagrant@vagrant-ubuntu-precise-64:~$ curl -O
https://dist.apache.org/repos/dist/release/incubator/aurora/0.7.0/apache-aurora-0.7.0-incubating.tar.gz

  % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current

                                 Dload  Upload   Total   Spent    Left
 Speed

100 4116k  100 4116k    0     0  1015k      0  0:00:04  0:00:04 --:--:--
1099k

vagrant@vagrant-ubuntu-precise-64:~$ tar -xzf
apache-aurora-0.7.0-incubating.tar.gz

vagrant@vagrant-ubuntu-precise-64:~$ cd apache-aurora-0.7.0-incubating/
vagrant@vagrant-ubuntu-precise-64:~/apache-aurora-0.7.0-incubating$ ./pants
binary src/main/python/apache/aurora/client/cli:aurora
--print-exception-stacktrace  *# Fails with ...
pants.venv/local/include/python2.7/pyconfig.h (No such file or directory)*

vagrant@vagrant-ubuntu-precise-64:~/apache-aurora-0.7.0-incubating$  cd
build-support/pants.venv && mkdir local && cd local && ln -s ../include &&
cd ../../..

vagrant@vagrant-ubuntu-precise-64:~/apache-aurora-0.7.0-incubating$
 ./pants binary src/main/python/apache/aurora/client/cli:aurora
--print-exception-stacktrace  *# Success*
vagrant@vagrant-ubuntu-precise-64:~/apache-aurora-0.7.0-incubating$
./dist/aurora.pex -h
usage: aurora.pex [-h] [--version]
                  {task,quota,cron,job,config,sla,beta-update} ...

optional arguments:
  -h, --help            show this help message and exit
  --version             show program's version number and exit

commands:
  {task,quota,cron,job,config,sla,beta-update}
    task                Work with a task running in an Apache Aurora cluster
    quota               Work with quota settings for an Apache Aurora
cluster
    cron                Work with entries in the aurora cron scheduler
    job                 Work with an aurora job
    config              Work with an aurora configuration file
    sla                 Work with SLA data in Aurora cluster.
    beta-update         Interact with the aurora update service.





>
> After this, whatever I tried pants gave the ‘Exception message: [Errno 2]
> No such file or directory’ error message without any further information,
> not even if I turned on verbose output.
>
>
>
> Then I cloned the git repo (https://github.com/apache/incubator-aurora)
> and ran ‘./pants binary src/main/python/apache/aurora/client/cli:aurora’.
> This time the build failed with a different error:
>
>
>
> IOError: invalid Python installation: unable to open
> /home/osboxes/aurora/checkout/incubator-aurora/build-support/pants.venv/local/include/python2.7/pyconfig.h
> (No such file or directory)
>
>
>
> After copying
> /home/osboxes/aurora/checkout/incubator-aurora/build-support/pants.venv/include
> into
> /home/osboxes/aurora/checkout/incubator-aurora/build-support/pants.venv/local
> the build finished successfully, but now I don’t know how to run the client.
>
>
>
> What do I miss?
>
>
>
> Thanks,
>
> Andras
>

Reply via email to