[ome-users] ERROR: Could not import omero.cli! (/opt/Ice-3.5.1/python/IcePy.so: undefined symbol: PyUnicodeUCS4_AsUTF8String
Jean-Marie Burel (Staff)
j.burel at dundee.ac.uk
Thu Mar 24 14:46:14 GMT 2016
Hi Karen
The ice tar gzip file was built using Python compiled with UCS-4.
It seems that your version of Python 2.7 was compiled with UCS-2. Could
you confirm?
One approach could be to build Ice from source, using the Python version
you have installed.
You will have to install few extra dependencies, if not already installed,
in order to do so.
See https://doc.zeroc.com/display/Ice35/Building+Ice+from+Source
For example:
curl -o /etc/yum.repos.d/zeroc-ice-el6.repo \
http://download.zeroc.com/Ice/3.5/el6/zeroc-ice-el6.repo
yum -y install openssl-devel bzip2-devel expat-devel
yum -y install db53 db53-devel db53-utils mcpp-devel
mkdir /tmp/ice-download
cd /tmp/ice-download
curl -Lo Ice-3.5.1.tar.gz
https://zeroc.com/download/Ice/3.5/Ice-3.5.1.tar.gz
tar xvf Ice-3.5.1.tar.gz
cd Ice-3.5.1
cd cpp
make && make install
cd ../py
virtualenv -p /usr/bin/python2.7 ice-env
set +u
source ice-env/bin/activate
set -u
make && make install
set +u
deactivate
set -u
Cheers
Jmarie
The University of Dundee is a registered Scottish Charity, No: SC015096
More information about the ome-users
mailing list