Comments (8)
Fixed in master.
from aioodbc.
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.
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:
- Removed await before pool._cond on lines 28, 79, 108, 122 and 171
- 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.
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.
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.
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.
Hey @hhromic @singlecheeze @ecoron-ai I have raise a pull request and fixed the code with new async with keyword.
from aioodbc.
Hi!!!
@nishdnr your approach works perfectly!!! Thanks !!!
it will be nice if the library is updated !!
from aioodbc.
Related Issues (20)
- Need Connection Recycle Options HOT 1
- Allow autocommit to be updated HOT 1
- Cannot find implementation or library stub for module named 'aioodbc'
- Dependabot couldn't authenticate with https://pypi.python.org/simple/
- using fastapi aioodbc
- Is there any ORM library supported by aioodbc ? HOT 5
- Update tests to use current required packges
- cursor.fetchmany() should have a default value for size, as per DB-API 2.0 spec
- what if the self._conn closed already? encountered an error - "pyodbc.ProgrammingError: Attempt to use a closed connection" HOT 1
- package dead? HOT 5
- aioodbc Pool is incompatible with Python 3.10+ HOT 1
- Type hints are not readily available through Pylance in VS Code HOT 1
- fast_executemany HOT 3
- Row with values from previous row
- please release the bugfix for .autocommit (0.4.1) ? HOT 1
- Release 3.12 wheels HOT 1
- implement pyodbc.setinputsizes HOT 1
- Add support for FileDSNs HOT 1
- aioodbc falsely claims to support python 3.7 anymore
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aioodbc.