public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Jose Isaias Cabrera <jicman@outlook.com>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>
Subject: RE: Changing the python sqlite3 version to the latest
Date: Wed, 15 Feb 2023 12:43:41 +0000	[thread overview]
Message-ID: <DB9P251MB0063A4387A9146D1277A7C72DEA39@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM> (raw)
In-Reply-To: <DB9P251MB0063FCE9A3850830F5A1F632DEA39@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM>


On February 14, 2023 8:46 PM, Jose Isaias Cabrera expressed:
> 
> 
> On Tuesday, February 14, 2023 5:58 PM, Marco Atzeri expressed:
> >
> > On 11.02.2023 22:37, Jose Isaias Cabrera via Cygwin wrote:
> > >
> > > Greetings.
> > >
> > > If I install python39 and thus,
> > > $ python
> > > Python 3.9.10 (main, Jan 20 2022, 21:37:52) [GCC 11.2.0] on cygwin
> > > Type "help", "copyright", "credits" or "license" for more information.
> > >>>> import sqlite3
> > >>>> sqlite3.sqlite_version
> > > '3.34.0'
> > Last version packaged for Cygwin is 3.34.0
> >
> > Until Jan (or someone else) is packaging a more recent version that is
> > what is available
> >
> > Regards
> > Marco
> 
> Yes, but the question is how can I update the SQLite version? I have been
> able to do it with 2 PCs, but there is one that is not able. Some of the
> sqlite folks said that is a DLL issue.

In case anyone needs the answer, These steps worked for me:

-- Downloaded the Pre-release Snapshots
$ wget https://sqlite.org/snapshot/sqlite-snapshot-202302131932.tar.gz

-- untared the snapshot
$ tar xvf sqlite-snapshot-202302131932.tar.gz

-- cd to the untared directory
$ cd sqlite-snapshot-202302131932

$ ./configure --prefix=/usr

$ make install

And this process has set the python SQLite version to the sqlite-snapshot version. After that, you can download the trunk and follow the same procedure, and the version of the trunk will be changed also.

$ ./SQLiteVersion.py
3.41.0
['/usr/lib/python3.9/sqlite3']
3.41.0
2023-02-13 19:32:40 ecdeef43b27412b0b0b09e09a62ad3a03836a3fc80f2070268090e7ca8f02712

I hope this helps.
[JIC] 
This script may be useful...

$ cat SQLiteVersion.py
#!/usr/bin/python3

import sqlite3

def ConnectToSharedDB(sdb):
    return sqlite3.connect(sdb)

print(sqlite3.sqlite_version)
print(sqlite3.__path__)
SharedDB = ":memory:"
con = ConnectToSharedDB(SharedDB)
cur = con.cursor()
cur.execute("SELECT sqlite_version(),sqlite_source_id();")
for row in cur:
    print(row[0] + '\r\n' + row[1])

con.close()

  reply	other threads:[~2023-02-15 12:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-11 21:37 Jose Isaias Cabrera
2023-02-13 20:24 ` Jose Isaias Cabrera
2023-02-14 22:58 ` Marco Atzeri
2023-02-15  1:45   ` Jose Isaias Cabrera
2023-02-15 12:43     ` Jose Isaias Cabrera [this message]
2023-02-15 15:55       ` Andrey Repin
2023-02-15 18:29         ` Jose Isaias Cabrera
2023-02-16  6:14           ` Andrey Repin
2023-02-16 14:25             ` Jose Isaias Cabrera
2023-02-16 18:40               ` Marco Atzeri

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DB9P251MB0063A4387A9146D1277A7C72DEA39@DB9P251MB0063.EURP251.PROD.OUTLOOK.COM \
    --to=jicman@outlook.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).