Gaussian output not recognized

Thank you for all your hard work developing Avogadro2.

I believe this to be a bug with Avogadro:
(Please describe your bug or issue)

Environment Information

Avogadro version: Avogadro2 1.102.1 Nightly Build
Operating system and version: windows 11

Actual Behavior

On opening a Gaussian .out file, the following dialog appears:
“Error while reading file ‘C:/Users/~~.out’:”
I am unable to open the Gaussian output file in Avogadro2.

Steps to Reproduce
・File → Open or drug and drop the Gaussian .out file.
・Observe the error dialog indicating that the file cannot be read.

It would really help to have the file. Can you post a link to it?

If you can’t share it publicly, please send me an e-mail or message on the forum with the file.

I have sent the file to you via message.
The file I sent contains a simple structure-optimized water monomer; however, the same error occurs regardless of the molecular size or complexity.

It works for me. I assume you can read other kinds of files (e.g., xyz, pdb, sdf, etc.)?

Can you read an fchk file from Gaussian?

I apologize for my delayed response.
Since I do not usually work with .fchk files, I am not sure whether I can load them. I will try if I have time.
As far as I recall, I was able to read .xyz and .pdb files without any issues.

Could it be that I have misconfigured something on my side?

I was able to prepare the fchk file and tested it on my side.

The fchk file could be loaded successfully; however, the output file still could not be read.

If I no longer have the .fchk or .chk file, but I do have the output file, is it possible to generate a new .fchk file without redoing the entire calculation? Probably not, but it’s worth asking.

No, Gaussian does not include the basis or orbital information in the output, only the chk or fchk files.

This might have already been addressed in another thread, but I wanted to share my experience.

I am also unable to open .out files with Avogadro2 on Windows 11. As a workaround, I use OpenBabel to convert the final structure into an .xyz file.

If you’re just looking for the final structure, OpenBabel is a quick fix. If you need the orbitals, perhaps you could perform a single-point calculation on the optimized structure to get the .chk file.

Can you post an example file as well? I’d like to figure out why this isn’t working - particularly if this is a pattern of Windows users unable to open .out files…

Do other kinds of files work? Or is it just reading .out?

Oh, another question - also for @davidshobe - the .out processing has to figure out the file type and then read it. If you change the extension to something like .g09 or .g16 (i.e., it can only be a Gaussian file) does it work?

Thanks - I’d definitely like to get this fixed…

I am currently unable to open .out files generated by Gaussian 16 geometry optimization calculations. Interestingly, the application successfully opens .out files generated by ORCA for the same type of calculations.

I have attempted to resolve this by changing the file extension to .g09 and .g16; however, the files still failed to load. As I previously reported, I can successfully open .fchk files generated by Gaussian.

I hope this information is of assistance for your investigation.

exam.out (21.4 KB)

Thanks, that’s very helpful. Sounds like it’s in the Gaussian reader on Windows. I can read it okay on my Mac.

No, the same file renamed to hepta135triene.g09 does not open either.

BUT, it now says “OpenBabel error: conversion failed” With the .out file, this second line does not appear.

Out of curiosity, I also tested .out files from GAMESS-US. While the files loaded, the frequency results were missing, and the molecular orbitals did not render correctly.

GAMESS_exam.out (639.2 KB)

It’s been a very long time since I’ve used GAMESS-US, and I’m sure the output format has changed significantly since anyone’s touched that particular import code. I can take a look, but it’ll be somewhat lower priority.

I am experiencing the same issue with Gaussian .log files and on Avogadro 2.0.0 on Windows 11. I have also tried renaming to .g16 but still get an OpenBabel conversion error.