| Issue 60: | cannot import pyodbc at webapp application | |
| 1 person starred this issue and may be notified of changes. | Back to list |
*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
Labels:
-Type-Defect Type-Enhancement
Jul 15, 2009
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
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
(No comment was entered for this change.)
Status:
Invalid
Nov 21, 2010
(No comment was entered for this change.)
Status:
NoFix
|