Python中的Google Cloud函数在部署时出错

Python中的Google Cloud函数在部署时出错,python,python-3.x,google-cloud-platform,google-cloud-functions,Python,Python 3.x,Google Cloud Platform,Google Cloud Functions,我正在尝试配置谷歌云功能,以便在触发该功能时下订单。 我在requirements.txt文件中提到了kiteconnect 但该功能没有得到部署。抛出错误“未知资源类型” 完整错误消息: Deployment failure: Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`pip_download_wheels` had stderr output:\nCommand \"pyth

我正在尝试配置谷歌云功能,以便在触发该功能时下订单。 我在
requirements.txt
文件中提到了
kiteconnect
但该功能没有得到部署。抛出错误“未知资源类型”

完整错误消息:

Deployment failure: Build failed: {"error": {"canonicalCode": "INVALID_ARGUMENT", "errorMessage": "`pip_download_wheels` had stderr output:\nCommand \"python setup.py egg_info\" failed with error code 1 in /tmp/pip-wheel-97dghcl9/logging/\n\nerror: `pip_download_wheels` returned code: 1", "errorType": "InternalError", "errorId": "67DBDBF3"}}
有没有人有处理过在zerodah上下交易单的云功能的经验

以下是我尝试过的函数:

导入日志
从kiteconnect导入kiteconnect
logging.basicConfig(级别=logging.DEBUG)
kite=KiteConnect(api_key=“xxxxxxxxxxxxxxxxxxxxxxxx”)
#将用户重定向到获得的登录url
#从kite.login_url(),并接收请求\u令牌
#从登录流后注册的重定向url。
#获得请求\u令牌后,获取访问\u令牌
#具体如下。
data=kite.generate_会话(“xxxxxxxxxxxxxxxxxxxxxxxxx”,secret=“xxxxxxxxxxxxxxxxxxxxxxxxxx”)
kite.set_access_令牌(数据[“XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX”])
#下单
def orderPlace():
订单号=kite.place\u订单(
多样性=风筝。多样性\常规,
exchange=kite.exchange\u NSE,
tradingsymbol=“INFY”,
交易类型=kite.transaction类型购买,
数量=1,
product=kite.product\U CNC,
订单类型=风筝。订单类型市场
)
logging.info(“Order placed.ID为:{}”。格式(Order\u ID))
例外情况除外,如e:
logging.info(“下单失败:{}”.format(e.message))
requirements.txt文件的内容:

# Function dependencies, for example:
# package>=version
kiteconnect

该错误表示您的一个依赖项是可卸载的

看起来,
kiteconnect
依赖项当前与Python 3.7不兼容,Python 3.7是云函数在其运行时使用的Python版本:


您需要等待维护人员发布与Python 3.7兼容的新版本。

始终将完整的错误消息(从单词“Traceback”开始)作为文本(而不是屏幕截图)进行讨论(而不是注释)。还有其他有用的信息。谢谢。但没有回溯的错误消息。我可以在日志中看到以下内容:2019-11-05 12:40:02.628 IST Cloud Functions UpdateFunction us central:pl_ordxxxxxxxxxxxxxxx@gmail.com无效的\u参数还发现以下内容:部署失败:生成失败:{“错误”:{“规范代码”:“无效的\u参数”,“错误消息”:“
pip\u下载\u控制盘”
had stderr输出:\n命令\”python setup.py egg_info \“失败,错误代码为/tmp/pip-wheel-97dgcl9/logging/\n\n错误:
pip_download_wheels
返回代码:1”,“errorType:“InternalError”,“errorId:“67dbf3”}所有日志消息都有问题-它们将更具可读性。其他人也会看到他们。他们可能会跳过评论。请添加requirements.txt文件的内容。你在本地测试过这段代码吗?谢谢你的回答。看来这就是问题所在。让我和维修人员确认一下,然后回到这里。