trueagi-io / hyperon-experimental

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

Package installation error with pip #565

Closed patham9 closed 3 months ago

patham9 commented 9 months ago

The command python3 -m pip install -e ./python[dev] does not work anymore and instead outputs an error message

error: Support for editable installs via PEP 660 was recently introduced
in setuptools.

One can still run MeTTa from the folder, but due to the issue it will not install in the standard way anymore.

patham9 commented 9 months ago

Interestingly it also failed for me on Ubuntu. Compared to the Mac OS case it did not show me the error however, instead the executable is just not available in the system path after the command. Workaround was to symlink an executable sh script with content python3 /home/patham9/hyperon-experimental/python/hyperon/metta.py $@ to /usr/bin/metta.

vsbogd commented 9 months ago

Hi Patrick, could you please clarify if you built the native code before installing Python library as described in README.md:

At some point the order was changed, before one needed to run pip install before building binaries, now it is vice versa, so it is a common pitfall.

vsbogd commented 8 months ago

@patham9 can we close it?

patham9 commented 8 months ago

Yes I installed the native code before installing the Python library. The instructions in the Readme work neither on Mac OS Ventura, nor on Ubuntu 22 for me. (fresh install of the latter) But the symlink workaround worked. A few months ago the instructions worked well.

vsbogd commented 8 months ago

@patham9, could you please add results of the following commands:

python3 --version
python3 -m pip --version
python3 -m pip list

and full log of the python3 -m pip install -e ./python[dev]

vsbogd commented 3 months ago

@patham9 please shout if you still can reproduce the issue. Otherwise I think we can close it.

vsbogd commented 3 months ago

Closing it as there is not enough information to investigate.

patham9 commented 3 months ago

I can try again soon, but it should be fine for now if it didn't occur for anybody else.