Griffith - media collection manager
May 22, 2012, 05:15:19 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: New mailing lists,
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: [SOLVED] I have problem in my Gentoo  (Read 3120 times)
lupin3rd
Newbie
*
Offline Offline

Posts: 11


View Profile
« on: March 01, 2006, 05:56:13 PM »

Hi, thanks for your software, it's very good :-D

I have a problem in my gentoo system...
I have downdload the last svn and make install
When i run griffith i have:

Traceback (most recent call last):
  File "/usr/bin/griffith", line 37, in ?
    import backup
  File "/usr/share/griffith/lib/backup.py", line 28, in ?
    import sql
  File "/usr/share/griffith/lib/sql.py", line 25, in ?
    import sqlite
ImportError: No module named sqlite

But it's strange, i have sqlite 3.2.7, i have pysqlite 2.0.7.
« Last Edit: September 18, 2006, 02:54:57 PM by POX » Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #1 on: March 01, 2006, 06:24:02 PM »

Can you run python from terminal, type in: `import sqlite` and post output here?
Logged

Please, feel free to correct my English.
lupin3rd
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #2 on: March 02, 2006, 02:18:31 AM »

Python 2.4.2 (#1, Mar  2 2006, 02:11:23)
[GCC 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> include sqlite
  File "<stdin>", line 1
    include sqlite
                 ^
SyntaxError: invalid syntax
>>>
Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #3 on: March 02, 2006, 08:25:14 AM »

>>> include sqlite
import sqlite
Logged

Please, feel free to correct my English.
lupin3rd
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #4 on: March 02, 2006, 10:00:45 AM »

Python 2.4.2 (#1, Mar  2 2006, 02:11:23)
[GCC 3.4.5 (Gentoo 3.4.5, ssp-3.4.5-1.0, pie-8.7.9)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
ImportError: No module named sqlite
>>>
Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #5 on: March 02, 2006, 02:09:36 PM »

Maybe you installed pysqlite in wrong directory?
Please post output of: `find /usr/
Logged

Please, feel free to correct my English.
lupin3rd
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #6 on: March 02, 2006, 02:38:22 PM »

find /usr/  -name sqlite -type d
/usr/portage/dev-db/sqlite
Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #7 on: March 02, 2006, 06:08:15 PM »

Now I'm sure: you DONT have python-sqlite installed!

EDIT: pysqlite is not python-sqlite
« Last Edit: March 02, 2006, 09:04:27 PM by POX » Logged

Please, feel free to correct my English.
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #8 on: March 02, 2006, 06:15:01 PM »

BTW: is there any `dpkg -L package` equivalent in gentoo? I know that gentoo is providing binary packages too, so there should be an utility to list package's content...

I couldn't found such list here: http://packages.gentoo.org/ebuilds/?pysqlite-2.0.7
Logged

Please, feel free to correct my English.
lupin3rd
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #9 on: March 02, 2006, 07:42:48 PM »

localhost / # eix pysqlite
* dev-python/pysqlite
     Available versions:  0.5.1 1.0.1 2.0.4 2.0.5 2.0.7
     Installed:           2.0.7
     Homepage:            http://initd.org/tracker/pysqlite/
     Description:         Python wrapper for the local database Sqlite
Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #10 on: March 02, 2006, 08:40:17 PM »

OK, I see where the problem is, pysqlite2 is simply not compatible with python-sqlite. You have to install python-sqlite (pysqlite 1.0.x).
« Last Edit: March 04, 2006, 01:22:02 AM by POX » Logged

Please, feel free to correct my English.
lupin3rd
Newbie
*
Offline Offline

Posts: 11


View Profile
« Reply #11 on: March 06, 2006, 12:32:52 AM »

i installed the 1.0.1 version of pysqlite and all works fine. Thanks a lot for your help  Grin

Do you think to add the support for pysqlite 2.0.x?

Thanks
Logged
POX
Administrator
Hero Member
*****
Offline Offline

Posts: 512



View Profile WWW
« Reply #12 on: March 06, 2006, 01:07:18 AM »

Do you think to add the support for pysqlite 2.0.x?

We will move to pysqlite 2.0.x in the near future.
Logged

Please, feel free to correct my English.
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2006-2007, Simple Machines Valid XHTML 1.0! Valid CSS!