[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.python

Re: Can I make sqlite3 or shelve work reliably on any Win/Linux/Mac?

Alex Quinn

2/23/2010 12:02:00 AM

Thanks for the reply, Jonathan, but I was hoping to find a workaround. I don't have root access for these machines so I can't repair the install. Among the 6 Linux servers at 3 separately managed organizations where I do work, the sqlite3 module was broken 100% of the time. It seems to be a common problem, so I'd like to make my code robust enough to deal with it gracefully. Ideally, the Python build process would refuse to install a faulty install, but that's another matter. I'm just looking for a workaround.

Thanks,
Alex



----- Original Message ----
From: Jonathan Gardner <jgardner@jonathangardner.net>
To: Alex Quinn <alexanderjquinn@yahoo.com>
Cc: python-list@python.org
Sent: Mon, February 22, 2010 2:41:45 PM
Subject: Re: Can I make sqlite3 or shelve work reliably on any Win/Linux/Mac?

On Mon, Feb 22, 2010 at 9:10 AM, Alex Quinn <alexanderjquinn@yahoo.com> wrote:
>
> * Sqlite3 should fill the void now. However, in my experience, nearly every Linux Python install I encounter has a broken sqlite3 module ("ImportError: No module named _sqlite3"). It's a well-documented issue, but it the solution generally requires root access, which I don't have on these servers.
>

If your program is installed in the same way everything else is
installed on the system (RPM or deb packages, or whatever), there
should be dependencies clearly listed. When the admin installs your
code, he must also install the requisite modules that you list as
dependencies.

--
Jonathan Gardner
jgardner@jonathangardner.net