Spring python problem - installation issue

71 views
Skip to first unread message

Dawid Zyla

unread,
Apr 9, 2018, 4:31:56 AM4/9/18
to emspring
Hello,

First of all thank you for accepting me to the group. I am working on helical structures called pili and recently I wanted to test your software to check whether Spring is giving me similar result as Relion. I am using CentOS 7. The problem is that during the installation there is some python problem and script is ending with errors and warnings. I was following the instructions on the website, so after unpacking tar archive I have run  ./patches/binary_install_linux.sh:

==================================================================================
 ---------------------- Running binary_install_linux.sh --------------------------
This script will quickly install Spring from binary. Once you move the binaries 
you will need to re-run the script in the new location for it work.
==================================================================================
--------------------------------------------------------------------------------
Check pre-requisites: whether current directory is a Spring build directory.
--------------------------------------------------------------------------------
----------------------------------------------------------------------------------
Prepare install by re-instating virtualenv and buildout environment.
----------------------------------------------------------------------------------
--------------------------------------------------------------------------------
1. Re-install pip
--------------------------------------------------------------------------------
New python executable in ./bin/python
Installing setuptools.................done.
Installing pip.............done.
Overwriting ./bin/activate with new content
Overwriting ./bin/activate.fish with new content
Overwriting ./bin/activate.csh with new content
--2018-04-09 10:26:49--  https://bootstrap.pypa.io/get-pip.py
Resolving bootstrap.pypa.io (bootstrap.pypa.io)... 151.101.36.175
Connecting to bootstrap.pypa.io (bootstrap.pypa.io)|151.101.36.175|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1780465 (1.7M) [text/x-python]
Saving to: ‘get-pip.py’

100%[===================================================================================================================>] 1,780,465   5.66MB/s   in 0.3s   

2018-04-09 10:26:49 (5.66 MB/s) - ‘get-pip.py’ saved [1780465/1780465]

/tmp/tmpm2vKgQ/pip.zip/pip/_vendor/urllib3/util/ssl_.py:339: SNIMissingWarning: An HTTPS request has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incorrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
/tmp/tmpm2vKgQ/pip.zip/pip/_vendor/urllib3/util/ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
Requirement already up-to-date: pip in ./lib/python2.7/site-packages
/tmp/tmpm2vKgQ/pip.zip/pip/_vendor/urllib3/util/ssl_.py:137: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrade to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
--------------------------------------------------------------------------------
2. Re-install latest setuptools
--------------------------------------------------------------------------------
/localhome/dawid/Downloads/spring_v0-86-1661/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:318: SNIMissingWarning: An HTTPSrequest has been made, but the SNI (Subject Name Indication) extension to TLS is not available on this platform. This may cause the server to present an incrrect TLS certificate, which can cause validation failures. You can upgrade to a newer version of Python to solve this. For more information, see https://urlib3.readthedocs.io/en/latest/security.html#snimissingwarning.
  SNIMissingWarning
/localhome/dawid/Downloads/spring_v0-86-1661/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A rue SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrde to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Requirement already up-to-date: pip in ./lib/python2.7/site-packages
/localhome/dawid/Downloads/spring_v0-86-1661/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A rue SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrde to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Requirement already up-to-date: setuptools in ./lib/python2.7/site-packages
/localhome/dawid/Downloads/spring_v0-86-1661/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:122: InsecurePlatformWarning: A rue SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. You can upgrde to a newer version of Python to solve this. For more information, see https://urllib3.readthedocs.io/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
--------------------------------------------------------------------------------
3. Reinstate virtualenv and buildout environement
--------------------------------------------------------------------------------
New python executable in ./bin/python
Installing setuptools.................done.
Installing pip.............done.
/localhome/dawid/Downloads/spring_v0-86-1661/lib/python2.7/site-packages/pkg_resources/__init__.py:193: RuntimeWarning: You have iterated over the result ofpkg_resources.parse_version. This is a legacy behavior which is inconsistent with the new version class introduced in setuptools 8.0. In most cases, converson to a tuple is unnecessary. For comparison of versions, sort the Version instances directly. If you have another use case requiring the tuple, please filea bug with the setuptools project describing that need.
  stacklevel=1,
Creating directory '/localhome/dawid/Downloads/spring_v0-86-1661/develop-eggs'.
Generated script '/localhome/dawid/Downloads/spring_v0-86-1661/bin/buildout'.
--------------------------------------------------------------------------------
4. Install latest Python dependencies for Spring
--------------------------------------------------------------------------------
Installing springpython.
Couldn't find index page for 'emspring' (maybe misspelled?)
Getting distribution for 'emspring'.
Couldn't find index page for 'emspring' (maybe misspelled?)
While:
  Installing springpython.
  Getting distribution for 'emspring'.
Error: Couldn't find a distribution for 'emspring'.
----------------------------------------------------------------------------------
Install done. Check whether Spring was successfully installed by brief testing.
----------------------------------------------------------------------------------
./patches/binary_install_linux.sh: ./bin/nosetests: /struct/sachse/software/springbox_2017-12/spring_v0-86-1661/bin/python: bad interpreter: No such file ordirectory
==================================================================================
Testing done. If 4 quick tests ran OK Spring was correctly installed.
Install done. Please type to add the following line to your .cshrc:
echo setenv PATH:/localhome/dawid/Downloads/spring_v0-86-1661/bin:$PATH >> ~/.cshrc
or your favorite Bourne shell rc file (e.g. .bashrc, .zshrc):
echo export PATH:/localhome/dawid/Downloads/spring_v0-86-1661/bin:$PATH >> ~/.bashrc
==================================================================================


I have tried to update python manually in bin folder and in EMAN2 folder but it didn't work. All scripts in bin folder cannot start because the python exe is not in the proper directory (/struct/sachse/software/springbox_2017-12/spring_v0-86-1661/bin/python) and even changing this line to Spring python library also doesn't work. I would be very grateful for some hints how to fix that. I look forward to hearing from you soon!

All the best,
Dawid Zyla
ETH Zurich

Carsten Sachse

unread,
Apr 9, 2018, 8:18:43 AM4/9/18
to emspring
Dear Dawid,

Thanks for your message. We will look into the installation issue asap and keep you posted.

Best wishes,


Carsten

Carsten Sachse

unread,
Apr 16, 2018, 3:00:23 AM4/16/18
to emspring
Dear David,

Again, thanks for pointing out the issue. The issue is related to higher security settings in the Pypi servers. 
I provide a patch to fix the SSL connection issue you were reporting.

You can run it in the following way:
%patch -u binary_install_linux.sh  install_fix180416.patch

Now re-run:
% sh patches/binary_install_linux.sh

Please let me know if this works.

Best wishes,


Carsten
install_fix180416.patch

Carsten Sachse

unread,
Apr 19, 2018, 3:11:42 AM4/19/18
to emspring
Dear all,

David has confirmed that it works. Please, be aware I included the patched binary_install_linux.sh in the latest downloadable binary. No need to apply the patch yourself.

Best wishes,


Carsten
Reply all
Reply to author
Forward
0 new messages