trueagi-io / metta-examples

Discussion of MeTTa programming with examples
MIT License
14 stars 15 forks source link

Missing explanations on how to run Child AI #20

Closed aymeric75 closed 9 months ago

aymeric75 commented 9 months ago

Hello,

From the doc I have done these steps

  1. Create "child_ai" folder in hyperon-experimental/lib/src/ and place there graph_kb.rs file
  2. Create mod.rs file with code "pub mod graph_kb;"
  3. Add "pub mod child_ai;" code in lib.rs file
  4. Add in Cargo.toml file: ndarray = "0.15.6"

It results in the folders/files structure:


hyperon-experimental/
     lib/
          Cargo.toml
          src/
               lib.rs
               child_ai/
                  child_ai.py
                  graph_kb.rs
                  mod.rs

Since there is no documentation on how to run this code, I tried: python child_ai.py

Which returns a Python: command not found. Yet, I am using the docker container (so I guess Python should be available by default), so I tried sudo apt install python wich returns a Package 'python' has no installation candidate

python3 child_ai.py would work, but then no module named numpy.

Anyway, just to say that I am not sure if the Docker image you propose is up to date

Thanks

aymeric75 commented 9 months ago

I just installed what was required with pip, it works now