Closed loveis98 closed 7 months ago
sqlite
is used by dvc to keep some info so it doesn't need to be recollected from files constantly. As the error suggests, the solution is to upgrade your sqlite version.
If that's not possible, you could try dvc_exp_save=False
. Note that with dvc_exp_save=False
, it will be up to you to commit the results of each experiment to git.
sqlite
is used by dvc to keep some info so it doesn't need to be recollected from files constantly. As the error suggests, the solution is to upgrade your sqlite version.If that's not possible, you could try
dvc_exp_save=False
. Note that withdvc_exp_save=False
, it will be up to you to commit the results of each experiment to git.
But how can I upgrade my sqlite version? How can I do it with pip?
@loveis98 could you please run dvc version
?
Also:
import sqlite3
sqlite3.sqlite_version
Also, describe please the context. Where do you run it (is it some Amazon AWS image / box, do you have a control on what distribution you are using, etc).
The problem usually is that sqlite
comes as part of the Linux distro itself. Depending on the context, either you could upgrade it or change the distro.
Example: https://stackoverflow.com/questions/57214850/trying-to-upgrade-sqlite-on-amazon-ec2
import sqlite3 sqlite3.sqlite_version
I run it locally (Linux), in VSCode
@loveis98 could you also please give more context (where do you run it, etc)? Run dvc version
, etc?
@loveis98 could you also please give more context (where do you run it, etc)? Run
dvc version
, etc?
Platform: Python 3.10.8 on Linux-3.10.0-1160.99.1.el7.x86_64-x86_64-with-glibc2.17 Subprojects: dvc_data = 3.9.0 dvc_objects = 3.0.6 dvc_render = 1.0.1 dvc_task = 0.3.0 scmrepo = 2.1.1 Supports: hdfs (fsspec = 2022.11.0, pyarrow = 11.0.0), http (aiohttp = 3.9.0, aiohttp-retry = 2.8.3), https (aiohttp = 3.9.0, aiohttp-retry = 2.8.3) Config: Global: /home/user/.config/dvc System: /etc/xdg/dvc Cache types: https://error.dvc.org/no-dvc-cache Caches: local Remotes: None Workspace directory: ext4 on /dev/mapper/vg_data-lv_home Repo: dvc, git Repo.site_cache_dir: /var/tmp/dvc/repo/851fd0d197ac3f88c8a5ca03350330ed
So, I might be wrong but it seems that Linux-3.10.0
is quite outdated. Probably release in 2017 and not maintained anymore. You would have to ask your devops / admins to upgrade the distro (can be complicated), or at least find a way to update the sqlite for you on it. I don't think we can do much on our end for this tbh. I would too tedious for us as a small team to keep compatibility with a very outdated distros.
I try to use DVC extention for VSCode, and I have run the example from started page:
But see the error:
Could you help me, please? I can't understand even why and when I call sqlite