google-code-export / django-pyodbc

Automatically exported from code.google.com/p/django-pyodbc
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

IOError: zipimport: can not open file C:\Python26\lib\site-packages\pyodbc-2.1.6 #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Install latest django (1.1.1), pyodbc and other stuff according to 
instructions on http://code.google.com/p/django-pyodbc/ on windows using 
easy_install
2. Run django using "isapi-wsgi" http://code.google.com/p/isapi-wsgi/

What is the expected output? What do you see instead?
When running django using manage.py from development server working with 
DB is ok.
When running under isapi-wsgi I got this error:

D:\django\proj1>python -m win32traceutil
Collecting Python Trace Output...
  File "build\bdist.win32\egg\wsgiref\handlers.py", line 92, in run
    response = self.get_response(request)
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\core
\handler
s\base.py", line 73, in get_response
    response = middleware_method(request)
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\contrib
\sess
ions\middleware.py", line 10, in process_request
    engine = import_module(settings.SESSION_ENGINE)
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\utils
\import
lib.py", line 35, in import_module
    __import__(name)
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\contrib
\sess
ions\backends\db.py", line 2, in <module>
    from django.contrib.sessions.models import Session
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\contrib
\sess
ions\models.py", line 4, in <module>
    from django.db import models
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\db
\__init__.
py", line 41, in <module>
    backend = load_backend(settings.DATABASE_ENGINE)
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\db
\__init__.
py", line 22, in load_backend
    return import_module('.base', backend_name)
  File "C:\Python26\lib\site-packages\django-1.1.1-py2.6.egg\django\utils
\import
lib.py", line 35, in import_module
    __import__(name)
  File "C:\Python26\lib\site-packages\sql_server\pyodbc\base.py", line 6, 
in <mo
dule>
    import pyodbc as Database
IOError: zipimport: can not open file C:\Python26\lib\site-packages
\pyodbc-2.1.6
-py2.6-win32.egg
Ctrl+C

Original issue reported on code.google.com by Person...@gmail.com on 30 Dec 2009 at 10:02

GoogleCodeExporter commented 9 years ago
NOT related to "django-pyodbc"

Was windows security issue, helped to change application pool account to 
LocalService.

Original comment by Person...@gmail.com on 30 Dec 2009 at 10:07

GoogleCodeExporter commented 9 years ago

Original comment by vcc.ch...@gmail.com on 24 Jan 2010 at 8:09