hi,
good work, i am trying your agent and came across an inconsistency with your setup information in your install instructions on:
https://bhgtiger.github.io/StructAgent/cryosparc_skill_example/#what
we use cryosparc 5.0.6 and cryosparc-tools 5.0.3
instead of CRYOSPARC_HOST we need to set CRYOSPARC_MASTER_HOSTNAME
without
$ python scripts/cryosparc_harness.py doctor
/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/api.py:187: UserWarning: *** API client GET /openapi.json failed due to [Errno 111] Connection refused (attempt 1/3)
warnings.warn(
/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/api.py:187: UserWarning: *** API client GET /openapi.json failed due to [Errno 111] Connection refused (attempt 2/3)
warnings.warn(
/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/api.py:187: UserWarning: *** API client GET /openapi.json failed due to [Errno 111] Connection refused (attempt 3/3)
warnings.warn(
{
"connect": "failed",
"cryosparc": null,
"cryosparc-tools": "5.0.3",
"env_present": {
"CRYOSPARC_BASE_PORT": true,
"CRYOSPARC_BASE_URL": false,
"CRYOSPARC_EMAIL": true,
"CRYOSPARC_MASTER_HOSTNAME": false,
"CRYOSPARC_PASSWORD": true
},
"executable": "/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/bin/python",
"python": "3.10.20",
"reason": "RuntimeError('Could not connect to CryoSPARC at http://localhost:61000 due to error:\n[Errno 111] Connection refused\nPlease ensure your credentials are valid and that you are connecting to a CryoSPARC version compatible with cryosparc-tools 5.0.\n\nIf required, create a new session with command\n\n python -m cryosparc.tools login\n\nPlease see the documentation at https://tools.cryosparc.com for details.')"
}
it works when:
$ export CRYOSPARC_MASTER_HOSTNAME=cssbuke027.desy.de
$ python scripts/cryosparc_harness.py doctor
{
"connect": "ok",
"cryosparc": null,
"cryosparc-tools": "5.0.3",
"cryosparc_module": "/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/init.py",
"env_present": {
"CRYOSPARC_BASE_PORT": true,
"CRYOSPARC_BASE_URL": false,
"CRYOSPARC_EMAIL": true,
"CRYOSPARC_MASTER_HOSTNAME": true,
"CRYOSPARC_PASSWORD": true
},
:
skipped the rest
i have put the the necessary connection information into site_config.md, but does the command line scripts also need the master_url as environment variable CRYOSPARC_BASE_URL?
cheers,
wolfgang
hi,
good work, i am trying your agent and came across an inconsistency with your setup information in your install instructions on:
https://bhgtiger.github.io/StructAgent/cryosparc_skill_example/#what
we use cryosparc 5.0.6 and cryosparc-tools 5.0.3
instead of CRYOSPARC_HOST we need to set CRYOSPARC_MASTER_HOSTNAME
without
$ python scripts/cryosparc_harness.py doctor
/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/api.py:187: UserWarning: *** API client GET /openapi.json failed due to [Errno 111] Connection refused (attempt 1/3)
warnings.warn(
/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/api.py:187: UserWarning: *** API client GET /openapi.json failed due to [Errno 111] Connection refused (attempt 2/3)
warnings.warn(
/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/api.py:187: UserWarning: *** API client GET /openapi.json failed due to [Errno 111] Connection refused (attempt 3/3)
warnings.warn(
{
"connect": "failed",
"cryosparc": null,
"cryosparc-tools": "5.0.3",
"env_present": {
"CRYOSPARC_BASE_PORT": true,
"CRYOSPARC_BASE_URL": false,
"CRYOSPARC_EMAIL": true,
"CRYOSPARC_MASTER_HOSTNAME": false,
"CRYOSPARC_PASSWORD": true
},
"executable": "/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/bin/python",
"python": "3.10.20",
"reason": "RuntimeError('Could not connect to CryoSPARC at http://localhost:61000 due to error:\n[Errno 111] Connection refused\nPlease ensure your credentials are valid and that you are connecting to a CryoSPARC version compatible with cryosparc-tools 5.0.\n\nIf required, create a new session with command\n\n python -m cryosparc.tools login\n\nPlease see the documentation at https://tools.cryosparc.com for details.')"
}
it works when:
$ export CRYOSPARC_MASTER_HOSTNAME=cssbuke027.desy.de
$ python scripts/cryosparc_harness.py doctor
{
"connect": "ok",
"cryosparc": null,
"cryosparc-tools": "5.0.3",
"cryosparc_module": "/data/software/cssbsw/miniforge3/envs/cstools-5.0.3/lib/python3.10/site-packages/cryosparc/init.py",
"env_present": {
"CRYOSPARC_BASE_PORT": true,
"CRYOSPARC_BASE_URL": false,
"CRYOSPARC_EMAIL": true,
"CRYOSPARC_MASTER_HOSTNAME": true,
"CRYOSPARC_PASSWORD": true
},
:
skipped the rest
i have put the the necessary connection information into site_config.md, but does the command line scripts also need the master_url as environment variable CRYOSPARC_BASE_URL?
cheers,
wolfgang