Skip to content

Commit

Permalink
Fix/ubuntu version (#278)
Browse files Browse the repository at this point in the history
* fix ui folder

* fix ubuntu version

* Update install.py with the correct libssl version

* Update index.mdx

---------

Co-authored-by: Hao Zhu <[email protected]>
  • Loading branch information
XuhuiZhou and ProKil authored Jan 15, 2025
1 parent 535b2cc commit 3b9e842
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/pages/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ or manual setup:
tar -xvzf redis-stack-server.tar.gz
export PATH=$(pwd)/redis-stack-server-7.2.0-v10/bin:$PATH
# if you are using Ubunutu 22.04, please do an extra step
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2.22_amd64.deb
wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
```

### Start the server
Expand Down
10 changes: 10 additions & 0 deletions sotopia/cli/install/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,16 @@ def install(
subprocess.run(
"tar -xvzf redis-stack-server.tar.gz", shell=True, check=True
)
subprocess.run(
"wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb",
shell=True,
check=True,
)
subprocess.run(
"sudo dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb",
shell=True,
check=True,
)
if load_database:
Path("./redis-stack-server-7.2.0-v10/var/db/redis-stack").mkdir(
parents=True, exist_ok=True
Expand Down
2 changes: 1 addition & 1 deletion ui/modal_streamlit_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
)
.pip_install("streamlit~=1.40.2", "uv")
.run_commands(
"rm -rf sotopia && git clone https://github.com/sotopia-lab/sotopia.git && cd sotopia && git checkout demo && uv pip install pyproject.toml --system && pip install -e . && cd ui/streamlit_ui",
"rm -rf sotopia && git clone https://github.com/sotopia-lab/sotopia.git && cd sotopia && git checkout demo && uv pip install pyproject.toml --system && pip install -e . && cd ui",
force_build=True,
)
# .pip_install("pydantic==2.8.2")
Expand Down

0 comments on commit 3b9e842

Please sign in to comment.