Installation of spring on Ubuntu 16.10

63 views
Skip to first unread message

Natalia Pakharukova

unread,
Apr 18, 2017, 12:41:28 PM4/18/17
to emspring

Hello!

I followed the installation process for Spring on Ubuntu 16.10 and when I tried to activate it, I got this error message: bash: spring_v0-84-1470/bin/spring: /struct/sachse/casa/08_python/spring_v0-84-1470/bin/python: bad interpreter: No such file or directory.

What can I do to fix it?


Thanks a lot for your help!


Carsten Sachse

unread,
Apr 21, 2017, 10:48:25 AM4/21/17
to emspring
Dear Natalia,

Thank you for posting the error. Unfortunately, there is a problem with the latest setuptools from python. This currently affects any binary install.

Just start the binary install from scratch:
% tar xvf spring-0.84.1470-linux.tar.gz
% cd spring_v0-84-1470
and follow:
1. Re-install pip
% cd patches; wget https://bootstrap.pypa.io/get-pip.py; cd ..
PYTHONPATH=$PWD/lib/python2.7/site-packages LD_LIBRARY_PATH=$PWD/parts/EMAN2/lib ./parts/EMAN2/Python/bin/python patches/get-pip.py -U

2. Remove old setuptools and re-install latest setuptools
% rm -rf lib/python2.7/site-packages/setuptools*
% PYTHONPATH=$PWD/lib/python2.7/site-packages LD_LIBRARY_PATH=$PWD/parts/EMAN2/lib ./parts/EMAN2/Python/bin/pip  install -U --prefix=$PWD pip setuptools

Finally:
% sh patches/binary_install_linux.sh
This should work. I will update the instructions on the website.

Best wishes,


Carsten

Natalia Pakharukova

unread,
Apr 23, 2017, 5:55:37 AM4/23/17
to emspring
Dear Carsten,

I followed the instructions and when I executed the command

% PYTHONPATH=$PWD/lib/python2.7/site-packages LD_LIBRARY_PATH=$PWD/parts/EMAN2/lib ./parts/EMAN2/Python/bin/pip  install -U --prefix=$PWD pip setuptools

I got this error message:
OSError: [Errno 2] No such file or directory: '/home/natalia/soft/spring_v0-84-1470/parts/EMAN2/Python/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg'

Can you please help?

Thanks a lot!

Natalia

пятница, 21 апреля 2017 г., 17:48:25 UTC+3 пользователь Carsten Sachse написал:

Carsten Sachse

unread,
Apr 23, 2017, 9:55:37 AM4/23/17
to emspring
Dear Natalia,

I am aware of this error message - simply ignore it. When you peek into lib/lib/python2.7/site-packages you should find the latest setuptools being installed.

Just move on with:
sh patches/binary_install_linux.sh

Best wishes,


Carsten

Natalia Pakharukova

unread,
Apr 25, 2017, 1:42:15 AM4/25/17
to emspring
Dear Carsten,

Unfortunately, after the installation I still got the error message:
Spring environment loaded.
Traceback (most recent call last):
  File "/home/natalia/soft/spring_v0-84-1470/bin/spring", line 133, in <module>
    import spring.springgui.spring_launch
  File "/home/natalia/soft/spring_v0-84-1470/lib/python2.7/site-packages/emspring-0.84.1470-py2.7.egg/spring/springgui/spring_launch.py", line 10, in <module>
    from PyQt4.QtGui import QApplication, QMainWindow, QWidget, QStackedWidget, QGridLayout, QComboBox, QLabel, QFileDialog
ImportError: libpng12.so.0: cannot open shared object file: No such file or directory

Testing also failed with the same error. What can I do to fix it?

Thank you for your help!

Natalia


воскресенье, 23 апреля 2017 г., 16:55:37 UTC+3 пользователь Carsten Sachse написал:

Carsten Sachse

unread,
May 2, 2017, 3:20:13 PM5/2/17
to emspring
Dear Natalia,

It seems that the latest Ubuntu does not have the option of installing libpng12

The problem has been resolved in the following thread:

It should fix the import error.

Best wishes,


Carsten
Reply all
Reply to author
Forward
0 new messages