Skip to content

"no_dr" wrong and gaussian call exception #77

@ckr23456

Description

@ckr23456

comp-b.sdf is a molecule containing boron

(automd) [krcui@ubuntu-Server: ] /data/krcui/automd/streamd/streamd $ run_md -p comp_1_protein.pdb -l comp-b.sdf --md_time 1 --ncpu 12 --gaussian_exe /data/krcui/gaussian1/g16/g16 --activate_gaussian g16
2025-12-23 00:06:43 - root - INFO: Namespace(config=None, protein='/data/krcui/automd/streamd/streamd/comp_1_protein.pdb', wdir=None, ligand='/data/krcui/automd/streamd/streamd/comp-b.sdf', cofactor=None, clean_previous_md=False, hostfile=None, ncpu=12, mdrun_per_node=1, device='auto', gpu_ids=None, ntmpi_per_gpu=1, topol=None, topol_itp=None, posre=None, protein_forcefield='amber99sb-ildn', noignh=False, md_time=1.0, npt_time=1000, nvt_time=1000, seed=-1, no_dr=False, not_clean_backup_files=False, steps=None, mdp_dir=None, save_traj_without_water=False, wdir_to_continue=None, out_suffix=None, deffnm='md_out', tpr=None, cpt=None, xtc=None, ligand_list_file=None, ligand_id='UNL', activate_gaussian='g16', gaussian_exe='/data/krcui/gaussian1/g16/g16', gaussian_basis='B3LYP/6-31G*', gaussian_memory='120GB', metal_resnames=None, metal_cutoff=2.8, metal_charges={'MN': 2, 'ZN': 2, 'CA': 2})
2025-12-23 00:06:43 - root - WARNING: /data/krcui/automd/streamd/streamd/md_files/md_preparation/protein/comp_1_protein/comp_1_protein.gro and topol.top files exist. Protein preparation step will be skipped.
2025-12-23 00:06:43 - root - INFO: Start ligand preparation
Traceback (most recent call last):
File "/data/Software/anaconda3/envs/automd/lib/python3.10/site-packages/streamd/utils/dask_init.py", line 86, in calc_dask
for i, (future, results) in enumerate(seq, 1):
File "/data/Software/anaconda3/envs/automd/lib/python3.10/site-packages/distributed/client.py", line 5681, in next
return self._get_and_raise()
File "/data/Software/anaconda3/envs/automd/lib/python3.10/site-packages/distributed/client.py", line 5668, in _get_and_raise
raise exc.with_traceback(tb)
TypeError: prep_ligand() missing 1 required positional argument: 'no_dr'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/data/Software/anaconda3/envs/automd/bin/run_md", line 8, in
sys.exit(main())
File "/data/Software/anaconda3/envs/automd/lib/python3.10/site-packages/streamd/run_md.py", line 831, in main
start(protein=args.protein,
File "/data/Software/anaconda3/envs/automd/lib/python3.10/site-packages/streamd/run_md.py", line 450, in start
var_lig_wdirs = prepare_input_ligands(lfile, preset_resid=ligand_resid, protein_resid_set=protein_resid_set, script_path=script_path,
File "/data/Software/anaconda3/envs/automd/lib/python3.10/site-packages/streamd/preparation/ligand_preparation.py", line 297, in prepare_input_ligands
for res in calc_dask(prep_ligand, boron_containing_mols, dask_client,
File "/data/Software/anaconda3/envs/automd/lib/python3.10/site-packages/streamd/utils/dask_init.py", line 76, in calc_dask
with (performance_report(filename=dask_report_fname) if dask_report_fname is not None else none_context):
File "/data/Software/anaconda3/envs/automd/lib/python3.10/contextlib.py", line 153, in exit
self.gen.throw(typ, value, traceback)
AttributeError: 'list_iterator' object has no attribute 'throw'

ligand_preparation.py line 297,calc_dask:insert “no_dr = no_dr,”

Image

The error message will then disappear, but a new issue emerges: the program freezes after submitting the task.At ”2025-12-23 00:37:47 - root - INFO: Start ligand preparation”

I can't fix this issue like the previous one, but I've identified the problem as an exception in the code at this location.

Image Image

Only gau1 is displayed in the figure.It indicates “if not run_check_subprocess” executed was not failed.However, the CPU usage data in the “top” shows that the Gaussian command was not actually executed, suggesting that an intermediate step encountered an error.

But even stranger is when I use “Ctrl + C (SIGINT - interrupt signal)” to terminate main command “run_md -p comp_1_protein.pdb -l comp-b.sdf --md_time 1 --ncpu 12 --gaussian_exe /data/krcui/gaussian1/g16/g16 --activate_gaussian g16”,then,gaussian actually started running.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions