From 1405708c3074422ac4224b6d2fd9c05d710464dc Mon Sep 17 00:00:00 2001 From: Taiju Yamada Date: Tue, 28 Apr 2026 11:07:31 +0900 Subject: [PATCH 1/2] Use UV to run generategraphclient --- README.md | 30 +----------------------------- 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/README.md b/README.md index 8741c42..ff71028 100644 --- a/README.md +++ b/README.md @@ -30,34 +30,6 @@ Mujin Controller Python Client is Licensed under the Apache License, Version 2.0 ### How to re-generate `webstackgraphclient.py` -First, set up a virtualenv to install required pip packages: - -```bash -# create a new virtualenv, you can also delete it afterwards -virtualenv .venv - -# install required packages -./.venv/bin/pip install six==1.16.0 requests==2.27.1 graphql-core==3.2.0 typing_extensions==4.2.0 - -# install mujinwebstackclient -./.venv/bin/pip install . -``` - -Then, use `mujin_webstackclientpy_generategraphclient.py` to generate the content of the `webstackgraphclient.py` file. - -```bash -./.venv/bin/python devbin/mujin_webstackclientpy_generategraphclient.py --url http://controller123 > python/mujinwebstackclient/webstackgraphclient.py -``` - -## Troubleshooting - -### Jhbuild fails due to flake8 - -If Jhbuild fails on building mujinwebstackclientpy due to a flake8 violation (most likely with a several hundred errors and warnings), this could be happening due to flake8 running a default configuration within a virtual environment. - -If this seems to be the case, you can delete the virtual environment. - ```bash -# delete the virtual environment -rm -rf ./.venv +PYTHONPATH=python uv run --with six==1.16.0 --with requests==2.27.1 --with graphql-core==3.2.0 --with typing_extensions==4.2.0 devbin/mujin_webstackclientpy_generategraphclient.py --url http://controller123 > python/mujinwebstackclient/webstackgraphclient.py ``` From e7b3ac48e9dd156827293af47d5c6db8c0ca6af8 Mon Sep 17 00:00:00 2001 From: Taiju Yamada Date: Tue, 28 Apr 2026 16:02:35 +0900 Subject: [PATCH 2/2] add websockets as well --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ff71028..30b2b96 100644 --- a/README.md +++ b/README.md @@ -31,5 +31,5 @@ Mujin Controller Python Client is Licensed under the Apache License, Version 2.0 ### How to re-generate `webstackgraphclient.py` ```bash -PYTHONPATH=python uv run --with six==1.16.0 --with requests==2.27.1 --with graphql-core==3.2.0 --with typing_extensions==4.2.0 devbin/mujin_webstackclientpy_generategraphclient.py --url http://controller123 > python/mujinwebstackclient/webstackgraphclient.py +PYTHONPATH=python uv run --with six==1.16.0 --with requests==2.27.1 --with graphql-core==3.2.0 --with typing_extensions==4.2.0 --with websockets==16.0 devbin/mujin_webstackclientpy_generategraphclient.py --url http://controller123 > python/mujinwebstackclient/webstackgraphclient.py ```