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

Harri Jäälinoja harri.jaalinoja at helsinki.fi
Mon Feb 3 09:47:01 GMT 2014


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.py
  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-install-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




More information about the ome-users mailing list