My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 60: cannot import pyodbc at webapp application
1 person starred this issue and may be notified of changes. Back to list
Status:  NoFix
Owner:  ----
Closed:  Aug 2009


 
Reported by rin...@gmail.com, Jul 8, 2009
*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.
Jul 15, 2009
Project Member #1 mkleehammer
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?

Labels: -Type-Defect Type-Enhancement
Jul 15, 2009
Project Member #2 mkleehammer
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?

Jul 20, 2009
#3 rin...@gmail.com
Google Appengine doesn't allow to import relative database in your local server.
I solved the problem by not using google appengine. 

Thanks, 
Aug 7, 2009
Project Member #4 mkleehammer
(No comment was entered for this change.)
Status: Invalid
Nov 21, 2010
Project Member #5 mkleehammer
(No comment was entered for this change.)
Status: NoFix

Powered by Google Project Hosting