Re: Pysqlite issue no attribute 'autocommit'

Discussion in 'Python' started by Paul McNett, Feb 4, 2008.

  1. Paul McNett

    Paul McNett Guest

    Andy Smith wrote:


    > Im trying to run a Python based program which uses MySQL with
    > python-sqlite and Im recieving this error,
    >
    > 'Connection' object has no attribute 'autocommit'
    >
    > I´ve had a google for this and its seems like it may be a bug
    > python-sqlite or sqlite bug , but also I tried searching
    > for it on the python issue traker and didnt find anything. Is anyone
    > else aware of this issue and any solution?
    >
    > thanks for any help! Andy.
    >
    > PS sorry if I didnt include much info, hoping its a known issue (and
    > also I didnt write the code, so not sure what
    > else to include off the top of my head! :p)


    What you should do is post the entire traceback.


    Paul

    --
    http://paulmcnett.com
     
    Paul McNett, Feb 4, 2008
    #1
    1. Advertising

  2. Paul McNett wrote:
    > Andy Smith wrote:
    >
    >> Im trying to run a Python based program which uses MySQL with
    >> python-sqlite and Im recieving this error,
    >>
    >> 'Connection' object has no attribute 'autocommit' [...]


    No, why should it have one? It's not documented to have one. To do what
    you intend to do with pysqlite, search its documentation for "autocommit".

    -- Gerhard
     
    Gerhard Häring, Feb 5, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Maruda
    Replies:
    1
    Views:
    1,738
    John C. Bollinger
    Dec 31, 2005
  2. Chris

    MySql autocommit off?

    Chris, Jul 15, 2003, in forum: Python
    Replies:
    0
    Views:
    982
    Chris
    Jul 15, 2003
  3. F. GEIGER
    Replies:
    2
    Views:
    549
    F. GEIGER
    May 21, 2005
  4. Jia Lu
    Replies:
    2
    Views:
    522
    Jia Lu
    Dec 1, 2006
  5. Gerhard Häring
    Replies:
    3
    Views:
    387
    Gerhard Häring
    Mar 13, 2008
Loading...

Share This Page