Closed liqiang4567 closed 7 months ago
Hello! How did you install KinBot? From conda or from source? What I see is that you error says:
File "/home/XXX/software/anaconda3/envs/kinbot_v1/lib/python3.8/site-packages/kinbot/qc.py", line 739, in submit_qc
python_template = open(template_head_file, 'r').read() + open(template_file, 'r').read()
But on line 739 this is not what is in qc.py
. This line is not in the code anymore actually. Can you try to install the code from the source as given in https://github.com/zadorlab/KinBot?tab=readme-ov-file#from-github
Hello, thank you for your reply. I installed it through conda install -c conda-Forge kinbot. I will try to install using source code
I follow your advice, use the source code to install, run C6H6_1.json such an error, how to solve?
20-Jan-24 17:03:06-INFO: Starting optimization of initial well...
20-Jan-24 17:03:29-ERROR:
Traceback (most recent call last):
File "/home/XXX/software/anaconda3/envs/kinbot_v2/bin/kinbot", line 8, in
Hello, the problem with source code installation is still the same.
Traceback (most recent call last):
File "/home/XXX/software/anaconda3/envs/kinbot_v2/bin/kinbot", line 8, in
Regarding the first error: your kinbot.db
is locked, because it was accessed too many times in rapid fire perhaps at some point. Maybe you didn't kill the jobs the right order or something like that. That is easy to solve, you'll find a file with lock
in its name, just delete it before rerunning.
If you open a python session in your environment where you are running KinBot, can you do this:
>>> from kinbot import kb_path
>>> kb_path
'/home/jzador/KinBot/kinbot'
What do you get?
Thank you for your reply, the installation should be no problem, I can get the path of kinbot. But there are problems. This is when the task is running for a long time and there is a problem and a lot of files are generated. According to my tracking, suddenly after running *high.com file "template_head_file" is empty.
Can you try this, again, in your kb environment, in python:
>>> from kinbot import kb_path
>>> template_file = f'{kb_path}/tpl/slurm_python.tpl'
>>> template_head_file = f'{kb_path}/tpl/slurm.tpl'
>>> a = open(template_head_file, 'r').read()
>>> a
'#! /bin/bash\n\n#SBATCH -N 1\n#SBATCH -c {ppn}\n#SBATCH -q {queue_name}\n#SBATCH -o {errdir}/{name}.stdout\n#SBATCH -e {errdir}/{name}.err\n#SBATCH --mem=10gb\n{slurm_feature}\n\nexport OMP_NUM_THREADS={ppn}\n'
>>> b = open(template_file, 'r').read()
>>> b
'python {python_file} {arguments}\n'
I am able to reproduce your bug, give me a bit of time and I can fix this.
I think I fixed the bug. I pushed the fix to the master branch.
Hello, after the change, the previous problem has been solved, but this problem occurs again? Do I need to set up a directory for this? My working directory is /home/xxx/kinbot/kinbot_code /run/test2 This error occurs: '/home/xxx/kinbot/kinbot_code /run/chemids'
9837632364, same: 1
22-Jan-24 13:13:58-INFO: Starting hindered rotor calculations of 781982302101340580261_r12_insertion_R_2_1_3
22-Jan-24 13:14:15-INFO: Product 781982302101340580261_r12_insertion_R_2_1_3 energy is 45.79 kcal/mol.
22-Jan-24 13:14:15-ERROR:
Traceback (most recent call last):
File "/home/xxx/software/anaconda3/envs/kinbot_v2/bin/kinbot", line 8, in
I think you are running a kinbot
calculation, i.e., a single-well run, but I can see that you set the pes
parameter to 1
in your json
input file. So the code thinks that you are in the multiwell mode (pes
). Either set pes
to 0
, or run the code in the pes
mode. For the latter you need to copy your json
input to /home/xxx/kinbot/kinbot_code /run/
, and run it from there as pes input.json
.
Yes, you are right. However, when I run the pes.json file, it appears that the read energy is infinite, and the error is as follows. For example, run 781982302101340580261_well_high. My quantitative calculations ended normally. I guess there's a problem reading the power code somewhere?
pes.log: .... 22-Jan-24 15:52:04-INFO: len(finished): 1
22-Jan-24 15:52:06-ERROR:
Traceback (most recent call last):
File "/home/XXX/software/anaconda3/envs/kinbot_v1/bin/pes", line 8, in
Is the entry 781982302101340580261_well_high
in the kinbot.db
of the 781982302101340580261
directory? Just to make sure, you are running pes.json
above the directory you previously run the 781982302101340580261
calculations, and you have pes
turned on the json
. Maybe if you could post the pes.json
I can take a look.
Thank you very much for your help, the program is running now.
Hello, the following problems occurred when I used kinbot to simulate C6H6. I uploaded C6H6_1.jons text and kinbot.log file, how can I solve them, thank you
C6H6_1.json kinbot.log