My agents are no longer pip installing requirements.txt. Which causes it to crash on the import.
The docker image it’s running is openiap/nodechromiumagent, this is the log:
Child process 128 exited with code 1
ModuleNotFoundError: No module named 'flask'
from flask import Flask, jsonify, request
File "/root/.openiap/packages/64e71ee03042d0530e5fd816/package/main.py", line 1, in <module>
Traceback (most recent call last):
Child process started as pid 128
Child process 124 exited with code 1
hint: See PEP 668 for the detailed specification.
note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
pipx package).
To automatically manage virtual environments, consider using pipx (from the
the activate file.
The virtual environment is not deleted, and can be re-entered by re-sourcing
deactivate
To exit the virtual environment, run:
pip install mypackage
. /path/to/venv/bin/activate
python3 -m venv /path/to/venv
environment, e.g.:
"apk add py3-somepackage"), please consider installing it inside a virtual
If the package in question is not packaged already (and hence installable via
package manager (apk) only.
The system-wide python installation should be maintained using the system
╰─>
× This environment is externally managed
error: externally-managed-environment
Child process started as pid 124
************************
**** Running pip install
************************
Child process started as pid 124
************************
**** Running pip install
************************