Re: Error Opening Database

"Witold Czarnecki" <[email protected]>
Newsgroups gmane.comp.python.db.pysqlite.user
Organization Traffiqua
Message-ID <op.thv9y9huu10rxn@lenovo-baf1afe5>
I think that you use 'sqlite' variable in your program. So after that  
'sqlite' is not module name but string variable.

Witek

On Mon, 23 Oct 2006 22:43:51 +0200, Rich Shepard  
<[email protected]> wrote:

>    As I test during development I come across errors I don't understand.
> Below is one of them:
>
> [rshepard@salmo /data1/eikos]$ python eikos.py
> Traceback (most recent call last):
>    File "eikos.py", line 515, in OnFileNew
>      self.OnOpenDB(projname)
>    File "eikos.py", line 175, in OnOpenDB
>      self.con = sqlite.connect(projname, isolation_level=None)
> AttributeError: 'unicode' object has no attribute 'connect'
>
>    Where does 'unicode object' come from?
>
>    As an aside, when I enter a 'projname', should the '.db' extension be
> explicitly included?
>
> Rich
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.