Open wangjiaqi8710 opened 2 months ago
Hi JQ,
Have you installed the environment successfully before running the script run.sh
?
Hi JQ,
Have you installed the environment successfully before running the script
run.sh
?
I run the $bash install.sh, and it runs normally. I then have to go to the SaprotHub-main directory to run $bash local_server/run.sh
The version is not the latest. Updating... HEAD is now at 23a69ad No public description Already up to date. ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' WARNING: Skipping saprot as it is not installed.
| | | |_ | | | | __
| || | ' \/ / _
| / -)
_/| ./_,_,|_\|
|_|
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html
Please note that updating to Notebook 7 might break some of your extensions.
[I 15:08:37.328 NotebookApp] Loading IPython parallel extension [I 15:08:37.331 NotebookApp] Serving notebooks from local directory: /home/dc/.cache/SaprotHub/colabtools [I 15:08:37.331 NotebookApp] Jupyter Notebook 6.5.5 is running at: [I 15:08:37.331 NotebookApp] http://localhost:8888/?token=175d42a [I 15:08:37.331 NotebookApp] or http://127.0.0.1:8888/?token=175d42a [I 15:08:37.331 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 15:08:37.376 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/dc/.local/share/jupyter/runtime/nbserver-90025-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=175d42a
or http://127.0.0.1:8888/?token=175d42a
It complains that saprot is not installed though, is that because it can find "requirements.txt", but even I run the command $bash run.sh, it stills complains cannot find the "requirements.txt". But this file is in the folder (local_server). How to fix the problem?
Maybe you should first go into the local_server
directory? The system assumes you are in this directory and finds files using relative path.
when I run $bash run.sh in local_server, it complains the same thing.
The version is not the latest. Updating... HEAD is now at 23a69ad No public description Already up to date. ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'requirements.txt' WARNING: Skipping saprot as it is not installed.
| | | |_ | | | | __
| || | ' \/ / _
| / -)
_/| ./_,_,|_\|
|_|
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html
Please note that updating to Notebook 7 might break some of your extensions.
[I 15:25:26.587 NotebookApp] Loading IPython parallel extension [I 15:25:26.592 NotebookApp] Serving notebooks from local directory: /home/dc/.cache/SaprotHub [I 15:25:26.592 NotebookApp] Jupyter Notebook 6.5.5 is running at: [I 15:25:26.592 NotebookApp] http://jqlab:12315/?token=... [I 15:25:26.592 NotebookApp] or http://127.0.0.1:12315/?token=... [I 15:25:26.592 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
And moreover, no jupyternote book is launched when I run the $bash run.sh in the local_server folder.
JQ
Can you run the installation from scratch in the local_server
directory? Also, it looks like the jupyter notebook runs normally as expected.
Ok, I have tried to install from scratch.
conda create -n SaprotHub python=3.10 --yes source activate SaprotHub
mkdir -p /home/dc/.cache/SaprotHub
git clone https://github.com/googlecolab/colabtools.git /home/dc/.cache/SaprotHub/colabtools pip install /home/dc/.cache/SaprotHub/colabtools/ pip install -r ./requirements.txt
This step work normally. Next, I also modify the run.sh script to change "/root/.cache" to "/home/dc/.cache" accordingly, then
$bash run.sh
in the local_server directory, and it comes out with error message
[C 09:19:40.456 NotebookApp] Bad config encountered during initialization: No such notebook dir: ''/root/.cache/SaprotHub''
source activate SaprotHub
ori_dir=$(pwd) if [ -d "/home/dc/.cache/SaprotHub/SaprotHub" ];then cd /home/dc/.cache/SaprotHub/SaprotHub local=$(git rev-parse HEAD) remote=$(git ls-remote https://github.com/westlake-repl/SaprotHub.git | grep HEAD) remote=(${remote//,/ }[0]) if [ "$local" != "$remote" ]; then echo "The version is not the latest. Updating..." git fetch --all && git reset --hard origin/main && git pull pip install -r local_server/requirements.txt pip uninstall saprot --yes fi fi
Do you think anything I am doing wrong? As if I don't change the /root to /home/dc directory, in the first step $bash install.sh, it will complain about the root access and won't install the environment correctly.
But I failed in the $bash run.sh step.
Best wishes, JQ
Hi,
You also have to change the cache directory in jupyter_notebook_config.py
and then everything should be OK。
Ok, "$bash run.sh" works, but it did not provide the local server and connectable address. the message it gives as below
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html
Please note that updating to Notebook 7 might break some of your extensions.
The "..." following "http://127.0.0.1:12315/?token=" is exactly what shows in the terminal. may I know how to deal with it?
Thanks.
JQ
And then you can follow the instructions to connect to you local server as here:
I have tried and the connect button is disabled in this way. Please see attached picture. I also noticed that when I typed $bash run.sh, no web browser page was launched. Is this normal?
JQ
Is your server remote? If your server is a remote server, you have to follow the optional step and then input identically as the instruction does.
It is the same computer that I launch the colabsaprot webpage.
JQ
Could you set the IP address to 127.0.0.1
to see if it works?
ok, now it works by set the IP address to 127.0.0.1, but again when I clicked the run button to install saprot, it ends up with error
ModuleNotFoundError Traceback (most recent call last)
Do you think what is the problem and how can I troubleshoot
JQ
Looks like it ran into an error when installing saprot through git commands. Could you try manually cloning the repo to see whether it works?
Can I do something to fix the problem here?
If I would like to install saprot through git command, where should I install it?
Best wishes, JQ
You could git clone the SaprotHub repo in /home/dc/.cache/SaprotHub/
and then rerun the installation button. I think the problem is that your computer cannot successfully clone the repo so the later installation would fail.
Dear Authors,
I have tried the script for setting up run in local_server and it seems that it did not work successfully. I have connect the colab saprothub to the local server and, I try click on the "1.1 install saprot", error message appears as below. Do you know what could be the problem? Thank you.
ModuleNotFoundError Traceback (most recent call last) in <cell line: 114>()
112 from transformers.models.esm.openfold_utils.feats import atom14_to_atom37
113 from string import ascii_uppercase,ascii_lowercase
--> 114 from saprot.utils.mpr import MultipleProcessRunnerSimplifier
115 from saprot.data.parse import get_chain_ids
116 from saprot.scripts.training import my_load_model
ModuleNotFoundError: No module named 'saprot'
Best wishes, JQ