#14827: pyodbc can no longer connect after wx.PyApp._BootstrapApp

9 views
Skip to first unread message

wxTrac

unread,
Nov 14, 2012, 8:30:42 AM11/14/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14827>

#14827: pyodbc can no longer connect after wx.PyApp._BootstrapApp
--------------------------------+-------------------------------------------
Reporter: bouke | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxPython | Version: 2.9.4
Keywords: pyodbc osx freetds | Blockedby:
Patch: 0 | Blocking:
--------------------------------+-------------------------------------------
We are working with a MS SQL 2012 server. Connecting to the server from
OSX is no problem from a simple script. However, as soon as a wx.App is
initialized, connecting is no longer possible. The problem seems to be in
the C code; when I remove the call to ``self._BootstrapApp()``, connecting
is still possible.

{{{
import wx
import pyodbc

config = "Server=[ip];"\
"UID=sa;"\
"PWD=[pwd];"\
"DATABASE=[db];"\
"Driver=/usr/local/lib/libtdsodbc.so;"\
"TDS_VERSION=8.0;"\
"PORT=1433;"

class MyApp(wx.App): pass

# works
pyodbc.connect(config)

MyApp()

# fails
pyodbc.connect(config)
}}}

Both pyodbc 2.1.11 and 3.0.6 have this issue. FreeTDS version 0.91
installed using homebrew. WXMAC also installed using homebrew.


--
Ticket URL: <http://trac.wxwidgets.org/ticket/14827>

wxTrac

unread,
Nov 14, 2012, 8:31:04 AM11/14/12
to wx-...@googlegroups.com
Ticket URL: <http://trac.wxwidgets.org/ticket/14827#comment:1>

#14827: pyodbc can no longer connect after wx.PyApp._BootstrapApp
--------------------------------+-------------------------------------------
Reporter: bouke | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxPython | Version: 2.9.4
Keywords: pyodbc osx freetds | Blockedby:
Patch: 0 | Blocking:
--------------------------------+-------------------------------------------
Changes (by bouke):

* cc: bouke@… (added)



--
Ticket URL: <http://trac.wxwidgets.org/ticket/14827#comment:1>

wxTrac

unread,
Jul 24, 2015, 11:23:21 PM7/24/15
to wx-...@googlegroups.com
#14827: pyodbc can no longer connect after wx.PyApp._BootstrapApp
-----------------------+--------------------------------
Reporter: bouke | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: wxPython | Version: 2.9.4
Resolution: | Keywords: pyodbc osx freetds
Blocked By: | Blocking:
Patch: 0 |
-----------------------+--------------------------------

Comment (by oneeyeman):

Would be nice to know what was the problem and if its a runtime whether it
can be traced by {unix|i}ODBC tracing or freeTDS tracing.

--
Ticket URL: <http://trac.wxwidgets.org/ticket/14827#comment:2>
Reply all
Reply to author
Forward
0 new messages