Hi Im working Canada SHM6 and I have read the Manuel. The prescribed way does not match the calculation principles.
Also I was wondering if the code in the advanced manuel is correct.
I used the exactly same command
with logs.init('job','/Users/huanruzhu/Desktop/CanadaSHM6/OpenQuake_model_files/runfiles/east/CanadaSHM6-trial_EastCollapsedSimple_140.mps.ini') as log:
calc = calculators(log.get_oqparam(), log.calc_id)
print("OQ good to go!")
calc.run()
but it raises error
Traceback (most recent call last):
File "/Users/huanruzhu/Desktop/SHM6 Python/main.py", line 63, in <module>
with logs.init('job','/Users/huanruzhu/Desktop/CanadaSHM6/OpenQuake_model_files/runfiles/east/CanadaSHM6-trial_EastCollapsedSimple_140.mps.ini') as log:
File "/Users/huanruzhu/PycharmProjects/OpenQuake/venv/lib/python3.10/site-packages/openquake/commonlib/logs.py", line 261, in init
return LogContext(job_ini, calc_id, log_level, log_file, user_name, hc_id)
File "/Users/huanruzhu/PycharmProjects/OpenQuake/venv/lib/python3.10/site-packages/openquake/commonlib/logs.py", line 173, in __init__
self.calc_id = dbcmd(
File "/Users/huanruzhu/PycharmProjects/OpenQuake/venv/lib/python3.10/site-packages/openquake/commonlib/logs.py", line 49, in dbcmd
res = sock.send((action,) + args)
File "/Users/huanruzhu/PycharmProjects/OpenQuake/venv/lib/python3.10/site-packages/openquake/baselib/zeromq.py", line 164, in send
raise TimeoutError(
openquake.baselib.zeromq.TimeoutError: While sending ('create_job', '/Users/huanruzhu/oqdata', 'classical', 'CanadaSHM6-trial Eastern Canada Collapsed Rates Simple Vs30=140m/s ALL EASTERN CITIES', None, None); probably the DbServer is off