Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pymolcas location #8

Closed
ramess101 opened this issue Feb 4, 2020 · 3 comments
Closed

pymolcas location #8

ramess101 opened this issue Feb 4, 2020 · 3 comments

Comments

@ramess101
Copy link

I am a new SHARC user and also new to OpenMOLCAS. I was able to successfully build OpenMOLCAS (v18.09) and SHARC v2.1. With both programs built, I tried to walk through the SHARC tutorial. I made it to page 19 without any issues. But when I tried to run run.sh in ICOND_00000 I received the following error in QM.out:

Could not find MOLCAS driver in $MOLCAS/bin

This error is associated with the molcas_input.py script lines 1021-1027:

if os.path.isfile(os.path.join(INFOS['molcas'],'bin','pymolcas')): string+='\n$MOLCAS/bin/pymolcas MOLCAS.input &> $CurrDir/MOLCAS.log\n\n' elif os.path.isfile(os.path.join(INFOS['molcas'],'bin','molcas.exe')): string+='\n$MOLCAS/bin/molcas.exe MOLCAS.input &> $CurrDir/MOLCAS.log\n\n' else: print 'Could not find MOLCAS driver in %s' % os.path.join(INFOS['molcas'],'bin') sys.exit(1)

My environment variable $MOLCAS points to a /build directory. According to this error, I should have pymolcas in /build/bin. However, pymolcas is actually located in my conda virtual environment /bin. I have tried just copying pymolcas into /build/bin but that just results in further errors associated with file paths. My question is, where should OpenMOLCAS have built pymolcas?

Please let me know if there is any additional information I can provide to clarify my issue.

Thank you

@ramess101
Copy link
Author

To be clear, my $MOLCAS variable is compliant with Table 2.1 in the manual:

image

@markusoppel
Copy link
Member

Richard,

there are still some issues with trying to be compatible with both MOLCAS and OpenMOLCAS.
Copying the pymolcas driver into $MOLCAS/bin should work. Maybe you add, in addition, $MOLCAS/bin explicitly to your path?

@ramess101
Copy link
Author

Thank you for the reply. I realized that, for some reason, in certain directories my MOLCAS environment variable was being reset to the default path. But this issue appears to be resolved by explicitly defining the MOLCAS variable in my bash input script.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants