<div>Dear Josh and Bernhard,</div>
<div> </div>
<div>Thank to you both very much for the very valuable advice! I re-built pysqlite from source, copied the newly created pysqlite2 folder to python2.4/site-packages and that did the trick. Great help indeed!!</div>
<div> </div>
<div>Zoltan<br><br></div>
<div class="gmail_quote">On Mon, Jul 13, 2009 at 3:00 PM, Bernhard Holländer <span dir="ltr"><<a href="mailto:bernhard.voigt@gmail.com">bernhard.voigt@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi Josh and Zoltan!<br>
<div class="im"><br>Josh wrote:<br>> django.core.exceptions.ImproperlyConfigured: Error loading pysqlite2<br>> module: /usr/lib64/python2.4/site-packages/pysqlite2/_sqlite.so:<br>> undefined symbol: PyUnicodeUCS4_AsUTF8String<br>
</div>...<br>
<div class="im">> Perhaps someone on the list will have some clues.<br><br></div>Josh is right, this is likely a version mismatch.<br>Where did you get he pysqlite2 extension and where did you get the<br>mod_python library? Are they both RPMs from the official SuSE<br>
repositories? If they are, they should match, if not and you can't get<br>them from SuSE, I would say you have to compile them yourself.<br><br>I'm not sure about the internals of mod_python, but I guess it is<br>
linked against or calls the system python interpreter. If this is the<br>case, it's likely that it is the mismatch between the system python<br>and the pysqlite2 module that causes the problem. Try the following:<br>
<br>
$ python<br>>>> import mod_python<br>CTRL-D<br><br>This shoud work, otherwise you have to fix your mod_python installation.<br><br>$ python<br>>>> import pysqlite2<br>CTRL-D<br><br>I guess this will cause the error. In this case you only need to fix<br>
the pysqlite2 installation.<br><br>By the way, there could also be the chance that you have different<br>python versions installed and this causes problems. Take a look at the<br>output of<br>$ ls -l /usr/bin/python*<br>
and check if you see multiple versions of python, like 2.4, 2.5...<br>
<br>Hope that helps! Bernhard<br></blockquote></div><br><br clear="all">
<div></div><br>-- <br><br>Zoltan Cseresnyes<br>Facility manager, Imaging Suite<br>