GithubHelp home page GithubHelp logo

Comments (8)

jettify avatar jettify commented on August 22, 2024 4

Fixed in master.

from aioodbc.

jayantraizada avatar jayantraizada commented on August 22, 2024 2

Hi @hhromic

I was going through the same issue so I have fixed the pool.py file.
I have update the lines with new construct instead of the old one.

Let me know how can I share the file with you so that you can update it in the aioodbc package.
I also don't want this project to be abandoned because it is really very useful.

from aioodbc.

nishdnr avatar nishdnr commented on August 22, 2024 2

Hi all,
I have tried the fix the pool.py file as per the official documentation mentioned by @hhromic . I have implemented following fixes in the file:

  1. Removed await before pool._cond on lines 28, 79, 108, 122 and 171
  2. Inserted async before with on the same lines.
    After these modifications I am able to use the connection pool with python 3.9.5. I am sharing the updated pool.py file herewith. You can paste the file in /Lib/site-packages/aioodbc and should be good to go
    pool.zip

from aioodbc.

ecoron-ai avatar ecoron-ai commented on August 22, 2024

Hi @hhromic

I was going through the same issue so I have fixed the pool.py file.
I have update the lines with new construct instead of the old one.

Let me know how can I share the file with you so that you can update it in the aioodbc package.
I also don't want this project to be abandoned because it is really very useful.

Can you share the file with me too?

from aioodbc.

jayantraizada avatar jayantraizada commented on August 22, 2024

Hi @hhromic
I was going through the same issue so I have fixed the pool.py file.
I have update the lines with new construct instead of the old one.
Let me know how can I share the file with you so that you can update it in the aioodbc package.
I also don't want this project to be abandoned because it is really very useful.

Can you share the file with me too?

Here is the link. File will be automatically deleted in 24 hours.
https://file.re/2021/03/18/poolnew/

from aioodbc.

singlecheeze avatar singlecheeze commented on August 22, 2024

Hey @jayantraizada @hhromic seems I'm hitting this issue too!
Hopefully you can submit a pull request?

This seems to be one of the only projects for AIO for ODBC...

from aioodbc.

jayantraizada avatar jayantraizada commented on August 22, 2024

Hey @hhromic @singlecheeze @ecoron-ai I have raise a pull request and fixed the code with new async with keyword.

from aioodbc.

NILodio avatar NILodio commented on August 22, 2024

Hi!!!

@nishdnr your approach works perfectly!!! Thanks !!!
it will be nice if the library is updated !!

from aioodbc.

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.