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

Offline mode not usable: raise TypeError: Object of type VaspJob is not JSON serializable #447

Open
LuciusV opened this issue May 27, 2021 · 1 comment

Comments

@LuciusV
Copy link

LuciusV commented May 27, 2021

If you are unable to use the Discourse forum, you may submit an issue here, but you must clearly state the reason you are unable to use the Discourse forum in your ticket: according to
Bug reports should go directly to the GitHub Issues page.

Dear developers,
I set up local Mongodb database and run in bind to 0.0.0.0
After I start my workflow, it only completes VASP calculation, and then I got error in file ‘FW_job.error’ like this:
Traceback (most recent call last):
File “/home/sugon/venvs/atomate/lib/python3.7/site-packages/fireworks/core/rocket.py”, line 245, in run
Rocket.update_checkpoint(lp, launch_dir, launch_id, checkpoint)
File “/home/sugon/venvs/atomate/lib/python3.7/site-packages/fireworks/core/rocket.py”, line 442, in update_checkpoint
f_out.write(json.dumps(d, ensure_ascii=False))
File “/home/sugon/anaconda3/lib/python3.7/json/init.py”, line 238, in dumps
**kw).encode(obj)
File “/home/sugon/anaconda3/lib/python3.7/json/encoder.py”, line 199, in encode
chunks = self.iterencode(o, _one_shot=True)
File “/home/sugon/anaconda3/lib/python3.7/json/encoder.py”, line 257, in iterencode
return _iterencode(o, 0)
File “/home/sugon/anaconda3/lib/python3.7/json/encoder.py”, line 179, in default
raise TypeError(f’Object of type {o.class.name} ’
TypeError: Object of type VaspJob is not JSON serializable
Traceback (most recent call last):
File “/home/sugon/venvs/atomate/bin/rlaunch”, line 8, in
sys.exit(rlaunch())
File “/home/sugon/venvs/atomate/lib/python3.7/site-packages/fireworks/scripts/rlaunch_run.py”, line 154, in rlaunch
launch_rocket(launchpad, fworker, args.fw_id, args.loglvl, pdb_on_exception=args.pdb)
File “/home/sugon/venvs/atomate/lib/python3.7/site-packages/fireworks/core/rocket_launcher.py”, line 58, in launch_rocket
rocket_ran = rocket.run(pdb_on_exception=pdb_on_exception)
File “/home/sugon/venvs/atomate/lib/python3.7/site-packages/fireworks/core/rocket.py”, line 414, in run
d = json.loads(f_in.read())
File “/home/sugon/anaconda3/lib/python3.7/json/init.py”, line 348, in loads
return _default_decoder.decode(s)
File “/home/sugon/anaconda3/lib/python3.7/json/decoder.py”, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File “/home/sugon/anaconda3/lib/python3.7/json/decoder.py”, line 355, in raw_decode
raise JSONDecodeError(“Expecting value”, s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@LuciusV LuciusV changed the title VASP PBS Job completed, but FireWorks cannot proceed becaise of TypeError: Object of type VaspJob is not JSON serializable Offline mode not usable: raise TypeError: Object of type VaspJob is not JSON serializable May 28, 2021
@LuciusV
Copy link
Author

LuciusV commented May 28, 2021

This is major feature broken for clusters on which there is no chance to connect to external database. Please do something :(

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

1 participant