我无法在PyPandoc

时间:2015-07-12 21:24:56

标签: python oauth blogger blogspot

以前我使用过googlecl,但由于身份验证问题,谷歌放弃了OAuth1支持等等,它不再起作用了。然后我尝试使用EasyBlogger脚本从命令行发布博客帖子,但事实证明它非常棘手:http://blog.rraghur.in/p/blog-page.html

我只是按照该页面上的步骤操作。首先,我必须安装一个名为Pandoc的软件包。我花了大约3个星期才找到如何安装它。最后我设法将它安装为我的Arch Linux盒子的pandoc-static软件包。不幸的是,easyblogger脚本仍然无法正常工作,但我还从github安装了一个名为pypandoc的软件包:

当我使用python2运行它时,我收到错误消息:

Traceback (most recent call last):
  File "/usr/bin/easyblogger", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3074, in <module>
    @_call_aside
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3060, in _call_aside
    f(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 3087, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 645, in _build_master
    ws.require(__requires__)
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 946, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 833, in resolve
    raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'pypandoc' distribution was not found and is required by EasyBlogger

当我使用python3运行它时,我收到不同的错误消息:

Traceback (most recent call last):
  File "/usr/bin/easyblogger", line 9, in <module>
    load_entry_point('EasyBlogger==0.9.0', 'console_scripts', 'easyblogger')()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 558, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2682, in load_entry_point
    return ep.load()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2355, in load
    return self.resolve()
  File "/usr/lib/python3.4/site-packages/pkg_resources/__init__.py", line 2361, in resolve
    module = __import__(self.module_name, fromlist=['__name__'], level=0)
  File "/usr/lib/python3.4/site-packages/EasyBlogger-0.9.0-py3.4.egg/blogger/__init__.py", line 1, in <module>
ImportError: cannot import name 'EasyBlogger'

我真的需要一些博主脚本,因为我的所有博客现在已经无序了大约2个月。

0 个答案:

没有答案