如何用 KindleEar 推送无 RSS 的网站内容(上篇)

“Kindle推送”相关阅读

给这篇文章写一条留言

提示:带 * 标记的是必填项。您填写的邮箱地址将会被保密。首次留言将会在通过人工审核后显示。如果是提出问题,请务必提供尽可能多信息,这有助于他人更好地理解你所提出的问题。

小伙伴们写下了 72 条留言

  1. 請問這個方法是不是已經失效了 google sdk 跟python2.7的版本不兼容 還有辦法嗎

  2. 您好
    我在打开http://localhost:8080时控制台出现以下内容

    E:\KindleEar-master\KindleEar-master>dev_appserver.py ./app.yaml ./module-worker.yaml
    INFO     2020-10-18 13:47:35,727 devappserver2.py:289] Skipping SDK update check.
    WARNING  2020-10-18 13:47:36,453 simple_search_stub.py:1198] Could not read search indexes from c:\users\admini~1\appdata\local\temp\appengine.kindleear\search_indexes
    INFO     2020-10-18 13:47:36,457 api_server.py:282] Starting API server at: http://localhost:2134
    INFO     2020-10-18 13:47:36,470 dispatcher.py:267] Starting module "default" running at: http://localhost:8080
    INFO     2020-10-18 13:47:36,502 dispatcher.py:267] Starting module "worker" running at: http://localhost:8081
    INFO     2020-10-18 13:47:36,505 admin_server.py:150] Starting admin server at: http://localhost:8000
    INFO     2020-10-18 13:47:38,992 instance.py:294] Instance PID: 10924
    WARNING  2020-10-18 05:47:51,750 sandbox.py:1105] The module msvcrt is whitelisted for local dev only. If your application relies on msvcrt, it is likely that it will not function properly in production.
    WARNING  2020-10-18 05:47:51,813 sandbox.py:1105] The module _winreg is whitelisted for local dev only. If your application relies on _winreg, it is likely that it will not function properly in production.
    WARNING  2020-10-18 05:47:52,762 __init__.py:40] Book 'Aisixiang' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,769 __init__.py:40] Book 'Dapenti' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,776 __init__.py:40] Book 'Economist' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,782 __init__.py:40] Book 'FTChinese' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,788 __init__.py:40] Book 'Lifeweek' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,793 __init__.py:40] Book 'nfzm' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,805 __init__.py:40] Book 'TEDxBohaiBay' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,813 __init__.py:40] Book 'Xueqiu' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,828 __init__.py:40] Book 'ZhihuDaily' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,884 __init__.py:40] Book 'biquge.DaWang' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,891 __init__.py:40] Book 'biquge.JianLing' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,898 __init__.py:40] Book 'biquge.JianTu' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,904 __init__.py:40] Book 'biquge.NiLiu' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,911 __init__.py:40] Book 'biquge.XiuZhen' import failed : No module named lxml.etree
    WARNING  2020-10-18 05:47:52,921 __init__.py:40] Book 'cn3k5.WenDing' import failed : No module named lxml.etree
    ERROR    2020-10-18 05:47:53,032 wsgi.py:269]
    Traceback (most recent call last):
      File "D:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\runtime\wsgi.py", line 240, in Handle
        handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
      File "D:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\runtime\wsgi.py", line 311, in _LoadHandler
        handler, path, err = LoadObject(self._handler)
      File "D:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\google_appengine\google\appengine\runtime\wsgi.py", line 96, in LoadObject
        __import__(cumulative_path)
      File "E:\KindleEar-master\KindleEar-master\apps\module_front.py", line 47, in 
        from apps.View import *
      File "E:\KindleEar-master\KindleEar-master\apps\View\__init__.py", line 14, in 
        module = loader.find_module(name).load_module(name)
    INFO     2020-10-18 13:47:53,061 module.py:865] default: "GET / HTTP/1.1" 500 -
      File "D:\Program Files (x86)\Google\Cloud SDK\google-cloud-sdk\platform\bundledpython2\lib\pkgutil.py", line 246, in load_module
        mod = imp.load_module(fullname, self.file, self.filename, self.etc)
      File "E:\KindleEar-master\KindleEar-master\apps\View\Adv.py", line 14, in 
        from PIL import Image
    ImportError: No module named PIL

    但是在控制台查看安装了哪些包时提示了一下内容

    C:\Users\Administrator>pip list
    DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support pip 21.0 will remove support for this functionality.
    Package    Version
    ---------- -------
    Jinja2     2.11.2
    lxml       4.6.0
    MarkupSafe 1.1.1
    Pillow     6.2.2
    pip        20.2.3
    pycrypto   2.6.1
    setuptools 41.2.0

    不知道为什么已经安装了这些包还提示错误?

  3. 请问出现以下错误是怎么回事啊。

    C:\Users\vipde>cd D:\KindleEar
    C:\Users\vipde>dev_appserver.py .\app.yaml .\module-worker.yaml
    Traceback (most recent call last):
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\dev_appserver.py", line 96, in 
        _run_file(__file__, globals())
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\dev_appserver.py", line 90, in _run_file
        execfile(_PATHS.script_file(script_name), globals_)
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 613, in 
        main()
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 601, in main
        dev_server.start(options)
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\devappserver2.py", line 277, in start
        env_variables=parsed_env_variables)
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\application_configuration.py", line 940, in __init__
        env_variables)
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\application_configuration.py", line 139, in __init__
        self._config_path)
      File "D:\google cp\google-cloud-sdk\platform\google_appengine\google\appengine\tools\devappserver2\application_configuration.py", line 501, in _parse_configuration
        with open(configuration_path) as f:
    IOError: [Errno 2] No such file or directory: '.\\app.yaml'