Skip to content
This repository was archived by the owner on Apr 24, 2021. It is now read-only.
This repository was archived by the owner on Apr 24, 2021. It is now read-only.

Sample does not run locally on Windows 7 #2

Open
@devlance

Description

@devlance

Line27 in the myproject/wsgi.py seems to be the offending line.

Logging:

2014-05-09 17:57:19 Running command: "['C:\\Python27\\python.exe', 'C:\\Program Files (x86)\\Google\\google_appengine\\dev_appserver.py', '--skip_sdk_update_check=yes', '--port=8080', '--admin_port=8001', u'C:\\Users\\Brett\\workspace\\brettstestcloud']"
INFO     2014-05-09 17:57:29,355 devappserver2.py:765] Skipping SDK update check.
WARNING  2014-05-09 17:57:29,392 api_server.py:374] Could not initialize images API; you are likely missing the Python "PIL" module.
WARNING  2014-05-09 17:57:29,400 simple_search_stub.py:1070] Could not read search indexes from c:\users\brett\appdata\local\temp\appengine.brettstestcloud\search_indexes
INFO     2014-05-09 17:57:29,430 api_server.py:171] Starting API server at: http://localhost:61587
INFO     2014-05-09 17:57:29,443 dispatcher.py:182] Starting module "default" running at: http://localhost:8080
INFO     2014-05-09 17:57:29,454 admin_server.py:117] Starting admin server at: http://localhost:8001
ERROR    2014-05-10 00:57:57,280 wsgi.py:262] 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 239, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 298, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 95, in LoadObject
    __import__(cumulative_path)
  File "C:\Users\Brett\workspace\brettstestcloud\myproject\wsgi.py", line 27, in <module>
    from django.core.wsgi import get_wsgi_application
ImportError: No module named wsgi
INFO     2014-05-09 17:57:57,322 module.py:627] default: "GET / HTTP/1.1" 500 -
ERROR    2014-05-10 00:57:58,519 wsgi.py:262] 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 239, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 298, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 95, in LoadObject
    __import__(cumulative_path)
  File "C:\Users\Brett\workspace\brettstestcloud\myproject\wsgi.py", line 27, in <module>
    from django.core.wsgi import get_wsgi_application
ImportError: No module named wsgi
INFO     2014-05-09 17:57:58,536 module.py:627] default: "GET / HTTP/1.1" 500 -
ERROR    2014-05-10 00:57:58,648 wsgi.py:262] 
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 239, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 298, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 95, in LoadObject
    __import__(cumulative_path)
  File "C:\Users\Brett\workspace\brettstestcloud\myproject\wsgi.py", line 27, in <module>
    from django.core.wsgi import get_wsgi_application
ImportError: No module named wsgi

I verified that this problem does not occur for the same project on my Mac. Difference in environment? I thought the library path for Django would be provided within the dev_appserver environment with no extra configuration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions