morph-labs / rift

Rift: an AI-native language server for your personal AI software engineer
https://morph.so
Apache License 2.0
3.04k stars 144 forks source link

Manual install difficulties #234

Open eaubin opened 7 months ago

eaubin commented 7 months ago

Trying to follow the manual installation instructions


brew install python@3.10
mkdir -p ~/.morph/ && cd ~/.morph/ && python3.10 -m venv env
source ./env/bin/activate
which pip # ~/.morph/env/bin/pip
pip install "git+https://github.com/morph-labs/rift.git@main#egg=pyrift&subdirectory=rift-engine"
source ~/.morph/env/bin/activate
rift --port 7797

Traceback (most recent call last):
  File "~/.morph/env/bin/rift", line 5, in <module>
    from rift.server.core import entrypoint
ModuleNotFoundError: No module named 'rift.server'

The site-packages/rift looks a little sparse:

find env/lib/python3.10/site-packages/rift    
env/lib/python3.10/site-packages/rift
env/lib/python3.10/site-packages/rift/__init__.py
env/lib/python3.10/site-packages/rift/__pycache__
env/lib/python3.10/site-packages/rift/__pycache__/__about__.cpython-310.pyc
env/lib/python3.10/site-packages/rift/__pycache__/__main__.cpython-310.pyc
env/lib/python3.10/site-packages/rift/__pycache__/__init__.cpython-310.pyc
env/lib/python3.10/site-packages/rift/__about__.py
env/lib/python3.10/site-packages/rift/__main__.py

Do I need to use a different pip install command?

seplee commented 7 months ago

+1, same behavior

seplee commented 7 months ago

Installing from source worked for me: cd ~/.morph/ && git clone git@github.com:morph-labs/rift && cd ./rift/rift-engine/ && pip install -e .

nathan0x6C1 commented 2 weeks ago

same here