question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ORCA excited state optimization logfiles sometimes raise AttributeError: 'numpy.ndarray' object has no attribute 'append'

See original GitHub issue

I just found a strange error with an excited state optimization when calling ccobj.parse():

[ORCA last/porphine.out INFO] Creating attribute metadata: {}
[ORCA last/porphine.out INFO] Creating attribute charge: 0
[ORCA last/porphine.out INFO] Creating attribute geotargets[]
[ORCA last/porphine.out INFO] Creating attribute natom: 38
[ORCA last/porphine.out INFO] Creating attribute atomnos[]
[ORCA last/porphine.out INFO] Creating attribute atomcoords[]
[ORCA last/porphine.out INFO] Creating attribute atommasses[]
[ORCA last/porphine.out INFO] Creating attribute gbasis[]
[ORCA last/porphine.out INFO] Creating attribute nbasis: 498
[ORCA last/porphine.out INFO] Creating attribute mult: 1
[ORCA last/porphine.out INFO] Creating attribute scfvalues[]
[ORCA last/porphine.out INFO] Creating attribute scfenergies[]
[ORCA last/porphine.out INFO] Creating attribute scftargets[]
[ORCA last/porphine.out INFO] Creating attribute moenergies[]
[ORCA last/porphine.out INFO] Creating attribute homos[]
[ORCA last/porphine.out INFO] Creating attribute aonames[]
[ORCA last/porphine.out INFO] Creating attribute atombasis[]
[ORCA last/porphine.out INFO] Creating attribute mocoeffs[]
[ORCA last/porphine.out INFO] Creating attribute atomcharges: {}
[ORCA last/porphine.out INFO] Creating attribute etsecs[]
[ORCA last/porphine.out INFO] Creating attribute etenergies[]
[ORCA last/porphine.out INFO] Creating attribute etsyms[]
[ORCA last/porphine.out INFO] Creating attribute transprop: {}
[ORCA last/porphine.out INFO] Creating attribute etoscs[]
[ORCA last/porphine.out INFO] Creating attribute etrotats[]
[ORCA last/porphine.out INFO] Creating attribute grads[]
[ORCA last/porphine.out INFO] Creating attribute geovalues[]
Traceback (most recent call last):
  File "/usr/local/bin/noivibs", line 11, in <module>
    load_entry_point('pyrrole', 'console_scripts', 'noivibs')()
  File "/mnt/Files/Dropbox/Dropbox/pyrrole/pyrrole/scripts/noivibs.py", line 30, in cli
    mol = read_cclib(path)
  File "/mnt/Files/Dropbox/Dropbox/pyrrole/pyrrole/atoms.py", line 1765, in read_cclib
    ccdata = ccobj.parse()
  File "/mnt/Files/Dropbox/Dropbox/cclib/cclib/parser/logfileparser.py", line 329, in parse
    self.extract(inputfile, line)
  File "/mnt/Files/Dropbox/Dropbox/cclib/cclib/parser/orcaparser.py", line 776, in extract
    self.etenergies.append(float(broken[-2]))
AttributeError: 'numpy.ndarray' object has no attribute 'append'

The logfile is attached (logfile.zip). Any clues?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
langnercommented, May 23, 2019

In that case #741 should help.

1reaction
langnercommented, May 23, 2019

Confirmed on master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix: 'numpy.ndarray' object has no attribute 'append'
This error occurs when you attempt to append one or more values to the end of a NumPy array by using the append()...
Read more >
'numpy.ndarray' object has no attribute 'append' - Stack Overflow
Appending to a numpy array is very inefficient as it copies the array (plus the new element) each time you append to it....
Read more >
'numpy.ndarray' object has no attribute 'append' Solution
ndarray' object has no attribute 'append' error is caused by using the append() method to add an item to a NumPy array.
Read more >
Clinton Brownley's Decision Analytics | Critical Thinking and ...
I hope that by following along with this tutorial and experimenting with the techniques you now feel more comfortable scraping, geocoding, and mapping...
Read more >
Python for Bioinformatics - The Swiss Bay
it in my own time, Python was used in the Amoeba project with increasing ... AttributeError: 'tuple' object has no attribute 'append'. >>>...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found