[ome-users] [ome-devel] omero web problem with 4.4.10

Aleksandra Tarkowska A.Tarkowska at dundee.ac.uk
Mon Feb 3 14:21:21 GMT 2014


Dear Harri,

Thank you for reporting that. It looks like the following PR
https://github.com/openmicroscopy/openmicroscopy/pull/1928/files broke
compatibility. I am sorry about it.

If you wish to continue with Python 2.4 you can download older version of
that file from
https://raw.github.com/openmicroscopy/openmicroscopy/63f46817a17d979e3bda89
06089b55262ff022a5/components/tools/OmeroWeb/omeroweb/decorators.py and
replace it in OMERO_HOME/dist/lib/python/omeroweb/decorators.py

Still you might consider installing Python 2.6 as we are about to release
OMERO 5.0 that requires 2.6.

The simples way of maintaining various pythons on the same OS is Virtual
Environment. Please look at the following examples:

http://bda.ath.cx/blog/2009/04/08/installing-python-26-in-centos-5-or-rhel5
/
http://stackoverflow.com/questions/1534210/use-different-python-version-wit
h-virtualenv
http://toomuchdata.com/2012/06/25/how-to-install-python-2-7-3-on-centos-6-2
/

You will need to reinstall all your PYTHON packages within VirtualEnv but
that should't be an issue.

I hope that will help.

Kind regards
Ola





On 03/02/2014 09:47, "Harri Jäälinoja" <harri.jaalinoja at helsinki.fi> wrote:

>Dear Ola,
>
>>
>> Could you send me an error you got with python 2.4 that force you to
>> install 2.6?
>> OMERO 4.4.10 should still be supported by 2.4.
>
>I get an import error about "functools", which according to
>http://docs.python.org/2/library/functools.html is new in Python 2.5.
>
>                                 ImportError at /
>
>  No module named functools
>
>   Request   GET
>   Method:
>   Request   http://localhost:4080/
>    URL:
>   Django    1.3.1
>  Version:
>  Exception  ImportError
>    Type:
>  Exception  No module named functools
>   Value:
>  Exception
>/opt/OMERO/OMERO.server-4.4.10-ice33-b112/lib/python/omeroweb/decorators.p
>y
>  Location:  in ?, line 32
>   Python    /usr/bin/python
>Executable:
>   Python    2.4.3
>  Version:
>['/opt/OMERO/OMERO.server-4.4.10-ice33-b112/lib/python/omeroweb',
>              '/usr/lib64/python2.6/site-packages',
>              '/opt/OMERO/OMERO.server-4.4.10-ice33-b112/lib/python',
>              '/opt/OMERO/OMERO.server-4.4.10-ice33-b112/var/lib',
>'/opt/OMERO/OMERO.server-4.4.10-ice33-b112/lib/fallback',
>              '/usr/lib64/python24.zip',
>              '/usr/lib64/python2.4',
>   Python     '/usr/lib64/python2.4/plat-linux2',
>    Path:     '/usr/lib64/python2.4/lib-tk',
>              '/usr/lib64/python2.4/lib-dynload',
>              '/usr/lib64/python2.4/site-packages',
>              '/usr/lib64/python2.4/site-packages/Numeric',
>              '/usr/lib64/python2.4/site-packages/PIL',
>              '/usr/lib64/python2.4/site-packages/Ice',
>              '/usr/lib64/python2.4/site-packages/gtk-2.0',
>              '/usr/lib/python2.4/site-packages']
>
>The PYTHONPATH also includes '/usr/lib64/python2.6/site-packages' that
>is added along with the other environment variables, as shown in
>https://www.openmicroscopy.org/site/support/omero4/sysadmins/unix/server-i
>nstall-linux.html.
>
>
>On the web development server console it shows this:
>
>Quit the server with CONTROL-C.
>Traceback (most recent call last):
>   File "/usr/lib64/python2.4/logging/handlers.py", line 71, in emit
>     if self.shouldRollover(record):
>   File "/usr/lib64/python2.4/logging/handlers.py", line 149, in
>shouldRollover
>     msg = "%s\n" % self.format(record)
>   File "/usr/lib64/python2.4/logging/__init__.py", line 617, in format
>     return fmt.format(record)
>   File "/usr/lib64/python2.4/logging/__init__.py", line 408, in format
>     s = self._fmt % record.__dict__
>KeyError: 'funcName'
>
>
>>
>> I think you can't just replace path. Doesn't yum sort that out?
>>
>> yum install python26 python26-devel
>>
>> If you run python console which version do you see?
>>
>[omero at lmu-omero2 ~]$ python
>Python 2.4.3 (#1, Oct 23 2012, 22:02:41)
>[GCC 4.1.2 20080704 (Red Hat 4.1.2-54)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
> >>>
>[omero at lmu-omero2 ~]$ python26
>Python 2.6.8 (unknown, Nov  7 2012, 14:47:45)
>[GCC 4.1.2 20080704 (Red Hat 4.1.2-52)] on linux2
>Type "help", "copyright", "credits" or "license" for more information.
> >>>
>
>
>This discussion is about the same problem:
>
>http://serverfault.com/questions/162217/upgrading-python-on-rhel5
>
>
>It seems I should leave python 2.4 as it is, and install 2.6 in parallel
>like it is now. And somewhere in the OMERO startup scripts I should
>replace "python" with "python26". Where could I do that?
>
>>
>> All our omero resources run on CentOS. If you have any specific
>>questions
>> please just let us know.
>Ok, this is good to hear. We can probably save the trouble of switching
>to Ubuntu, once we sort out the Python issue.
>
>
>Best,
>Harri
>
>--
>__________________________________________________
>Harri Jäälinoja
>Light Microscopy Unit
>Institute of Biotechnology, University of Helsinki
>http://www.biocenter.helsinki.fi/bi/lmu/
>+358 9 191 59370 fax +358 9 191 59366
>


The University of Dundee is a registered Scottish Charity, No: SC015096



More information about the ome-users mailing list