Comments (9)
Accepted. I will look into this issue during weekends.
Original comment by [email protected]
on 2 May 2013 at 1:34
- Changed state: Accepted
from pypyodbc.
Got into the same error with SQL Server 2008R2. But i still managed to work on
my laptop with the very same SQL Server 2008R2 and winpython 3.3.0-32bit
installed. Checking for difference between my notebook and the server online
ODBC configuration and found that if, at the end of ODBC connection config, i
uncheck the box that force for regional preferences, it would work.
Original comment by [email protected]
on 23 May 2013 at 11:57
from pypyodbc.
Issue 23 has been merged into this issue.
Original comment by [email protected]
on 3 Sep 2013 at 5:53
from pypyodbc.
Hi,
Any updates on this issue?
Original comment by [email protected]
on 6 Sep 2013 at 2:41
from pypyodbc.
I just update the source in GitHub , I think it can solve the connection
problem, but not sure if date, time, datetime types can function normally with
this version.
You can download this latest version from:
https://github.com/jiangwen365/pypyodbc/raw/master/pypyodbc.py
Original comment by [email protected]
on 8 Sep 2013 at 3:25
from pypyodbc.
Hi, Please try version 1.2.0.
Original comment by [email protected]
on 21 Sep 2013 at 11:28
- Changed state: Started
from pypyodbc.
Version 1.2.0 resolved my issue (#23); thanks for the update!
Original comment by [email protected]
on 25 Sep 2013 at 5:25
from pypyodbc.
As an update, I can now connect to the database but am still receiving this
error randomly while performing fetches. The new traceback is:
Traceback (most recent call last):
File "/data01/python/wins_legacy/e2e/usage_gatherer.py", line 279, in <module>
usage_mon.daemonize()
File "/data01/python/wins_legacy/e2e/usage_gatherer.py", line 99, in daemonize
method()
File "/data01/python/wins_legacy/e2e/usage_gatherer.py", line 126, in usage_gather
medusa_data = self.mssql.query(_med_query)
File "/data01/python/wins_legacy/db_core/mssql.py", line 66, in query
for row in self.cursor.fetchall():
File "/opt/pypy-2.1/site-packages/pypyodbc-1.2.0-py2.7.egg/pypyodbc.py", line 1762, in fetchall
row = self.fetchone()
File "/opt/pypy-2.1/site-packages/pypyodbc-1.2.0-py2.7.egg/pypyodbc.py", line 1805, in fetchone
value_list.append(buf_cvt_func(alloc_buffer.value))
ValueError: invalid literal for int() with base 10: ''
I noticed that you have a print statement above this line; I added some logging
for those values (col_name, target_type, alloc_buffer.value) so maybe the log
can provide some insight on what is happening here. This is an intermittent
issue, I'm thinking it's due to some blank data in the database. I'll get back
to you when I have some data.
Original comment by [email protected]
on 26 Sep 2013 at 4:21
from pypyodbc.
It seems that my hypothesis was correct, this is occurring on blank int/float
cols. My fix was to add a try/except for a ValueError, appending None to the
value_list for blank data. I have attached a patch that resolves this issue as
I did not see a way to send a pull request.
Original comment by [email protected]
on 2 Oct 2013 at 8:58
Attachments:
from pypyodbc.
Related Issues (20)
- Description attribute returns only first char of name (as byte) using Oracle ODBC & Linux HOT 2
- Trimmed varchar results.
- Column names get wonky on 64-bit system using iSeries DB2 driver HOT 3
- Oracle and Decimal_cvt issue
- IronPython 2.7 StopIteration exception raised when retrieving SQL data set
- "invalid literal" exceptions querying empty numeric fields when using LinuxODBC with FreeTDS
- use mbdtools,chinese character encoded by gb charset can't access correctly
- Passing datetime.date returns TypeError: Wrong Type HOT 2
- Mapping bigint in sqlserver 2008 into float, instead of int in python3
- Bad cursor description (mixed bytes and strings) on Ubuntu 14.04 HOT 2
- Row objects don't raise KeyError for invalid fields
- Data source name not found on linux + unixodbc + as400 iseries driver HOT 1
- Cannot access column names by attribute HOT 4
- pypyodbc doesn't support the MSSQL datetimeoffset column type.
- state = err_list[0][0] Index out of range
- UnicodeDecodeError because UTF-16 surrogate pairs are not handled HOT 1
- Enhancement: Support for lists as SQL parameters
- executemany is very slow
- Sage Line 100 Odbc connect KO HOT 1
- Not working on Windows 7 64 bit 3.4.3
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 pypyodbc.