由于找不到满足要求 setuptools>=40.8 的版本,apache beam 2.19.0 不再在云数据流上运行 [英] apache beam 2.19.0 not running on cloud dataflow anymore due to Could not find a version that satisfies the requirement setuptools>=40.8

查看:47
本文介绍了由于找不到满足要求 setuptools>=40.8 的版本,apache beam 2.19.0 不再在云数据流上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天后,我们的 Python 数据流作业导致工作器启动时出错:

Since a few days our python dataflow jobs result in an error on worker startup:

"ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 
(from versions: none)"

ERROR: Command errored out with exit status 1: /usr/local/bin/python3 
/usr/local/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix 
/tmp/pip-build-env-qz0ogm1p/overlay --no-warn-script-location --no-binary :none: --only-binary
 :none: --no-index --find-links /var/opt/google/dataflow -- 'setuptools>=40.8.0' wheel Check the 
logs for full command output.

这似乎不是 requirements.txt 的问题,它们是:

This seems to not be an issue with the requirements.txt, which are:

ua-parser
numpy
pandas
Deprecated

有没有人遇到过这个问题,也许有解决方案?我确实尝试设置特定的 setuptools 版本 (46.1.3),这导致了另一个错误:

Did anyone come across this and maybe a solution? I did try to set a specific setuptools version (46.1.3) which resulted in another error:

ERROR: Could not find a version that satisfies the requirement wheel (from versions: none)

"ERROR: Command errored out with exit status 1: /usr/local/bin/python3 
/usr/local/lib/python3.5/site-packages/pip install --ignore-installed --no-user --prefix 
/tmp/pip-build-env-2awl4fw3/overlay --no-warn-script-location --no-binary :none: --only-binary 
:none: --no-index --find-links /var/opt/google/dataflow -- 'setuptools>=40.8.0' wheel Check the
 logs for full command output." 

谢谢

推荐答案

我遇到了和你一样的问题.为了修复它,我在 requirements.txt 中添加了 setuptools 并确保它在 apache-beam 之前被订购.

I had the same issue than yours. To fix it, I added setuptools in the requirements.txt and make sure it is ordered before apache-beam.

这篇关于由于找不到满足要求 setuptools>=40.8 的版本,apache beam 2.19.0 不再在云数据流上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆