LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-14-2010, 07:17 AM   #1
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Rep: Reputation: 96
pysqlite2


Can somebody point me towards a Slackware package for pysqlite2?
 
Old 11-14-2010, 07:22 AM   #2
ortho-orange#42
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 16

Rep: Reputation: 2
Have you tried any of these: http://www.linuxpackages.net/search_...=pysqlite&ver= ?
 
Old 11-14-2010, 07:32 AM   #3
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
I need one for AMD64.
 
Old 11-14-2010, 07:40 AM   #4
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
I went ahead and tried one of those anyway... no go. It installed fine, but the software I'm trying to install that depends on it doesn't recognize it.
 
Old 11-14-2010, 07:47 AM   #5
ortho-orange#42
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 16

Rep: Reputation: 2
It might help to know what software you're trying to install that depends on it, how you're installing it (source/pre-compiled binary), and what you mean by "does not recognize it" - do you get an error during installation?
 
Old 11-14-2010, 07:56 AM   #6
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
I'm trying to install gcompris. When I try to install from the Slackbuilds.org package (after modifying the version # in the slackbuild) I get this:

Code:
patching file configure
Hunk #1 succeeded at 16643 (offset -2935 lines).
can't find file to patch at input line 14
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|--- src/boards/python/admin/module_users.py
|+++ src/boards/python/admin/module_users.py
--------------------------
File to patch:
So I tried compiling from source and get this:

Code:
checking for python module pysqlite2... no
configure: error: *** pysqlite2 missing
 
Old 11-14-2010, 08:19 AM   #7
ortho-orange#42
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 16

Rep: Reputation: 2
Is there a reason you need sqlite support? If no, you can use the configuration parameter " --disable-sqlite" Note from configure file -"Turn off sqlite (will disable profile)".

Also, if it is needed, can you import sqlite from python?

from the pysqlite page's troubleshooting section:

Code:
>>> import sqlite
>>> sqlite.version
'1.0.1'
>>> sqlite._sqlite.sqlite_version()
'2.8.16'
running that from python should tell you if python is talking to sqlite.
 
Old 11-14-2010, 08:51 AM   #8
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
Apparently Python is not talking to sqlite:

Code:
>>> import sqlite
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named sqlite
Sqlite is installed on this box.
 
Old 11-14-2010, 09:21 AM   #9
ortho-orange#42
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 16

Rep: Reputation: 2
did you instal pysqllite with the following command?:
Code:
python setup.py build_static install
I was able to install, and test it with this:
Code:
>>> import pysqlite2
that worked (no error), but the "import sqlite" didn't work, so not sure about that.. you may want to try "import pysqlite2" in python...

pysqlite2 is in in the "/usr/lib/python2.X/site-packages" folder, right?

All the gcompris config file does is try to import it by running the "import pysqlite2" in python, so if it's there, it should work..
 
Old 11-14-2010, 09:36 AM   #10
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
I just installed pysqlite from the packages listed above using the installpkg command. Do I need to reinstall it? As it is I'm getting this:

Code:
>>> import pysqlite2
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pysqlite2
 
Old 11-14-2010, 09:50 AM   #11
ortho-orange#42
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 16

Rep: Reputation: 2
Try the download from here: http://code.google.com/p/pysqlite/downloads/list. I used the latest - 2.6.0

Extract it, and run the python setup command above (I had to be root to do it).
 
Old 11-14-2010, 10:37 AM   #12
2handband
Member
 
Registered: Jan 2009
Location: Alexandria, Minnesota
Distribution: Manjaro
Posts: 837

Original Poster
Rep: Reputation: 96
That worked great! thanks so much...
 
Old 11-14-2010, 11:01 AM   #13
ortho-orange#42
LQ Newbie
 
Registered: Feb 2005
Distribution: Slackware
Posts: 16

Rep: Reputation: 2
cool, glad it worked
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration