Ошибка при попытке собрать приложение на python в openshift в needs.txt

Я не знаком с веб-приложениями Python. Я пытаюсь собрать и развернуть мое приложение в контейнере Openshift. Но это бросает ошибки из-за требований.txt. Ниже мои журналы. Рад, если кто-то может дать некоторые указатели!

Я в основном пытаюсь создать приложение для загрузки и обработки файлов данных. Ссылка на github приложения: https://github.com/hanvitha92/UtilityToProcessData

needs.txt:

gunicorn
Flask
flask_restful
xlrd
pandas

Сообщение об ошибке:

Complete output from command python setup.py egg_info: Traceback (most recent call last): File "/opt/app-root/lib/python3.5/site-packages/pkg_resources/__init__.py", line 433, in get_provider module = sys.modules[moduleOrReq] KeyError: 'numpy' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<string>", line 20, in <module> File "/tmp/pip-build-mvq1efv9/pandas/setup.py", line 732, in <module> ext_modules=maybe_cythonize(extensions, compiler_directives=directives), File "/tmp/pip-build-mvq1efv9/pandas/setup.py", line 475, in maybe_cythonize numpy_incl = pkg_resources.resource_filename('numpy', 'core/include') File "/opt/app-root/lib/python3.5/site-packages/pkg_resources/__init__.py", line 1160, in resource_filename return get_provider(package_or_requirement).get_resource_filename( File "/opt/app-root/lib/python3.5/site-packages/pkg_resources/__init__.py", line 435, in get_provider
__import__(moduleOrReq) ImportError: No module named 'numpy'
---------------------------------------- Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-mvq1efv9/pandas You are using pip version 7.1.2, however version 19.0.2 is available. You should consider upgrading via the 'pip install --upgrade pip' command. error: build error: non-zero (13) exit code from
172.30.1.1:5000/openshift/python@sha256:3dcb46be7bcc22a43f64ac078c8abe8e1ddafff729df39775052cbf1d0eef215

0 ответов

Другие вопросы по тегам