MatthijsHak / MetalDock

Dock organometallic compounds to proteins/DNA/biomolecules
MIT License
8 stars 6 forks source link

Error: No Orca Configuration #34

Closed Stefano-DFT closed 4 months ago

Stefano-DFT commented 4 months ago

Dear All, after completing the installation process, I encountered the following error: $ metaldock -i input.ini Traceback (most recent call last): File "/home/stefano/MetalDock/metaldock", line 6, in main() File "/home/stefano/MetalDock/src/metal_dock/main.py", line 18, in main docking(par) File "/home/stefano/MetalDock/src/metal_dock/docking.py", line 80, in docking qm_dir, energy = orca.orca_engine(xyz_file, par, output_dir) File "/home/stefano/MetalDock/src/metal_dock/orca_engine.py", line 22, in orca_engine orca_geom_opt(xyz_file, var) File "/home/stefano/MetalDock/src/metal_dock/orca_engine.py", line 109, in orca_geom_opt mol.calc = ORCA(label='geom', File "/home/stefano/anaconda3/envs/MetalDock/lib/python3.8/site-packages/ase/calculators/orca.py", line 95, in init super().init(template=OrcaTemplate(), File "/home/stefano/anaconda3/envs/MetalDock/lib/python3.8/site-packages/ase/calculators/genericfileio.py", line 274, in init raise BadConfiguration(f'No configuration of {template.name}') ase.calculators.calculator.BadConfiguration: No configuration of orca

It seems that there is a communication issue between ASE and ORCA but I haven't been able to find a solution. Any assistance in resolving this issue would be greatly appreciated. Thank you!

MatthijsHak commented 4 months ago

Hi,

Did you export the following variable correctly?

export ASE_ORCA_COMMAND='/sw/arch/RHEL8/EB_production/2022/software/ORCA/5.0.4-foss-2022a/bin/orca PREFIX.inp > PREFIX.out'

This line is required for communication between ASE and ORCA. The path is system dependent, so you need to change this for yours.

Stefano-DFT commented 4 months ago

Dear Matthijs,

Thank you very much for replying to my issue.

Yes, I think that I have exported the ASE_ORCA_COMMAND correctly. When I type 'echo $ASE_ORCA_COMMAND', the OS shows me the correct path. Also ORCA works. error

MatthijsHak commented 4 months ago

Hi,

From the screenshot that you have sent the path is not correctly set by $ASE_ORCA_COMMAND. Nothing is printed when you echo $ASE_ORCA_COMMAND. You should see something like this:

mhakkennes@int5:$ export ASE_ORCA_COMMAND=/root/path/to/metaldock mhakkennes@int5:$ echo $ASE_ORCA_COMMAND /root/path/to/metaldock mhakkennes@int5:~$

If you copy your path here and run this command in the terminal it should work. You can also set it as environment variable in your shell script.

Let me know if it worked.

Regards,

Matthijs

Stefano-DFT commented 4 months ago

Dear Matthijs, Thank you very much for your response and sorry for the inconvenience. In the previous post, I forgot to declare it; however, I am still encountering the following error. Thanks again!

screenshot2

MatthijsHak commented 4 months ago

Could you try to install ase== 3.22.1? You can do that by typing pip install ase== 3.22.1

Layr-Allysson commented 4 months ago

I am experiencing the same issue. I followed all the instructions carefully, including setting up the PATH, configuring the ASE_ORCA_COMMAND, and ensuring the correct version of ase is installed. However, I am still encountering the "No configuration of orca" error. I have verified the PATH, checked file permissions, and ensured all necessary files are present. Despite these efforts, the problem persists.

Could you please provide further guidance on how to resolve this issue? Any help would be greatly appreciated.

Thank you.

Stefano-DFT commented 4 months ago

Dear Matthijs, I have installed the older version ase 3.22.1 as you suggested and now is correctly working, thanks a lot for your time !

MatthijsHak commented 4 months ago

Thanks for letting me know, probably there is something wrong with the latest ase version. I have adjusted the docs accordingly. @Layr-Allysson can you verify that this also works for you?

Layr-Allysson commented 4 months ago

Hi @MatthijsHak , I have redone all the steps, and now it is working correctly! Thank you very much for your help and guidance.