djhenderson / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

cannot import pyodbc at webapp application #60

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
*What steps will reproduce the problem?
1. "import pyodbc" on the head  
2. in main():
cnxn = pyodbc.connect('DRIVER={SQL Native Client}; SERVER=x.X.x.x; 
DATABASE=foo;UID=boo;PWD=bo')

*What is the expected output? What do you see instead?
works well with the plain python module. But, doesn't work with google 
appengine- kind of CGI.
I got a massge 
"""
pyodbc undefined

<type 'exceptions.ImportError'>: No module named pyodbc
      args = ('No module named pyodbc',)
      message = 'No module named pyodbc' 
""""
What version of the product are you using? On what operating system?
python 2.5.4, google appengine 1.2.3 ,window xp professional

Please provide any additional information below.

Is it supposed to work within CGI/WSGI environments? 
If not, please let me know.
Thanks for your help.

Original issue reported on code.google.com by rin...@gmail.com on 8 Jul 2009 at 7:19

GoogleCodeExporter commented 9 years ago
Yes it works in CGI/WSGI.  An import error means that (1) pyodbc is not 
installed in
the right place (perhaps you have 2 versions of Python installed?) or (2) your
framework is not loading .pyd modules.

It may be that Google AppEngine doesn't allow binary modules.  Can you confirm 
that?

Original comment by mkleehammer on 15 Jul 2009 at 1:57

GoogleCodeExporter commented 9 years ago
Yes it works in CGI/WSGI.  An import error means that (1) pyodbc is not 
installed in
the right place (perhaps you have 2 versions of Python installed?) or (2) your
framework is not loading .pyd modules.

It may be that Google AppEngine doesn't allow binary modules.  Can you confirm 
that?

Original comment by mkleehammer on 15 Jul 2009 at 1:58

GoogleCodeExporter commented 9 years ago
Google Appengine doesn't allow to import relative database in your local server.
I solved the problem by not using google appengine. 

Thanks, 

Original comment by rin...@gmail.com on 20 Jul 2009 at 7:09

GoogleCodeExporter commented 9 years ago

Original comment by mkleehammer on 8 Aug 2009 at 2:46

GoogleCodeExporter commented 9 years ago

Original comment by mkleehammer on 21 Nov 2010 at 4:43