As the jenkins user, my sqlite_version
is 3.7.17
bash-4.2$ python3.8
Python 3.8.2 (default, May 8 2020, 12:44:28)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.7.17'
as my root user the sqlite_version
is 3.31.1
[root@jenkins ~]# python3.8
Python 3.8.2 (default, May 8 2020, 12:44:28)
[GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import sqlite3
>>> sqlite3.sqlite_version
'3.31.1'
They are both using the same python binary
[root@jenkins ~]# which python3.8
/usr/local/bin/python3.8
bash-4.2$ which python3.8
/usr/local/bin/python3.8
Steps I took after installing new sqlite3 from source:
- Deleted the old version of
sqlite3
in/bin
- I added
/usr/local/bin
to thejenkins
path in/var/lib/jenkins/.bashrc
Do you have any idea how to make the jenkins python use the new sqlite3 version?
Update:
Running sqlite3.__file__
:
Jenkins
>>> sqlite3.__file__
'/usr/local/lib/python3.8/sqlite3/__init__.py'
Root
>>> sqlite3.__file__
'/usr/local/lib/python3.8/sqlite3/__init__.py'
sqlite3.__file__
?