File
"C:\\Python27\\lib\\site-packages\\django-1.3.1-py2.7.egg\\django\\core\\handlers\\wsgi.py", line
250,
in __call__, referer:
self.load_middleware(), referer:
File
"C:\\Python27\\lib\\site-packages\\django-1.3.1-py2.7.egg\\django\\core\\handlers\\base.py", line
47,
in load_middleware, referer: raise exceptions.ImproperlyConfigured('
Error importing middleware
%s:
"%s"'
% (mw_module, e)), referer: ImproperlyConfigured:
Error importing middleware reviewboard.admin.middleware:
"cannot import name Random",
python setup.py build -c mingw32
Traceback (most recent call last):
File "setup.py", line 452, in <module>
core.setup(**kw)
File "C:\Python27\lib\distutils\core.py", line 152, in setup
dist.run_commands()
File "C:\Python27\lib\distutils\dist.py", line 953, in run_commands
self.run_command(cmd)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "C:\Python27\lib\distutils\command\build.py", line 127, in run
self.run_command(cmd_name)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 247, in run
self.run_command(cmd_name)
File "C:\Python27\lib\distutils\cmd.py", line 326, in run_command
self.distribution.run_command(command)
File "C:\Python27\lib\distutils\dist.py", line 972, in run_command
cmd_obj.run()
File "setup.py", line 269, in run
raise RuntimeError("chmod error")
RuntimeError: chmod error
又翻遍了GOOGLE之后,有人提示说要装ActivePerl。切记注意配置环境变量,把ActivePerl的路径放在Mingw之前。
再执行
python setup.py build -c mingw32python setup.py bdist_wininst
error
: Unable to
find vcvarsall.bat
[build]
compiler
=mingw32
FORCE_SCRIPT_NAME = "/review/"
为方便大家,我把我编译的安装包放上来。(Python 2.7版本)
Pycrypto2.2安装包