Author Topic: Help! Python+sqlite Can't Compile?  (Read 2806 times)

Kondou

  • Newbie
  • *
  • Posts: 37
    • View Profile
Help! Python+sqlite Can't Compile?
« on: March 21, 2006, 11:56:20 am »
i use:

python_2.4.1_armv5tel.ipk
python-compile_2.4.1_armv5tel.ipk
python-shell_2.4.1_armv5tel.ipk
sqlite_3.2.1_armv5tel.ipk

can't work get a error:

import sqlite
("file /user/lib/python2.4/site-packages/sqlite/__init__.py") line1, in ?
import _sqlite
ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory

way? how to set is?


Q2:

python-compile_2.4.1_armv5tel.ipk & python-compiler_2.4.1_armv5tel.ipk Has any difference

krakatau

  • Newbie
  • *
  • Posts: 1
    • View Profile
Help! Python+sqlite Can't Compile?
« Reply #1 on: March 21, 2006, 12:34:38 pm »
you should make symlink (ln -s) libsqlite3.so.0 to existing libsqlite3* library. Everything should work after it.

Quote
i use:

python_2.4.1_armv5tel.ipk
python-compile_2.4.1_armv5tel.ipk
python-shell_2.4.1_armv5tel.ipk
sqlite_3.2.1_armv5tel.ipk

can't work get a error:

import sqlite
("file /user/lib/python2.4/site-packages/sqlite/__init__.py") line1, in ?
import _sqlite
ImportError: libsqlite3.so.0: cannot open shared object file: No such file or directory

way? how to set is?


Q2:

python-compile_2.4.1_armv5tel.ipk & python-compiler_2.4.1_armv5tel.ipk Has any difference
[div align=\"right\"][a href=\"index.php?act=findpost&pid=119614\"][{POST_SNAPBACK}][/a][/div]

nberger

  • Newbie
  • *
  • Posts: 4
    • View Profile
Help! Python+sqlite Can't Compile?
« Reply #2 on: January 07, 2007, 11:10:05 am »
Hi Kondou,

Could you tell me where you found the sqlite bindings for python ?? I've been looking for them for the past few days but they don't seem to be there anymore (they used to be in the unstable feed but that seems gone now...)

Thanks,
- Nicolas

2or0

  • Full Member
  • ***
  • Posts: 217
    • View Profile
    • http://
Help! Python+sqlite Can't Compile?
« Reply #3 on: January 07, 2007, 11:48:20 am »
Quote
Hi Kondou,

Could you tell me where you found the sqlite bindings for python ?? I've been looking for them for the past few days but they don't seem to be there anymore (they used to be in the unstable feed but that seems gone now...)

Thanks,
- Nicolas
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

I found it here.
[a href=\"http://zaurus.spy.org/feeds/cacko/pdaXrom/unstable/python-sqlite_1.1.3_armv5tel.ipk]http://zaurus.spy.org/feeds/cacko/pdaXrom/....3_armv5tel.ipk[/url]

-yonggun
Zaurus SL-C3200 with Debian armel of kernel 2.6.24-yonggun
Ambicom WL1100C WLAN
1 GB Sandisk SD / 1 GB Lexar SD / 256 MB Dane-Elec CF
-----
Blog http://yonggun.tistory.com (English/Korean)

nberger

  • Newbie
  • *
  • Posts: 4
    • View Profile
Help! Python+sqlite Can't Compile?
« Reply #4 on: January 07, 2007, 01:44:38 pm »
Quote
Quote
Hi Kondou,

Could you tell me where you found the sqlite bindings for python ?? I've been looking for them for the past few days but they don't seem to be there anymore (they used to be in the unstable feed but that seems gone now...)

Thanks,
- Nicolas
[div align=\"right\"][{POST_SNAPBACK}][/a][/div]

I found it here.
[a href=\"http://zaurus.spy.org/feeds/cacko/pdaXrom/unstable/python-sqlite_1.1.3_armv5tel.ipk]http://zaurus.spy.org/feeds/cacko/pdaXrom/....3_armv5tel.ipk[/url]

-yonggun
[div align=\"right\"][a href=\"index.php?act=findpost&pid=150350\"][{POST_SNAPBACK}][/a][/div]

Super - Thanks a lot for the pointer!! For reference, to get it running in beta1 on an 860 I had to

- Create links /usr/lib/python2.4/site-config/sqlite and _sqlite.so pointing to the same objets in /usr/lib/python2.3 (in beta1 python is 2.4 by default, but the python-sqlite ipk probably assumed it was 2.3... it still works, though!)

- create a soft link /usr/lib/libsqlite3.so.0 pointing to libsqlite3.so

with these tweaks it seems to work with the standard python and sqlite3 packages for beta1...

Thanks again,
- Nicolas