Coder Social home page Coder Social logo

sqlite3.OperationalError about focus HOT 5 CLOSED

geneticsmcgill avatar geneticsmcgill commented on August 17, 2024
sqlite3.OperationalError

from focus.

Comments (5)

quattro avatar quattro commented on August 17, 2024

Hi thanks for your interest in FOCUS. I'm looking into this issue as several users have recently reported it. It looks like sqlite has a limit of the number of variables that can be used within an 'IN' statement (999).

I'm working on a bugfix that will require getting results in batches and joining them together after-the-fact rather than all at once.

from focus.

quattro avatar quattro commented on August 17, 2024

Hello @geneticsmcgill , I just released a new version (0.5) of FOCUS that should address this issue. You can install either by pulling the latest from the repo and installing, or using pip.

Please let me know if you have any other questions or issues.

This was fixed by commit: ff06df0

from focus.

quattro avatar quattro commented on August 17, 2024

If users are still running into this issue I would recommend updating the sqlite software with conda or another package manager. The software limit implemented in pyfocus is based on a newer sqlite version and there is no clean way to programmatically determine what the limit is. Given that, the simplest solution is to update sqlite.

from focus.

BinglanLi avatar BinglanLi commented on August 17, 2024

I also ran into this issue and am not sure what sqlite3 version is expected. Here is what I saw when checking the sqlite3 version in python.

`Python 3.6.5 (default, Jun 19 2018, 16:28:05)

[GCC 6.2.0] on linux

Type "help", "copyright", "credits" or "license" for more information.

import sqlite3

sqlite3.version

'2.6.0'

sqlite3.sqlite_version

'3.7.17'`

what version is expected?

from focus.

quattro avatar quattro commented on August 17, 2024

Here is what I have on my end:

In [3]: sqlite3.sqlite_version                                                                                                                                                                                                                                    
Out[3]: '3.26.0'
In [4]: sqlite3.version                                                                                                                                                                                                                                           
Out[4]: '2.6.0'

from focus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.