Hello,

I am following the instructions found here to install openMDAO 1.0 into our working Anaconda installation and am having issues. Basically, my install gets as far as git clone process within the 'pip install' command and then hangs. I've tried it on several RedHat 6 systems both inside and outside of our network with the same result. I've even tried the separate git clone command but it too hangs in the same manner.

Here is the output of the 'pip install' command:

[912 root@ebradley-rhel 16:43 /a/anaconda/v2/current/bin] ./pip -v install git+http://github.com/OpenMDAO/OpenMDAO.git@master
Downloading/unpacking git+http://github.com/OpenMDAO/OpenMDAO.git@master
  Cloning http://github.com/OpenMDAO/OpenMDAO.git (to master) to /tmp/pip-Mu_emO-build
  Found command 'git' at '/usr/bin/git'

and that's where it hangs. if I look at the /tmp/pip-Mu_emO-build/.git directory while the above command is still active I see the following:

[902 root@ebradley-rhel 16:44 /tmp/pip-Mu_emO-build/.git] lsh
total 40K
drwxr-xr-x 7 root root 4.0K Sep 25 16:43 .
drwxr-xr-x 3 root root 4.0K Sep 25 16:43 ..
drwxr-xr-x 2 root root 4.0K Sep 25 16:43 branches
-rw-r--r-- 1 root root  202 Sep 25 16:43 config
-rw-r--r-- 1 root root   73 Sep 25 16:43 description
-rw-r--r-- 1 root root   23 Sep 25 16:43 HEAD
drwxr-xr-x 2 root root 4.0K Sep 25 16:43 hooks
drwxr-xr-x 2 root root 4.0K Sep 25 16:43 info
drwxr-xr-x 4 root root 4.0K Sep 25 16:43 objects
drwxr-xr-x 4 root root 4.0K Sep 25 16:43 refs

Once I Ctrl+C the 'pip install' command, I see the following:

^CCleaning up...
  Removing temporary dir /tmp/pip_build_root...
Operation cancelled by user
Exception information:
Traceback (most recent call last):
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/req.py", line 1197, in prepare_files
    do_download,
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/req.py", line 1360, in unpack_url
    unpack_vcs_link(link, loc, only_download)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/download.py", line 344, in unpack_vcs_link
    vcs_backend.unpack(location)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/vcs/__init__.py", line 240, in unpack
    self.obtain(location)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/vcs/git.py", line 111, in obtain
    call_subprocess([self.cmd, 'clone', '-q', url, dest])
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/util.py", line 687, in call_subprocess
    returned_stdout, returned_stderr = proc.communicate()
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/subprocess.py", line 796, in communicate
    self.wait()
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/subprocess.py", line 1376, in wait
    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt

Storing debug log for failure in /root/.pip/pip.log

And here are the contents of the pip.log file:

[913 root@ebradley-rhel 16:48 /a/anaconda/v2/current/bin] cat /root/.pip/pip.log
------------------------------------------------------------
./pip run on Fri Sep 25 16:48:40 2015
Downloading/unpacking git+http://github.com/OpenMDAO/OpenMDAO.git@master
  Cloning http://github.com/OpenMDAO/OpenMDAO.git (to master) to /tmp/pip-Mu_emO-build
  Found command 'git' at '/usr/bin/git'
  Running command /usr/bin/git clone -q http://github.com/OpenMDAO/OpenMDAO.git /tmp/pip-Mu_emO-build
Cleaning up...
  Removing temporary dir /tmp/pip_build_root...
Operation cancelled by user
Exception information:
Traceback (most recent call last):
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/commands/install.py", line 278, in run
    requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/req.py", line 1197, in prepare_files
    do_download,
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/req.py", line 1360, in unpack_url
    unpack_vcs_link(link, loc, only_download)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/download.py", line 344, in unpack_vcs_link
    vcs_backend.unpack(location)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/vcs/__init__.py", line 240, in unpack
    self.obtain(location)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/vcs/git.py", line 111, in obtain
    call_subprocess([self.cmd, 'clone', '-q', url, dest])
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/site-packages/pip/util.py", line 687, in call_subprocess
    returned_stdout, returned_stderr = proc.communicate()
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/subprocess.py", line 796, in communicate
    self.wait()
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/subprocess.py", line 1376, in wait
    pid, sts = _eintr_retry_call(os.waitpid, self.pid, 0)
  File "/net/wlnas/LINUXAPPS/anaconda/v2/2.7.8/lib/python2.7/subprocess.py", line 476, in _eintr_retry_call
    return func(*args)
KeyboardInterrupt

I hope all of that is useful without being too much. I'd be happy to provide any additional information if necessary.

Thanks!

asked 25 Sep '15, 16:52

ebradley's gravatar image

ebradley
46116

edited 25 Sep '15, 16:54


sounds like git installation is broken. You can always manually download the code, then install directly from the directly. The problem might be the ssh style url, some networks block that. You could try the https version instead: https://github.com/OpenMDAO/OpenMDAO.git

Also you might want to try manually cloning the repo instead:

git clone https://github.com/OpenMDAO/OpenMDAO.git
link

answered 27 Sep '15, 16:58

justingray's gravatar image

justingray ♦♦
1.8k113

1

Just to add to justin's answer, the full installation instructions if you manually clone the repo:

git clone http://github.com/OpenMDAO/OpenMDAO.git

Then you’re going to use pip to install in development mode. Change directories to the top level of the OpenMDAO repository, and use the following command:

pip install -e .

(28 Sep '15, 01:11) admin ♦♦ admin's gravatar image
1

Hi justingray and admin,

Thank you both for the responses. I had tried manually cloning the repo but the install hung in the same way as when I tried to use pip. It turns out that all I needed to do was try the install URL with the https:// protocol as justingray suggested. Doing so allowed pip to install openmdao without a hitch. I'm a little embarrassed that I didn't try that on my own, but either way openmdao is now installed as a part of Anaconda.

Thank you both again,

Evan

(28 Sep '15, 10:33) ebradley ebradley's gravatar image

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×39

Asked: 25 Sep '15, 16:52

Seen: 2,012 times

Last updated: 28 Sep '15, 11:56

powered by OSQA