VASP Parser Error — electronicparsers

Hi NOMAD Team,

I am trying to upload my VASP calculations to NOMAD. Most of them were done successfully, while several files encountered parsing errors as follows:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.12/site-packages/nomad/processing/data.py", line 1577, in parsing
    parser.parse(
  File "/opt/venv/lib/python3.12/site-packages/nomad/parsing/parser.py", line 483, in parse
    self.mainfile_parser.parse(mainfile, archive, logger)
  File "/opt/venv/lib/python3.12/site-packages/electronicparsers/vasp/parser.py", line 2429, in parse
    self.parse_configurations()
  File "/opt/venv/lib/python3.12/site-packages/electronicparsers/vasp/parser.py", line 2269, in parse_configurations
    time = self.parser.get_time_calc(n)[-1]
           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^
TypeError: 'float' object is not subscriptable

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/venv/lib/python3.12/site-packages/nomad/workflows/activities.py", line 66, in process_entry_activity
    entry._process_entry_local()
  File "/opt/venv/lib/python3.12/site-packages/nomad/processing/data.py", line 1420, in _process_entry_local
    self.parsing()
  File "/opt/venv/lib/python3.12/site-packages/nomad/processing/data.py", line 1585, in parsing
    raise ProcessFailure(
nomad.processing.base.ProcessFailure: parser failed with exception

Some other calculations used a similar setting have been parsed correctly. In addition, these calculations were completed, and I could find the result analysis in their Entry DATA, even though the Entry failed.

Could you please help me fix this error or give me any suggestions? Let me know if you need my vasprun.xml file.

Thanks,
Junchi

Dear Junchi, I already tracked down the broken code. Opened an issue and will try to put in a fix asap. Pls share a sample submission (or an entry ID when published) so I can verify the fix.

Thanks, Nathan. I have uploaded a VASP calculation example to your Harden Time Extraction issue page. Please let me know if you need any additional information from me.

Dear @Jiongci did you try reprocessing your uploads via the following link: https://nomad-lab.eu/prod/v1/test/gui/search/entries
Let me know what results you get

Hi @NateD, I didn’t find the link before, but I tried today. Unfortunately, I got the same failure uploading as last time.

I can add you to this upload if you think that will be more convenient for testing (Let me know which one I should click). Or I can just send those failed examples to you by email as well.

Screenshot 2025-12-11 at 2.52.27 PM

Thanks,
Junchi

@Jiongci either user is fine, I have access to both accounts. Will take a look then and report back.

Great, thanks! I have invited you to a dataset that only contains 22 failed examples. Let me know if you need anything else from me.

Dear @Jiongci I managed to find your upload last week Friday. When returning today, I can’t however find it back anymore. Did you perhaps delete or otherwise modify the upload?

Hi @NateD, nope, it’s still there, and you are in the list.

Hi @NateD, I manually modified the timestamp in vasprun.xml to pass the parsing, and all the data are now successfully uploaded.

I have attached the most extreme example here and hope it can help you improve the parsing code. In this vasprun.xml, the value of time name in all scstep (e.g., line 1005) is missing a space, which further results in the final totalsc in the energy block (i.e., line 1138) mistakenly showing as ****************.

I don’t know why this case happened, since there are some other calculations that work well using the same machine. I also tried to re-run the special cases, but got the same problem. Anyway, hope this special case can be helpful!

timestamp_fail_example.zip (4.5 MB)

Dear Jiongci, that’s very useful information. Thank you for trying this out and reporting back.

Right now, I’m on holidays, but will take a look at this between 29th-30th December.

Happy holidays!

1 Like

Sure! It’s not very urgent for me, since I’ve already successfully uploaded the data. Enjoy your holiday!

Dear @Jiongci , could you try uploading to the develop server, which has the nightly build? I tried that one myself and it seems to be passing fine (see screenshot below). Publishing there gives your entries global visibility, what test doesn’t really do. My apologies for the inconvenience.

On the upside, the fix you found exactly matches the patch I implemented. It really just came down to a delay in roll-out on test. Also my thanks to @ahmedilyas for his insight on the exact deployments!

P.s.: we recommend using develop solely for reprocessing with very recent patch releases. Generally, you should default to stable (or staging). They all share the same DB, so if stable fails, you can enter your uploads via the other links and try reprocessing without ever having to upload again. test and test-oasis are the sole exceptions here.

1 Like

Hi @NateD, I tried it using the develop branch, and it works. Thanks for your help!

1 Like

Glad to hear that! You can also publish your entries there when you feel ready. Feel free to delete the upload on test.