Hello,
for a system identification I need the python package sysidentpy.
(see https://pypi.org/project/sysidentpy/)
However, the integration of the package into my Azure Function App does not want to succeed.
Following is my requirements.txt file:
azure-functions
azure-iot-hub
azure-digitaltwins-core
azure-identity
numpy==1.21.0
pandas==1.3.0
matplotlib==3.4.2
sysidentpy==0.1.5.3
The following error is issued:
0:03:13 func-PI-RnD-DEWestMid-001: [08:03:13+0000] Collecting sysidentpy==0.1.5.3
10:03:13 func-PI-RnD-DEWestMid-001: [08:03:13+0000] Using cached sysidentpy-0.1.5.3.tar.gz (21.5 MB)
10:03:14 func-PI-RnD-DEWestMid-001: ERROR: Command errored out with exit status 1:
10:03:14 func-PI-RnD-DEWestMid-001: command: /tmp/oryx/platforms/python/3.9.0/bin/python3.9 -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-6gu_bg92/sysidentpy/setup.py'"'"'; file='"'"'/tmp/pip-install-6gu_bg92/sysidentpy/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r
10:03:14 func-PI-RnD-DEWestMid-001: '"'"', '"'"'
10:03:14 func-PI-RnD-DEWestMid-001: '"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-_3sq2mjs
10:03:14 func-PI-RnD-DEWestMid-001: cwd: /tmp/pip-install-6gu_bg92/sysidentpy/
10:03:14 func-PI-RnD-DEWestMid-001: Complete output (1 lines):
10:03:14 func-PI-RnD-DEWestMid-001: numpy is required during installation
10:03:14 func-PI-RnD-DEWestMid-001: ----------------------------------------
10:03:14 func-PI-RnD-DEWestMid-001: ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
The following article notes that this may be related to the Python version used. According to the article, I need Python version 3.8 and numpy version 1.19.3.
(see https://github.com/wilsonrljr/sysidentpy/issues/39)
I have also tried it with the mentioned numpy version but it did not work either.
My Function App is implemented in Linux. I had set the python version to 3.8 or 3.9 (I am not sure).
Is there a way to check the specific Version (Not whether it is only 3.x but whether it is really 3.8 or 3.9)
And is there a way to set the existing function app to 3.8?
Are there any other comments which could solve the problem.
I hope someone can help me further.
With best regards
Patrick