'NONETYPE' OBJECT IS NOT SUBSCRIPTABLE

35 views
Skip to first unread message

Homayoun Tashak

unread,
Dec 8, 2020, 5:46:15 PM12/8/20
to OpenQuake Users
HI EVERYONE !! did you ever run into such error? D you have any Idea hw can I fix this?

thank you for helping me!!

Homayoun Tashak

unread,
Dec 9, 2020, 8:11:18 AM12/9/20
to OpenQuake Users
come on fellows!! give me something...

Graeme Weatherill

unread,
Dec 9, 2020, 8:25:55 AM12/9/20
to openqua...@googlegroups.com
The error you are referring to is a standard Python error, which means the problem could be anywhere or anything in the calculation. If you want help from the mailing list you will need to provide more information than this, such as the full error message, the calculation log, the job.ini, what sort of calculation you are trying to run etc.

Please follow the general guidance for the mailing list:

If you have troubles with the OpenQuake Engine or any of the OpenQuake tools please provide these information when requesting support:
  • The operating system where the Engine is installed
  • How the installation has been made (Linux packages, installers, Docker, pip)
  • The version of the Engine you are using (oq engine --version)
  • If possible, the input files you used when you encountered the problem. If they can not be publicly disclosed, send them directly to engine....@openquake.org


--
You received this message because you are subscribed to the Google Groups "OpenQuake Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/98231831-9478-4fad-a7a9-3dd6c5478066n%40googlegroups.com.


Homayoun Tashak

unread,
Dec 9, 2020, 11:56:34 AM12/9/20
to OpenQuake Users
I run oq engine on desktp win 10 
my oq version is 3.8.1

event_based_PHSA.rar

Michele Simionato

unread,
Dec 10, 2020, 12:14:39 AM12/10/20
to OpenQuake Users
The most important thing to send is the log with the full traceback of the error. I run the files you sent on my laptop and got

[2020-12-10 06:05:50 #459 WARNING] Using over 92% of the memory in x360!
[2020-12-10 06:06:24 #459 INFO] sample_ruptures  16% [5 submitted, 7 queued]
[2020-12-10 06:06:24 #459 INFO] Received {'rup_array': '5.68 MB', 'calc_times': '1023 B', 'eff_ruptures': '118 B', 'tot': '4 B'} in 107 seconds
[2020-12-10 06:06:24 #459 CRITICAL] 
Traceback (most recent call last):
  File "/home/michele/oq-engine/openquake/calculators/base.py", line 243, in run
    self.result = self.execute()
  File "/home/michele/oq-engine/openquake/calculators/event_based.py", line 273, in execute
    self.build_events_from_sources()
  File "/home/michele/oq-engine/openquake/calculators/event_based.py", line 141, in build_events_from_sources
    rup_array = dic['rup_array']
TypeError: 'NoneType' object is not subscriptable
Traceback (most recent call last):
  File "/home/michele/py38/bin/oq", line 11, in <module>
    load_entry_point('openquake.engine', 'console_scripts', 'oq')()
  File "/home/michele/oq-engine/openquake/commands/__main__.py", line 54, in oq
    parser.callfunc()
  File "/home/michele/oq-engine/openquake/baselib/sap.py", line 181, in callfunc
    return self.func(**vars(namespace))
  File "/home/michele/oq-engine/openquake/baselib/sap.py", line 251, in main
    return func(**kw)
  File "/home/michele/oq-engine/openquake/commands/run.py", line 163, in run
    return _run(job_ini, concurrent_tasks, calc_id, pdb,
  File "/home/michele/oq-engine/openquake/commands/run.py", line 124, in _run
    calc.run(concurrent_tasks=concurrent_tasks, pdb=pdb,
  File "/home/michele/oq-engine/openquake/calculators/base.py", line 243, in run
    self.result = self.execute()
  File "/home/michele/oq-engine/openquake/calculators/event_based.py", line 273, in execute
    self.build_events_from_sources()
  File "/home/michele/oq-engine/openquake/calculators/event_based.py", line 141, in build_events_from_sources
    rup_array = dic['rup_array']
TypeError: 'NoneType' object is not subscriptable

From the first line of the log "Using over 92% of the memory in x360!" it is clear that I am running out of memory.
The EMME model is big, you cannot expect to run it on a small machine.

                   Michele

Reply all
Reply to author
Forward
0 new messages