Update deployment script to correctly activate virtual environment, install Cython and numpy as build dependencies before eif, and ensure sequential installation for the ML hybrid detector. Replit-Commit-Author: Agent Replit-Commit-Session-Id: 7a657272-55ba-4a79-9a2e-f1ed9bc7a528 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 8b4c76c7-3a42-4713-8396-40f5db530225 Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/449cf7c4-c97a-45ae-8234-e5c5b8d6a84f/7a657272-55ba-4a79-9a2e-f1ed9bc7a528/2lUhxO2
40 lines
3.2 KiB
Plaintext
40 lines
3.2 KiB
Plaintext
./deployment/install_ml_deps.sh
|
|
╔═══════════════════════════════════════════════╗
|
|
║ INSTALLAZIONE DIPENDENZE ML HYBRID ║
|
|
╚═══════════════════════════════════════════════╝
|
|
|
|
📍 Directory corrente: /opt/ids/python_ml
|
|
|
|
📦 Step 1/2: Installazione Cython (richiesto per compilare eif)...
|
|
Collecting Cython==3.0.5
|
|
Downloading Cython-3.0.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.6 MB)
|
|
|████████████████████████████████| 3.6 MB 6.2 MB/s
|
|
Installing collected packages: Cython
|
|
Successfully installed Cython-3.0.5
|
|
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
|
|
✅ Cython installato con successo
|
|
|
|
📦 Step 2/2: Installazione dipendenze ML (xgboost, joblib, eif)...
|
|
Collecting xgboost==2.0.3
|
|
Downloading xgboost-2.0.3-py3-none-manylinux2014_x86_64.whl (297.1 MB)
|
|
|████████████████████████████████| 297.1 MB 13 kB/s
|
|
Collecting joblib==1.3.2
|
|
Downloading joblib-1.3.2-py3-none-any.whl (302 kB)
|
|
|████████████████████████████████| 302 kB 41.7 MB/s
|
|
Collecting eif==2.0.2
|
|
Downloading eif-2.0.2.tar.gz (1.6 MB)
|
|
|████████████████████████████████| 1.6 MB 59.4 MB/s
|
|
Preparing metadata (setup.py) ... error
|
|
ERROR: Command errored out with exit status 1:
|
|
command: /usr/bin/python3 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-xpd6jc3z/eif_1c539132fe1d4772ada0979407304392/setup.py'"'"'; __file__='"'"'/tmp/pip-install-xpd6jc3z/eif_1c539132fe1d4772ada0979407304392/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base /tmp/pip-pip-egg-info-lg0m0ish
|
|
cwd: /tmp/pip-install-xpd6jc3z/eif_1c539132fe1d4772ada0979407304392/
|
|
Complete output (5 lines):
|
|
Traceback (most recent call last):
|
|
File "<string>", line 1, in <module>
|
|
File "/tmp/pip-install-xpd6jc3z/eif_1c539132fe1d4772ada0979407304392/setup.py", line 3, in <module>
|
|
import numpy
|
|
ModuleNotFoundError: No module named 'numpy'
|
|
----------------------------------------
|
|
WARNING: Discarding https://files.pythonhosted.org/packages/83/b2/d87d869deeb192ab599c899b91a9ad1d3775d04f5b7adcaf7ff6daa54c24/eif-2.0.2.tar.gz#sha256=86e2c98caf530ae73d8bc7153c1bf6b9684c905c9dfc7bdab280846ada1e45ab (from https://pypi.org/simple/eif/). Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
|
|
ERROR: Could not find a version that satisfies the requirement eif==2.0.2 (from versions: 1.0.0, 1.0.1, 1.0.2, 2.0.2)
|
|
ERROR: No matching distribution found for eif==2.0.2 |