在Windows中安装Sympy Gamma

时间:2014-04-27 17:52:48

标签: sympy

过去两天我一直在尝试在Windows中安装Sympy Gamma,但是有些问题阻止了它的运行。我做了以下事情

  
      
  1. 已安装python 2.7
  2.   
  3. http://code.google.com/appengine/downloads.html
  4. 下载并解压缩最新的Google App Engine SDK for Python   
  5. 克隆的sympy_gamma存储库(git clone git://github.com/sympy/sympy_gamma.git,cd sympy_gamma,git   submodule init,git submodule update)
  6.   
  7. 安装了PIP,PIL,docutils和Django
  8.   
  9. 运行开发网络服务器($ ../google_appengine/dev_appserver.py。)
  10.   

我把控制台作为

INFO     2014-04-27 22:55:46,936 sdk_update_checker.py:242] Checking for updates to the SDK.
INFO     2014-04-27 22:55:49,645 sdk_update_checker.py:286] This SDK release is newer than the advertise
INFO     2014-04-27 22:55:49,809 api_server.py:171] Starting API server at: http://localhost:51944
INFO     2014-04-27 22:55:49,813 dispatcher.py:182] Starting module "default" running at: http://localho
INFO     2014-04-27 22:55:49,816 admin_server.py:117] Starting admin server at: http://localhost:8000

但是当我尝试http://localhost:8080/时,会出现一个空白屏幕,控制台日志会出现,如下所示

ERROR    2014-04-27 17:33:09,907 base.py:209] Internal Server Error: /
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\handlers\base.py", line 101, in get_response
    request.path_info)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\urlresolvers.py", line 252, in resolve
    sub_match = pattern.resolve(new_path)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\urlresolvers.py", line 158, in resolve
    return ResolverMatch(self.callback, args, kwargs, self.name)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\urlresolvers.py", line 164, in _get_callback
    self._callback = get_callable(self._callback_str)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\utils\functional.py", line 124, in wrapper
    result = func(*args)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\utils\importlib.py", line 35, in import_module
    __import__(name)
  File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\views.py", line 16, in <module>
    import settings
  File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\settings.py", line 1
    ../settings.py
    ^
SyntaxError: invalid syntax
ERROR    2014-04-27 17:33:09,926 wsgi.py:278]
Traceback (most recent call last):
  File "C:\Program Files (x86)\Google\google_appengine\google\appengine\runtime\wsgi.py", line 266, in Handle
    result = handler(dict(self._environ), self._StartResponse)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\handlers\wsgi.py", line 272, in __call__
    response = self.get_response(request)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\handlers\base.py", line 169, in get_response
    response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\handlers\base.py", line 217, in handle_uncaught_exceptio
    callback, param_dict = resolver.resolve500()
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\urlresolvers.py", line 303, in resolve500
    return self._resolve_special('500')
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\urlresolvers.py", line 295, in _resolve_special
    return get_callable(callback), {}
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\utils\functional.py", line 124, in wrapper
    result = func(*args)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\core\urlresolvers.py", line 91, in get_callable
    lookup_view = getattr(import_module(mod_name), func_name)
  File "C:\Program Files (x86)\Google\google_appengine\lib\django-1.3\django\utils\importlib.py", line 35, in import_module
    __import__(name)
  File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\views.py", line 16, in <module>
    import settings
  File "C:\Program Files (x86)\Google\google_appengine\sympy_gamma\app\settings.py", line 1
    ../settings.py
    ^
SyntaxError: invalid syntax
INFO     2014-04-27 23:03:09,969 module.py:627] default: "GET / HTTP/1.1" 500 -
INFO     2014-04-27 23:03:10,065 module.py:627] default: "GET /favicon.ico HTTP/1.1" 304 -
INFO     2014-04-27 23:03:10,069 module.py:627] default: "GET /favicon.ico HTTP/1.1" 304 -

如果你知道为什么会出现这个错误,请你帮助我吗?

2 个答案:

答案 0 :(得分:0)

谢谢,我修复了这个错误。

我更换了google_appengine \ sympy_gamma \ app \ settings.py 使用google_appengine \ sympy_gamma \ settings.py

答案 1 :(得分:0)

有一个指向sympy_gamma / app / settings.py的链接为sympy_gamma / settings.py,如果它首先不存在,那么在克隆/下载时会出现问题。它位于sympy_gamma的存储库中。