/usr/lib/python2.3/site-packages/_mysql.so: undefined symbol

2005-09-15 Thread francescomoi
Hello. Python 2.3.4 (#1, Feb 2 2005, 12:11:53) [GCC 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)] on linux2 MySQL-python-1.2.0 I'm trying to execute this script: -- #!/usr/bin/python import MySQLdb conn = MySQLdb.connect (host = "localhost", user = "root", passwd = "", db = "test

Re: MySQL: 'latin-1' codec can't encode character

2005-05-13 Thread francescomoi
Hi Fredrik. Thank you very much for your quick answer. Do you suggest to change it by using regexp or must I encode the whole texto into a suitable one? Regards. Fredrik Lundh wrote: > "[EMAIL PROTECTED]" > > > I'm trying to store a text within a MySQL field (v 3.23.58) by using > > MySQLdb > >

MySQL: 'latin-1' codec can't encode character

2005-05-13 Thread francescomoi
Hi. I'm trying to store a text within a MySQL field (v 3.23.58) by using MySQLdb (v 1.2.1c3). The text is: "telephone..." (note the last character) And I get this error message: --- File "/usr/lib/python2.3/site-packages/MySQLdb/connections.py", line 33, in defaulterrorhandler raise

"/usr/bin/ld: cannot find -lmysqlclient" when building MySQL-Python

2005-05-11 Thread francescomoi
Hi. I'm trying to build MySQL-python-1.2.0 on my Linux FC2 (with MySQL 3.23.58). But when building, I get this error message: --- []# python setup.py build running build running build_py running build_ext building '_mysql' extension creating buil

Re: "mysql.h: No such file or directory" when building MySQL-python

2005-05-11 Thread francescomoi
Thank you Andy for your answer. I tried by using '1.2.1c1' and '1.2.1c2', but with no success: --- creating build/temp.linux-i686-2.3 gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -g -pipe -march=i386 -mcpu=i686 - D_GNU_SOURCE -fPIC -fPIC -I/usr/include/python2.3 -c _mysql.c -o build/

"mysql.h: No such file or directory" when building MySQL-python

2005-04-27 Thread francescomoi
Hi. I'm trying to build 'MySQL-python-1.2.0' on my Linux FC2: -- [ ]# export PATH=$PATH:/usr/local/mysql/bin/ [ ]# export mysqlclient=mysqlclient_r [ ]# python setup.py clean [ ]# python setup.py build running build running build_py running build_ext building '_mysq