Hi there,
I am trying to get the data from a calculation conducted in Orca into .fchk format so it can be read by another program. First I tried to do it by converting Orca's .gbw file into .molden input through Orca's orca_2mkl utility, but, after converting to .fchk the other program would not read the .fchk file (apparently something is missing from it).
Considering the molden input has far less information in it than I thought (according to the table in your documentation), I decided to try doing the conversion with a .wfx file instead, again converting the .gbw file through Orca's orca_2aim utility. However, for some reason, when I try to run the command iodata-convert apost-test-calc.wfx apost-test-calc.fchk, I get an error message I don't fully understand:
Traceback (most recent call last):
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/api.py", line 183, in load_one
return IOData(**format_module.load_one(lit, **kwargs))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/formats/wfx.py", line 232, in load_one
data = load_data_wfx(lit)
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/formats/wfx.py", line 126, in load_data_wfx
data = parse_wfx(lit, required_tags)
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/formats/wfx.py", line 213, in parse_wfx
data[section_start].append(line)
~~~~^^^^^^^^^^^^^^^
KeyError: None
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/bin/iodata-convert", line 8, in <module>
sys.exit(main())
~~~~^^
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/__main__.py", line 146, in main
convert(args.input, args.output, args.many, args.infmt, args.outfmt, args.allow_changes)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/__main__.py", line 137, in convert
dump_one(load_one(infn, fmt=infmt), outfn, allow_changes=allow_changes, fmt=outfmt)
~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/api.py", line 148, in inner
result = func(*args, **kwargs)
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/api.py", line 189, in load_one
raise LoadError("Uncaught exception while loading file.", lit) from exc
iodata.utils.LoadError: Uncaught exception while loading file. (apost-test-calc.wfx:1)
What exactly does this error message mean? Is there anything I can/need to edit in the .wfx file to make it work?
In case it's relevant, I'm running this on my MacBook Pro M1 Max using Python 3.13.5. I've also attached the Orca output, .gbw and generated .wfx files below.
Also, slightly related, IOData doesn't seem to recognise the .json_qcschema file type, as it gives the error:
Traceback (most recent call last):
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/bin/iodata-convert", line 8, in <module>
sys.exit(main())
~~~~^^
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/__main__.py", line 146, in main
convert(args.input, args.output, args.many, args.infmt, args.outfmt, args.allow_changes)
~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/__main__.py", line 137, in convert
dump_one(load_one(infn, fmt=infmt), outfn, allow_changes=allow_changes, fmt=outfmt)
~~~~~~~~^^^^^^^^^^^^^^^^^
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/api.py", line 148, in inner
result = func(*args, **kwargs)
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/api.py", line 180, in load_one
format_module = _select_format_module(filename, "load_one", fmt)
File "/Users/xxxxxxxxxxxxxx/Library/Python/3.13/lib/python/site-packages/iodata/api.py", line 86, in _select_format_module
raise FileFormatError(f"Cannot find file format with feature {attrname}", filename)
iodata.utils.FileFormatError: Cannot find file format with feature load_one (apost-test-calc.json_qcschema)
Let me know if there's anything else you need!
apost-test-calc.gbw.txt
apost-test-calc.out.txt
apost-test-calc.wfx.txt
Hi there,
I am trying to get the data from a calculation conducted in Orca into
.fchkformat so it can be read by another program. First I tried to do it by converting Orca's.gbwfile into.moldeninput through Orca'sorca_2mklutility, but, after converting to.fchkthe other program would not read the.fchkfile (apparently something is missing from it).Considering the molden input has far less information in it than I thought (according to the table in your documentation), I decided to try doing the conversion with a
.wfxfile instead, again converting the.gbwfile through Orca'sorca_2aimutility. However, for some reason, when I try to run the commandiodata-convert apost-test-calc.wfx apost-test-calc.fchk, I get an error message I don't fully understand:What exactly does this error message mean? Is there anything I can/need to edit in the
.wfxfile to make it work?In case it's relevant, I'm running this on my MacBook Pro M1 Max using Python 3.13.5. I've also attached the Orca output,
.gbwand generated.wfxfiles below.Also, slightly related, IOData doesn't seem to recognise the
.json_qcschemafile type, as it gives the error:Let me know if there's anything else you need!
apost-test-calc.gbw.txt
apost-test-calc.out.txt
apost-test-calc.wfx.txt