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

关于nohup报错的问题 #11

Closed
wangze09 opened this issue Apr 29, 2024 · 2 comments
Closed

关于nohup报错的问题 #11

wangze09 opened this issue Apr 29, 2024 · 2 comments

Comments

@wangze09
Copy link

您好!
感谢您精彩的代码,我目前运行的时候出现了一个小问题,烦请您抽空查看一下。就是我直接在服务器运行动力学模拟相关的Python文件时是没有问题的,但是我一旦nohup python之后就会出现如下报错:RuntimeError: Amber or AmberTools is not installed or not in PATH. 由于后续超算上面不能直接在登录节点直接运行相关python命令,还是需要进行nohup后台挂起;请问这个问题应该如何解决呢?

@CyberCatQ
Copy link
Owner

CyberCatQ commented May 16, 2024

您好,首先感谢您对pyCADD的使用。
pyCADD设计之初仅用于本地服务器计算,尚未在超算/云服务器上进行过测试,给您带来不便感到抱歉。

您提到的错误RuntimeError: Amber or AmberTools is not installed or not in PATH.是因为当前的shell环境中,pyCADD未能找到Amber/AmberTools相关二进制可执行文件,这通常可能是因为运行Amber任务前未执行过source $AMBERHOME/amber.sh导致的(AMBERHOME为您的amber安装目录)。

根据我的经验,您可以编写一个shell脚本文件(如submit.sh),在其中首先写入 source $AMBERHOME/amber.sh 后再调用您的python指令,如python script.py,并使用slurm等作业调度系统提交任务,或尝试使用nohup bash submit.sh等其他方式开始运行任务。关于超算/云服务器任务提交的必要步骤,请进一步咨询您的超算服务器管理员。

@wangze09
Copy link
Author

好的,我了解啦,非常感谢您的耐心解答!

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