apache beam 2.19.0 больше не работает в облачном потоке данных из-за Невозможно найти версию, которая удовлетворяет требованию setuptools> = 40,8 - PullRequest
0 голосов
/ 07 апреля 2020

Через несколько дней наши python задания потока данных приводят к ошибке при запуске работника:

"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.

Похоже, что это не проблема с файл require.txt:

ua-parser
numpy
pandas
Deprecated

Кто-нибудь сталкивался с этим и может быть решением? Я попытался установить конкретную c версию setuptools (46.1.3), что привело к другой ошибке:

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." 

Спасибо

Ответы [ 2 ]

1 голос
/ 14 апреля 2020

У меня была та же проблема, что и у вас. Чтобы исправить это, я добавил setuptools в файл require.txt и убедился, что он упорядочен до apache -beam.

0 голосов
/ 14 апреля 2020

Устаревший пакет изменен с устаревшего 1.2.7 на устаревший 1.2.8, что вызвало ошибку. Рабочие потока данных работают с setuptools 45.1.0 для python 3.5.9, поэтому установка другой версии через обновленный устаревший пакет привела к ошибке.

...