首页 > 解决方案 > Python google cloud appengine requirements.txt 加载/python 文件不再工作

问题描述

我的项目曾经在我的 Requirement.txt 中正确推送而没有错误,但自 2018 年 11 月 23 日起我无法推送

使用或不使用端点,使用 gcloud app deploy

我确定它曾经可以工作,因为我使用 git 跟踪版本

Step #1: [0m[91mNo matching distribution found for python-files==0.0.4 (from -r requirements.txt (line 135)) 
Step #1: The command '/bin/sh -c pip install -r requirements.txt' returned a non-zero code: 1 

当我从我的要求中删除 python-files==0.0.4 时,它会在 load==0.0.1 上阻塞,并出现相同的错误

当我删除它们两个时,我会收到此错误,因为负载很重要

import_app
    __import__(module)
  File "/home/vmagent/app/main.py", line 30, in <module>
    from load import *
ModuleNotFoundError: No module named 'load'
[2018-11-27 16:09:53 +0000] [7] [INFO] Worker exiting (pid: 7)
[2018-11-27 16:09:53 +0000] [1] [INFO] Shutting down: Master
[2018-11-27 16:09:53 +0000] [1] [INFO] Reason: Worker failed to boot.

这里有什么意义!我找不到那个逻辑

标签: pythongoogle-app-enginerequirements.txt

解决方案


至少对我来说不再需要python-files库(python 3)

对于负载, 2018年 12 月 12 日发布了一个新版本

对于我的问题,我所做的只是删除 unsed 代码 from load import *


推荐阅读