Re: How to import sqlite3 in my python3.4 successfully?

2014-12-14 Thread Thomas 'PointedEars' Lahn
n 3.4.0 (default, Nov 27 2014, 13:54:17) > [GCC4.7.2] on linux > Type "help", "copyright", "credits" or "license" for more > information. >>>> import sqlite3 > Traceback (most recent calllast): >File &quo

Re: How to import sqlite3 in my python3.4 successfully?

2014-12-14 Thread Albert-Jan Roskam
[GCC4.7.2] on linux2 >Type "help", "copyright", "credits" or "license" for more information. >>> import sqlite3| > >In python3.4 > >|root@rebuild:~# python3.4 >Python 3.4.0 (default, Nov 27 2014, 13:54:17) >[GCC4.7.2

How to import sqlite3 in my python3.4 successfully?

2014-12-14 Thread sir
install sqlite3 libsqlite3-dev| In python2.7 |root@rebuild:~# python Python 2.7.3 (default, Mar 14 2014, 11:57:14) [GCC4.7.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. import sqlite3| In python3.4 |

Re: import sqlite3

2009-06-05 Thread willgun
Gabriel Genellina 写道: En Thu, 04 Jun 2009 03:14:18 -0300, willgun escribió: I'm a student from China.It's painful for us to read python documentation entirely due to poor english.So I often make these mistakes. Try "chinese python group" at Google - I see some promising results at least...

Re: import sqlite3

2009-06-05 Thread willgun
Mark Tolonen 写道: "willgun" wrote in message news:h08c5e$au...@news.cn99.com... By the way ,what does 'best regards' means at the end of a mail? I think 恭祝 may be a good translation. -Mark O(∩_∩)O谢谢 Glad to meet a foreigner know Chinese, :-) . But in my opinion,恭祝 means congratulation,wh

Re: import sqlite3

2009-06-05 Thread Philip Semanchuk
On Jun 4, 2009, at 7:45 AM, willgun wrote: By the way ,what does 'best regards' means at the end of a mail? "regards" is just respectful (and slightly formal) goodbye. Have a look at the definition: http://dictionary.reference.com/search?q=regards It's used much more in written communicat

Re: import sqlite3

2009-06-04 Thread Mark Tolonen
"willgun" wrote in message news:h08c5e$au...@news.cn99.com... By the way ,what does 'best regards' means at the end of a mail? I think 恭祝 may be a good translation. -Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: import sqlite3

2009-06-04 Thread Gabriel Genellina
En Thu, 04 Jun 2009 03:14:18 -0300, willgun escribió: I'm a student from China.It's painful for us to read python documentation entirely due to poor english.So I often make these mistakes. Try "chinese python group" at Google - I see some promising results at least... -- Gabriel Genell

Re: import sqlite3

2009-06-04 Thread MRAB
Andrew McNamara wrote: On 04/06/2009, at 9:45 PM, willgun wrote: By the way ,what does 'best regards' means at the end of a mail? The correspondent is wishing you well. You'll also see things like "kind regards", "best wishes" and so on. "Regard" essentially means respect. There's also "h

Re: import sqlite3

2009-06-04 Thread pdpi
On Jun 4, 12:45 pm, willgun wrote: > By the way ,what does 'best regards' means at the end of a mail? "regard" means roughly "care". Its use as "best regards" closing a letter (or, in this case, email), means that you care for the person you're saying goodbye to. It's just a polite way to end a

Re: import sqlite3

2009-06-04 Thread Andrew McNamara
On 04/06/2009, at 9:45 PM, willgun wrote: By the way ,what does 'best regards' means at the end of a mail? The correspondent is wishing you well. You'll also see things like "kind regards", "best wishes" and so on. "Regard" essentially means respect. -- http://mail.python.org/mailman/lis

Re: import sqlite3

2009-06-04 Thread willgun
By the way ,what does 'best regards' means at the end of a mail? -- http://mail.python.org/mailman/listinfo/python-list

Re: import sqlite3

2009-06-04 Thread willgun
Andrew McNamara 写道: On 04/06/2009, at 4:14 PM, willgun wrote: What did you call the .py file? sqlite3.py? If so, you've just imported your own module again. 8-) After the import, try "print sqlite3.__file__", which will tell you where the module came from. Thank you all the same. I'm a stu

Re: import sqlite3

2009-06-03 Thread Andrew McNamara
On 04/06/2009, at 4:14 PM, willgun wrote: What did you call the .py file? sqlite3.py? If so, you've just imported your own module again. 8-) After the import, try "print sqlite3.__file__", which will tell you where the module came from. Thank you all the same. I'm a student from China.It'

Re: import sqlite3

2009-06-03 Thread willgun
Andrew McNamara 写道: On 04/06/2009, at 3:15 PM, willgun wrote: When i run the following in IDLE: IDLE 2.6.1 import sqlite3 con =sqlite3.connect (r'g:\db1') everything goes well,but when i save these to a .py file and run it: Traceback (most recent call last): File "C:\U

Re: import sqlite3

2009-06-03 Thread willgun
Gabriel Genellina 写道: En Thu, 04 Jun 2009 02:15:39 -0300, willgun escribió: Traceback (most recent call last): File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 2, in import sqlite3 File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 3, in con=sqli

Re: import sqlite3

2009-06-03 Thread Andrew McNamara
On 04/06/2009, at 3:15 PM, willgun wrote: When i run the following in IDLE: IDLE 2.6.1 import sqlite3 con =sqlite3.connect (r'g:\db1') everything goes well,but when i save these to a .py file and run it: Traceback (most recent call last): File "C:\Users\hp\Desktop\SQL

Re: import sqlite3

2009-06-03 Thread Gabriel Genellina
En Thu, 04 Jun 2009 02:15:39 -0300, willgun escribió: Traceback (most recent call last): File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 2, in import sqlite3 File "C:\Users\hp\Desktop\SQLite3\sqlite3.py", line 3, in con=sqlite3.connect(r'g:\db1&

import sqlite3

2009-06-03 Thread willgun
Hi,everyone! When i run the following in IDLE: IDLE 2.6.1 >>> import sqlite3 >>> con =sqlite3.connect (r'g:\db1') >>> everything goes well,but when i save these to a .py file and run it: >>> Traceback (most recent call last): File "C:\Users\hp\

Re: Embedded python 2.6 interpreter can't "import sqlite3" on Windows XP

2009-02-01 Thread Peter
jdetaeye wrote: I am porting an application which embeds a Python interpreter to Python 2.6. On version 2.5 all is working fine, but importing the sqlite3 module doesn't work any more on 2.6. The statement "import sqlite3" does work fine when executed from in the python command

Embedded python 2.6 interpreter can't "import sqlite3" on Windows XP

2009-02-01 Thread jdetaeye
I am porting an application which embeds a Python interpreter to Python 2.6. On version 2.5 all is working fine, but importing the sqlite3 module doesn't work any more on 2.6. The statement "import sqlite3" does work fine when executed from in the python command prompt, ie not fr

Re: import pysqlite2 or import sqlite3?

2007-11-25 Thread MonkeeSage
27;sqlite' should be fine): > > > try: > >from sqlite3 import dbapi2 as sqlite # python 2.5 > > I've been using > > import sqlite3 as sqlite > > here > > sqlite3 and sqlite3.dbapi2 seem to be the same thing > > Python 2.5.1 (r251:5486

Re: import pysqlite2 or import sqlite3?

2007-11-25 Thread Nick Craig-Wood
lite # python 2.5 I've been using import sqlite3 as sqlite here sqlite3 and sqlite3.dbapi2 seem to be the same thing Python 2.5.1 (r251:54863, Aug 17 2007, 00:51:07) [GCC 4.1.3 20070812 (prerelease) (Debian 4.1.2-15)] on linux2 Type "help", "copyright"

Re: import pysqlite2 or import sqlite3?

2007-11-25 Thread MonkeeSage
I use the following for a progam I wrote using sqlite, to ensure maximum compatibility (since the API is the same, importing them both as 'sqlite' should be fine): try: from sqlite3 import dbapi2 as sqlite # python 2.5 except: try: from pysqlite2 import dbapi2 as sqlite except: print

Re: import pysqlite2 or import sqlite3?

2007-11-25 Thread Hertha Steck
pysqlite2 import dbapi2 >> >> and that works. If I try >> ... >> > Suppose I run the following program: >> > import sqlite3 >> >> > conn = sqlite3.connect('example') >> >> ... >> >> And from the rest of the posting that import

Re: import pysqlite2 or import sqlite3?

2007-11-22 Thread Jan Claeys
Op Wed, 21 Nov 2007 21:11:59 +0100, schreef Hertha Steck: > After a second look at the error message: when I installed Gentoo, > Python 2.4 was installed, I got the new version a little later. And I > think I installed Pysqlite 2.3.5 separately. > > Python 2.5 comes with pysqlite - should I unins

Re: import pysqlite2 or import sqlite3?

2007-11-22 Thread Mike MacDonald
On Nov 21, 3:02 pm, Hertha Steck <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using Python 2.5.1, Pysqlite 2.3.5 and SQLite 3.4.1 on Gentoo Linux. > I've always imported pysqlite using > > from pysqlite2 import dbapi2 > > and that works. If I try > >

Re: import pysqlite2 or import sqlite3?

2007-11-21 Thread Hertha Steck
Hertha Steck wrote: > Hello, > > I'm using Python 2.5.1, Pysqlite 2.3.5 and SQLite 3.4.1 on Gentoo Linux. > I've always imported pysqlite using > > from pysqlite2 import dbapi2 > > and that works. If I try > > import sqlite3 > > I get > >

import pysqlite2 or import sqlite3?

2007-11-21 Thread Hertha Steck
Hello, I'm using Python 2.5.1, Pysqlite 2.3.5 and SQLite 3.4.1 on Gentoo Linux. I've always imported pysqlite using from pysqlite2 import dbapi2 and that works. If I try import sqlite3 I get Traceback (most recent call last): File "", line 1, in File "/usr/lib/p