Git Product home page Git Product logo

supersqlite's Issues

Publish supersqlite on conda-forge

It would be very convenient to have this library available on conda-forge so it could be installed with the Conda package manager, which is ideal for packages with binary dependencies. Is that a possibility?

Missing __enter__() with cursor

The syntax :
with conn.cursor() as cursor: ...
work with standard Python SQLite and others database drivers (postgres, ...)
But the method __enter__() is not defined in supersqlite driver.

AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'

Is supersqlite enable loading sqlite extensions?
What can cause this error:

from supersqlite import sqlite3 as sqlite33
conn33=sqlite33.connect("mydbfile.db")
conn33.enable_load_extension(True)
Traceback (most recent call last):
File "", line 1, in
AttributeError: 'sqlite3.Connection' object has no attribute 'enable_load_extension'
thank you.

[BUG] Outdated/typo in requirements.txt

Description

It seems current requirements.txt is either outdated or contains a typo in

lsb-db>=0.6.4

When trying to pip install lsb-db==0.6.4 I get following error

Could not find a version that satisfies the requirement lsb-db==0.6.4 (from versions: none)

I guess this could be a typo for lsm-db?

Expected behavior

Installing this package via pip won't fail

System

Ubuntu 18.04LTS / Python 3.6 / pip 19.1.1

cc @AjayP13

No module named 'supersqlite.third_party.internal.apsw'

Hello, I try to install supersqlite from pip and conda.
I can use

docker run -it ubuntu
# then
apt-get update ; \
apt-get install -y python-apsw python3 python3-pip ; \
pip3 install supersqlite ; python3 -c "import supersqlite"

It's correct.

Now, I try with conda

docker run -it conda/miniconda3
# Then
conda update conda -y ; \
conda init bash ;
exec bash
# and
conda install -c conda-forge apsw -y ; \
pip3 install supersqlite ; \
python3 -c "import supersqlite"

I receive and error:
ModuleNotFoundError: No module named 'supersqlite.third_party.internal.apsw'

Collecting supersqlite
  Downloading supersqlite-0.0.78.tar.gz (25.8 MB)
     |████████████████████████████████| 25.8 MB 3.9 MB/s 
Building wheels for collected packages: supersqlite
  Building wheel for supersqlite (setup.py) ... done
  Created wheel for supersqlite: filename=supersqlite-0.0.78-cp39-cp39-linux_x86_64.whl size=71094064 sha256=64d23d0848fba148a4506b0905135d23df4d7099660bbba683584b71623d38a2
  Stored in directory: /root/.cache/pip/wheels/c2/83/40/cffebda33928fae730f81985e5d75078d257db3586bd419905
Successfully built supersqlite
Installing collected packages: supersqlite
Successfully installed supersqlite-0.0.78
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/local/lib/python3.9/site-packages/supersqlite/__init__.py", line 47, in <module>
    import supersqlite.third_party.internal.apsw as apsw
ModuleNotFoundError: No module named 'supersqlite.third_party.internal.apsw'

You can reproduce this bug with this docker file

# SuperSqliteDockerfile file
FROM continuumio/anaconda3

RUN conda create --name testSupersqlite python=3.7 ; \
    conda activate testSupersqlite ; \
    pip3 install supersqlite

ENTRYPOINT python -c "import supersqlite"

and

docker run --rm -it $(docker build -q -f SuperSqliteDockerfile .)

How can I resolve this problem?

Thanks

Asyncio support?

Will this lib support async await usage?

And, hope complete documentation will come soon.

Thanks for your effort, this lib is pretty good.

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.