We're Hiring!

CentOS 5.3 sqlite library problem

Having a problem deploying OMERO? Please ask new questions at https://forum.image.sc/tags/omero
Please note:
Historical discussions about OMERO. Please look for and ask new questions at https://forum.image.sc/tags/omero

The OMERO.server installation documentation begins here and you can find OMERO.web deployment documentation here.

CentOS 5.3 sqlite library problem

Postby lbl-dude » Sat Oct 17, 2009 3:58 am

When trying to get the django server up, this error is put into the master.err log and the server fails to load:

File "/data/OMERO/omero_dist/lib/python/django/db/backends/sqlite3/base.py", line 26, in ?
raise ImproperlyConfigured, "Error loading %s module: %s" % (module, e)
django.core.exceptions.ImproperlyConfigured: Error loading pysqlite2 module: /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so: wrong ELF class: ELFCLASS32

Does anyone know if this is a problem with the pysqlite distribution, or might I have a conflicting library on my system somewhere?

Thanks.
lbl-dude
 
Posts: 9
Joined: Sat Oct 17, 2009 3:55 am

Re: CentOS 5.3 sqlite library problem

Postby cxallan » Sat Oct 17, 2009 7:43 am

To my knowledge there are no problems with the packages. What's the output of the following three commands:

Code: Select all
uname -an
file /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so
ldd /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: CentOS 5.3 sqlite library problem

Postby lbl-dude » Sat Oct 17, 2009 8:49 am

myserver# uname -an

Linux myserver 2.6.18-164.el5 #1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

myserver# file /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so
/usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

myserver# ldd /usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so

linux-gate.so.1 => (0xffffe000)
libsqlite3.so.0 => /usr/lib/libsqlite3.so.0 (0xf7eaf000)
libpthread.so.0 => /lib/libpthread.so.0 (0xf7e98000)
libc.so.6 => /lib/libc.so.6 (0xf7d54000)
/lib/ld-linux.so.2 (0x00932000)
lbl-dude
 
Posts: 9
Joined: Sat Oct 17, 2009 3:55 am

Re: CentOS 5.3 sqlite library problem

Postby cxallan » Mon Oct 19, 2009 10:18 am

Okay. That implies you have a 64-bit (x86_64) version of Python but somehow have a 32-bit version of pysqlite2. Did you install it via easy_install or via an RPM?
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am

Re: CentOS 5.3 sqlite library problem

Postby lbl-dude » Mon Oct 19, 2009 7:13 pm

Another person did the OS install, and I am just tasked with installing OMERO. Should I install a different version of python or just get and rpm of pysqlite2?
lbl-dude
 
Posts: 9
Joined: Sat Oct 17, 2009 3:55 am

Re: CentOS 5.3 sqlite library problem

Postby lbl-dude » Mon Oct 19, 2009 8:04 pm

I reinstalled the sqlite library with a 64 bit version from an rpm and it works fine now.
lbl-dude
 
Posts: 9
Joined: Sat Oct 17, 2009 3:55 am

Re: CentOS 5.3 sqlite library problem

Postby cxallan » Mon Oct 19, 2009 8:08 pm

Good to hear.
cxallan
Site Admin
 
Posts: 509
Joined: Fri May 01, 2009 8:07 am


Return to Installation and Deployment

Who is online

Users browsing this forum: No registered users and 1 guest