小编Cyr*_*ril的帖子

ImportError:没有名为jinja2的模块

使用google-app-engine教程,我收到以下错误堆栈消息:

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 84, in LoadObject
obj = __import__(path[0])
File "D:\Dev\SandBoxes\web\omaha\omaha.py", line 4, in <module>
import jinja2
ImportError: No module named jinja2
Run Code Online (Sandbox Code Playgroud)

即使我在app.yaml的库中声明它:

application: ***
version: 1
runtime: python27
api_version: 1
threadsafe: true

libraries:
- name: jinja2
  version: latest
- name: webapp2
  version: latest


handlers:
- url: /css …
Run Code Online (Sandbox Code Playgroud)

python google-app-engine python-2.7

26
推荐指数
4
解决办法
5万
查看次数

使用TortoiseHG https模式克隆时出现SSL版本错误

我在win7 64b上使用TortoiseHG来使用https协议克隆存储库.我已经安装并配置了公共证书,因此可以检查服务器证书的有效性.但是,我在尝试克隆时遇到以下错误:

% hg clone --verbose -- https://***/hg/Trainings/train-repo1 "c:\sandboxes\hg"
SSL error: wrong version number
[command returned code 255 Wed Nov 06 14:28:47 2013]
Run Code Online (Sandbox Code Playgroud)

我想我必须以某种方式配置Tortoise端支持的SSL版本,但无法在互联网上找到有关如何操作的资源.我正在寻找有关该主题的任何解释或文档.Tks!

注意:repo服务器强制我使用https,我无法控制它.(不能切换到ssh)

ssl mercurial tortoisehg windows-7

7
推荐指数
1
解决办法
1698
查看次数