trueagi-io / hyperon-experimental

MeTTa programming language implementation
https://metta-lang.dev
MIT License
147 stars 49 forks source link

repl can't find hyperonpy #571

Closed noskill closed 9 months ago

noskill commented 9 months ago

../repl/target/release/metta test.metta

Fatal Error: ModuleNotFoundError: No module named 'hyperon'

python -c 'import hyperon; print(hyperon.__version__)'

0.1.4.15.dev382+g55f6ff8

Necr0x0Der commented 9 months ago

One possible reason can be if hyperonpy is built under a python version different by the version in the environment, in which repl runs

noskill commented 9 months ago

Indeed i installed hyperonpy in conda environment and metta repl is searching in system directories

noskill commented 9 months ago

I found that if i add ~/projects/hyperon-experimental/python to PYTHONPATH repl works

vsbogd commented 9 months ago

Indeed i installed hyperonpy in conda environment and metta repl is searching in system directories

Looks like it is a duplicate of https://github.com/trueagi-io/hyperon-experimental/issues/432 then. @noskill could you please close it if you are agree.

noskill commented 9 months ago

I don't have this error "./target/debug/metta: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory"

noskill commented 9 months ago

closing because it's working if hyperonpy is present in PYTHONPATH