Coder Social home page Coder Social logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Issue 23 has been merged into this issue.

Original comment by [email protected] on 3 Sep 2013 at 5:53

from pypyodbc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Hi,

Any updates on this issue?

Original comment by [email protected] on 6 Sep 2013 at 2:41

from pypyodbc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
Hi, Please try version 1.2.0.

Original comment by [email protected] on 21 Sep 2013 at 11:28

  • Changed state: Started

from pypyodbc.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
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.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 20, 2024
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)

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.