![]() |
Accessing MySQL database using Python from N810?
Hi,
I am trying to create an application in Python which will allow me to interface with a remote MySQL database. I tried to install MySQLdb on the N810 but it apparently does not work. Does anyone have any ideas on this? Any help would be greatly appreciated! Thanks!! |
Re: Accessing MySQL database using Python from N810?
Welcome to this forum!
"Does not work" is unfortunately not a good explanation. What does not work, and what does "does not work" look like? |
Re: Accessing MySQL database using Python from N810?
sorry for the unclear explanation...
these are the steps i took: 1. i downloaded "MySQL-python-1.2.2.tar.gz" from http://sourceforge.net/project/showf...ckage_id=15775 2. extracted it using the command "tar xzvf MySQL-python-1.2.2.tar.gz" 3. cd into the folder using the command "cd MySQL-python-1.2.2" 4. build it using the command "python setup.py build" at this point i get the following error message: Quote:
|
Re: Accessing MySQL database using Python from N810?
This looks like you'd need a mysql-devel package on your system. I think the best would be to get the Scratchbox Maemo SDK installed on your computer, and build the mysql-python-bindings there. You should be able to compile and install the mysql-client source on Scratchbox, which in turn will help with compiling the mysql-python-bindings. Scratchbox can do crosscompiling for ARM, so it will run on your tablet.
|
Re: Accessing MySQL database using Python from N810?
Quote:
I would be very grateful if you, or somebody could help me. Here is what I did, maybe I have misunderstood something, so please tell me, where I went wrong: 1. selected the ARMEL target. 2. downloaded http://sourceforge.net/projects/mysq...ar.gz/download 3. tried to compile it with python2.5 setup.py install, it needed setuptools 4. added the repos from the list on my N810 to the scratchbox environment: Code:
[sbox-DIABLO_ARMEL: ~] > cat /etc/apt/sources.list 6. fakeroot apt-get install python2.5-setuptools 7. tried again, it look that setuptools works, but then it needs mysql_config. I read that I need the libmysqlclient-dev package, but I can't find it anywhere. Any suggestions? Where can I go now? |
Re: Accessing MySQL database using Python from N810?
A quick update: there is a package in the repos named 'mysql'. I can install it, but then if I try to compile mysql-python, I get the following output:
Code:
[sbox-DIABLO_ARMEL: ~/MySQL-python-1.2.3] > python2.5 setup.py install |
All times are GMT. The time now is 11:05. |
vBulletin® Version 3.8.8