Coder Social home page Coder Social logo

Comments (9)

cdhigh avatar cdhigh commented on July 28, 2024

我就是用这个方法的,具体什么错误?

from kindleear.

dmiming2000 avatar dmiming2000 commented on July 28, 2024

Traceback (most recent call last):
File "/home/ihadoop/kindleear/tools/archive_builtin_recipes.py", line 16, in
import main
File "/home/ihadoop/kindleear/main.py", line 43, in
app = init_app(name, cfgMap, set_env, debug=False)
File "/home/ihadoop/kindleear/application/init.py", line 35, in init_app
from .back_end.task_queue_adpt import init_task_queue_service
File "/home/ihadoop/kindleear/application/back_end/task_queue_adpt.py", line 9, in
from .task_queue_gae import *
File "/home/ihadoop/kindleear/application/back_end/task_queue_gae.py", line 10, in
from google.cloud import tasks_v2
ImportError: cannot import name 'tasks_v2' from 'google.cloud' (unknown location)

from kindleear.

cdhigh avatar cdhigh commented on July 28, 2024

不管是在本机还是远程shell,都需要先安装运行环境。
sudo pip3 install -r requirements.txt

注:你正在操作的gae的shell是独立的开发环境,不是你的应用的最终运行环境,所以不要搞混了。

from kindleear.

dmiming2000 avatar dmiming2000 commented on July 28, 2024

前面是已经安装过了的,安装完之后报的这个错;
重新安装了一把,好像可以成功执行了。
另,确实是在gae的shell环境下操作的,这个操作完成之后,还需要怎么更新呢。
chmod +x kindleear/tools/gae_deploy.sh &&
kindleear/tools/gae_deploy.sh
这样重新部署一次就可以了吧

from kindleear.

dmiming2000 avatar dmiming2000 commented on July 28, 2024

问题来了,更新完成之后,web界面里看到的recipe代码也是更新的。
但通过系统推送,显示“nonews”
以 The Economist Espresso为例,通过ebook-convert手工执行这个recipe确认没问题。

from kindleear.

cdhigh avatar cdhigh commented on July 28, 2024

要养成看后台logs来定位问题的习惯

from kindleear.

dmiming2000 avatar dmiming2000 commented on July 28, 2024

后台logs里没什么报错,就是推送时显示“nonews”
看代码是更新到了,推送其他recipe倒是没问题

from kindleear.

cdhigh avatar cdhigh commented on July 28, 2024

后台有报错,是429错误,应该是GAE的IP策略不允许调用 https://webcache.googleusercontent.com ,因为在本机是可以的,在VPS也是可以的。
新的recipe和老的recipe相比,就是使用google的cache直接获取printversion,只有这个区别,老版本就可以使用,不需要使用新版本。

如果只有个别recipe需要更新,不需要更新到内置库,直接使用网页上传功能更便捷。

from kindleear.

dmiming2000 avatar dmiming2000 commented on July 28, 2024

from kindleear.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.