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

Problem during restarting a file from seed #1902

Closed
arnab37 opened this issue Feb 27, 2020 · 1 comment
Closed

Problem during restarting a file from seed #1902

arnab37 opened this issue Feb 27, 2020 · 1 comment

Comments

@arnab37
Copy link

arnab37 commented Feb 27, 2020

Hi,

I was trying to understand how restarting works in rmg using ethane oyrolysis input file from rmg webste. To understand that, I initially ran that without "restartFromSeed(path='seed')" and after that I ran another file after adding "restartFromSeed(path='seed')" before the data sources.

I am getting the following error message:

Error: The input file "/home/abose/input.py" was invalid:
Error: name 'restartFromSeed' is not defined
Traceback (most recent call last):
File "/home/abose/yes/envs/rmg_env/lib/python2.7/site-packages/rmgpy/rmg/input.py", line 541, in readInputFile
exec f in global_context, local_context
File "/home/abose/input.py", line 1, in
restartFromSeed(path='seed')
NameError: name 'restartFromSeed' is not defined
Traceback (most recent call last):
File "/home/abose/yes/envs/rmg_env/bin/rmg.py", line 173, in
main()
File "/home/abose/yes/envs/rmg_env/bin/rmg.py", line 167, in main
rmg.execute(**kwargs)
File "/home/abose/yes/envs/rmg_env/lib/python2.7/site-packages/rmgpy/rmg/main.py", line 599, in execute
self.initialize(**kwargs)
File "/home/abose/yes/envs/rmg_env/lib/python2.7/site-packages/rmgpy/rmg/main.py", line 422, in initialize
self.loadInput(self.inputFile)
File "/home/abose/yes/envs/rmg_env/lib/python2.7/site-packages/rmgpy/rmg/main.py", line 223, in loadInput
readInputFile(path, self)
File "/home/abose/yes/envs/rmg_env/lib/python2.7/site-packages/rmgpy/rmg/input.py", line 541, in readInputFile
exec f in global_context, local_context
File "/home/abose/input.py", line 1, in
restartFromSeed(path='seed')
NameError: name 'restartFromSeed' is not defined

I would really appreciate if anybody could help me with this issue.
Thanks,
Arnab

@amarkpayne
Copy link
Member

Hi Arnab,

Based on the traceback, it looks like you are using an old python 2 version of RMG-Py. Unfortunately, this feature did not become available until recently with python 3. We did incorporate these changes into our legacy python 2 branch v2.5.0, but if possible I highly recommend upgrading to RMG-Py 3.0.0. You can find instructions for updating your RMG installation here.

Let us know how this goes!

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

No branches or pull requests

2 participants