简体   繁体   English

python-3.x出现错误的hyde

[英]Error hyde with python-3.x

I followed ( https://github.com/hyde/hyde ) and installed all requirements.txt using the command "hyde-s folder_name create-l starter "error occurs: 我遵循( https://github.com/hyde/hyde )并使用命令“ hyde-s folder_name create-l starter”安装了所有requirements.txt发生错误:

Traceback (most recent call last):
   File "C: \ Python33 \ Scripts \ hyde-script.py", line 9, in <module>
     load_entry_point ('== 0.8.4 hyde', 'console_scripts', 'hyde') ()
   File "C: \ Python33 \ lib \ site-packages \ hyde \ main.py", line 10, in main
     Engine (.) Run ()
   File "C: \ Python33 \ lib \ site-packages \ hyde \ engine.py", line 39, in run
     super (Engine, self). run (args)
   File "C: \ Python33 \ lib \ site-packages \ command \ application.py", line 252, in run
     self.parse args = (sys.argv [1:])
   File "C: \ Python33 \ lib \ site-packages \ command \ application.py", line 242, in parse
     self.__parser__.parse_args return () # pylint: disable-msg = E1101
AttributeError: 'Engine' object has no attribute '__parser__'

I saw the argparse that was installed has a "parse_args () ( http://argparse.googlecode.com/svn/trunk/doc/parse_args.html )" tried unsuccessfully to adapt more. 我看到已安装的argparse尝试了“ parse_args()( http://argparse.googlecode.com/svn/trunk/doc/parse_args.html )”,但尝试失败。

Before I had to do a few adjustments example "from UserDict import IterableUserDict" as in "python 3x" has ( http://docs.python.org/3.3/library/collections.html?highlight=userdict#collections.UserDict ). 在进行一些调整之前,“ python 3x”中的示例“从UserDict导入IterableUserDict”具有( http://docs.python.org/3.3/library/collections.html?highlight=userdict#collections.UserDict )。

我测试了两个静态站点生成器,可以说NikolaPelican是与Python 3.3.2一起使用时最稳定的

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM