Closed klhicks closed 9 years ago
Yes. Switch to python 2.7 and it will go away. I will change the installation and deployment script to use a virtual environment with python 2.7.
From: klhicks notifications@github.com Sent: Friday, July 17, 2015 7:25 PM To: usnistgov/SpectrumBrowser Cc: Ranganathan, Mudumbai Subject: [SpectrumBrowser] fabric pip install (#203)
I'm getting an error for matplotlib, the error is as follows: Command "python setup.py egg_info" failed with error code 2. It suggested to update the distribute package. @ranganathanmhttps://github.com/ranganathanm have you received this error?
Reply to this email directly or view it on GitHubhttps://github.com/usnistgov/SpectrumBrowser/issues/203.
Made a fix to the fabric script. Please retest. Thanks.
An error occured at line 160: sudo('/usr/local/bin/pip2.7 install -r python_pip_requirements.txt')
[] out: error: command 'gcc' failed with exit status 1
[] out:
[] out: ----------------------------------------
[] out: Command "/usr/local/bin/python2.7 -c "import setuptools, tokenize;file='/tmp/pip-build-ULJPFj/cffi/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-ihJVPx-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-ULJPFj/cffi
[] out:
Fatal error: sudo() received nonzero return code 1 while executing!
Requested: /usr/local/bin/pip2.7 install -r python_pip_requirements.txt Executed: sudo -S -p 'sudo password:' -u "root" /bin/bash -l -c "cd /opt/SpectrumBrowser >/dev/null && /usr/local/bin/pip2.7 install -r python_pip_requirements.txt"
Aborting.
Did you fab pack deploy Or did you just fab deploy ?
I am focusing on the amazon deployment. Works fine on centos 6.6.
Please do a git pull and try it again.
Another issue found....
Please retry. I have tested it starting from a vanilla ec2 , nist secure centos 6.6 image and it all works fine (it will take about a half hour to run on ec2).
Also, this issue should be merged with issue 196 ( reduce proliferation of issues).
What repo are you pulling libffi-devel from? As it stands from our clean slate its not being found.
sudo yum search -v libffi-devel Loading "fastestmirror" plugin Config time: 0.006 Yum Version: 3.2.29 Setting up Package Sacks Loading mirror speeds from cached hostfile
libffi-devel.x86_64 : Development files for libffi Repo : base Matched from:
The centos base repo.
Okay. I got it to work for our installation. Everything worked flawlessly but I cannot connect to any of the pages they all time out. With that being said, we can close this issue unless their is something else you plan on updating.
Additionally, to get ours to work we had to add in the rpmforge repo to get that package. Currently I am only adding in the repo to install that one package [libffi-devel] and then removing it. Do you know of a better way to handle this issue?
You should not have to remove the repo. Just leave it there (it does no harm). Just copy the repo file over to /etc/yum.repos.d
From: klhicks notifications@github.com Sent: Tuesday, July 21, 2015 4:33 PM To: usnistgov/SpectrumBrowser Cc: Ranganathan, Mudumbai Subject: Re: [SpectrumBrowser] fabric pip install (#203)
Additionally, to get ours to work we had to add in the rpmforge repo to get that package. Currently I am only adding in the repo to install that one package [libffi-devel] and then removing it. Do you know of a better way to handle this issue?
Reply to this email directly or view it on GitHubhttps://github.com/usnistgov/SpectrumBrowser/issues/203#issuecomment-123469728.
Awesome.
I'm getting an error for matplotlib, the error is as follows: Command "python setup.py egg_info" failed with error code 2. It suggested to update the distribute package. @ranganathanm have you received this error?