logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Correctly Importing SQLite3 in Python-2.5: msg#00002

Subject: Re: Correctly Importing SQLite3 in Python-2.5
On Sunday 11 November 2007 4:54 pm, Rich Shepard wrote:
>    I recall reading that SQLite3 is built into Python-2.5 now, so instead
> of writing 'from pysqlite2 import dbapi2 as sqlite3' we write 'import
> sqlite3'. But, that's not working here. The error I see is:
>
> Traceback (most recent call last):
>    File "eikos.py", line 3, in <module>
>      import wx, serial, os, config, functions, sqlite3
>    File "/usr/lib/python2.5/sqlite3/__init__.py", line 24, in <module>
>      from dbapi2 import *
>    File "/usr/lib/python2.5/sqlite3/dbapi2.py", line 27, in <module>
>      from _sqlite3 import *
> ImportError: No module named _sqlite3
>
>    What is the correct syntax?
>
> TIA,
>
> Rich
The import syntax is right. For some reason it is not finding the _sqlite3.so 
module. In my installation of Python 2.5 it is 
in  /usr/lib/python2.5/lib-dynload/. You may have a PATH problem where Python 
is looking in the path of an older version.

-- 
Adrian Klaver
aklaver-Wuw85uim5zDR7s880joybQ@xxxxxxxxxxxxxxxx


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe