Comments (3)
We're not the only ones affected by this regression: python/cpython#111140
pyodbc is mentioned there along with some other projects.
from pyodbc.
it seems a public function PyLong_AsNativeBytes
has been added to do this job, IIUC. See https://github.com/python/cpython/blob/main/Doc/c-api/long.rst for docs on it.
As the error you get - "too few arguments" - implies, the function was re-added after it was removed, but then an extra argument, with_exceptions
(an int acting as a boolean), was added in the same commit that introduced PyLong_AsNativeBytes
. So for the short term, I think just adding the extra arg to the call would work. For the long term probably a good idea to switch to using the new public function, though. It seems setting with_exceptions
to 1 would behave as the function did before (setting it to 0 skips raising an exception when trying to convert a negative int to unsigned).
from pyodbc.
Sent #1361 .
from pyodbc.
Related Issues (20)
- I am trying to install pyodbc in MacBook Pro M3 chip - arm64. The drivers are installed succesfully for odbc 13,17 and 18. But pyodbc is not able to detect the drivers.:
- I am trying to install pyodbc in MacBook Pro M3 chip - arm64. The drivers are installed succesfully for odbc 13,17 and 18. But pyodbc is not able to detect the drivers. ERROR: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 17 for SQL Server' : file not found (0) (SQLDriverConnect)") HOT 5
- Executing multiple queries HOT 1
- pyodbc.connect() gives an error when executing it with pytest HOT 1
- InterfaceError: Data source name not found with pyodbc despite working with isql HOT 8
- Multiple threads querying same table takes a long time HOT 19
- Timeout not being enforced in SQL query HOT 7
- How to use Federated credentials with service principal to auth the Azure resources HOT 7
- Ansi to Unicode conversion error (noob) HOT 9
- How to surface azure active directory service principal related errors HOT 3
- Do we need to close cursor in this case? HOT 9
- Connection pooling broken in 5.1.0 or 5.0.1 (with unixODBC 2.3.12)? HOT 3
- pyodbc.Connection' object has no attribute 'columns'
- Can't connect to Microsoft Access in 5.1.0 HOT 4
- Memory allocation error when inserting string of size 128 HOT 6
- SSMS shows "Restoring..." message after this restore command executed from pyodb/python3 HOT 3
- Stored Procedure with TVP input Returns Error Despite Schema and Type name in the Parameters HOT 10
- Error: ('HY000', '[HY000] [Microsoft][ODBC Microsoft Access Driver] Not a valid file name. HOT 2
- CI failing SQL Server: no sqlcmd HOT 6
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 pyodbc.