SMTK.

202 views
Skip to first unread message

M.Jasim

unread,
Jan 31, 2022, 2:27:21 PM1/31/22
to OpenQuake Users
Greeting.
I tried too much the installation of SMTK but all in vain. Please guide me how to install it.
I have already installed OQ 3.11.4 and Python(x,y)2.7.10.
I have gone through the manual but that looks like an outdated one because in manual it is stated to download oq.hazardlib, oq.nrmllib. But there at the official page of the OQ engine, it is stated that oq.hazardlib, oq.nrmllib are being merged and integrated in OQ.
I don't know what to do, Please anyone tell me how to install SMTK.
Best wishes.
Message has been deleted

Sonice

unread,
Feb 2, 2022, 1:46:55 AM2/2/22
to OpenQuake Users
Hi.
I am assuming you are trying to install in Windows. I also was in the same place, and tried numerous ways. Fortunately I found a way that worked for me.

A) Environmental Variables Setting Adjustment

> Enviromental variables> system variables > path (containing python 27)> Add path to openquake's python (My case: C:\Program Files\OpenQuake Engine\python3.6) and move it to the top

Check::

> Open CMD

>where python (openquake's python file location should come at top above python27/default python)


B) SMTK INSTALLATION::

>clone repository https://github.com/GEMScienceTools/gmpe-smtk and extract

> Make sure where python shows the oq-python at the top.

> In cmd--> change directory to extracted location (‘ for fig below; extracted to F:)

> In cmd --> python setup.py install

Smtk Instalation.png

PS This techniques works for other modules like hmtk, catalogue etc.

Hope this works for you. 

Thanks and Regards,
Sanish Bhochhibhoya

Michele Simionato

unread,
Feb 2, 2022, 4:03:29 AM2/2/22
to OpenQuake Users
Python 2.7 has been deprecated since 12 years ago, it does not look like a good plan to me.
The SMTK repository contains the correct installation instructions, please don't look at obsolete documentation
(where did you find it? we try to remove the obsolete documentation if we can):
         Michele Simionato

M.Jasim

unread,
Feb 2, 2022, 4:17:03 AM2/2/22
to openqua...@googlegroups.com
Hi.
Please find the attached file (GMPE-SMTK User Guide).
I have gone through this and spent a lot of time on it.
Thanks for your valuable comments and information you shared with me.
Many thanks.
Jasim.

--
You received this message because you are subscribed to a topic in the Google Groups "OpenQuake Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/openquake-users/RzgUrpU9lbE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to openquake-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openquake-users/912d15ba-a08c-498c-81a1-3e5ddbc4bfeen%40googlegroups.com.
gmpe_smtk_guide.pdf

Sonice

unread,
Feb 2, 2022, 4:29:08 AM2/2/22
to OpenQuake Users
There might be multiple methods to install smtk. However, I also remember the mentioned method in the document not working for me. Above mentioned method worked for me. Adding some detail to it, OpenQuake installation will install python 3.6 or 3.8 automatically. For windows, I had to add that python to env. variables list (that too before all other python locations), so that smtk installation occurs in the oq location. For developing codes and using modules, I use PyCharm (IDE). (Again assuming Windows installations).

Hope this clarifies a little.
Sanish

M.Jasim

unread,
Feb 2, 2022, 4:44:40 AM2/2/22
to openqua...@googlegroups.com
HI Sanish.
Yes I am installing it on window(10). I checked and applied the method you advised for me. I got this type of result. Please check the attached screenshots.
If there is an error then please let me know, because it looks a little different from that of your one.

CMD.jpg
smtk path change.jpg

Sonice

unread,
Feb 2, 2022, 5:30:38 AM2/2/22
to OpenQuake Users
Yes. That looks correct. Try installing SMTK and running it in your preferred IDE (PyCharm or Jupyter or any other), just like openquake.

M.Jasim

unread,
Feb 2, 2022, 5:38:34 AM2/2/22
to openqua...@googlegroups.com
Thank you so much Sanish.
After running the command "python setup.py install" in CMD, I got the following result. I hope everything is ready. If not then your comments are highly appreciated.
You can check as shown in the below attached file.
Best wishes.


CMD done.jpg

Sonice

unread,
Feb 2, 2022, 5:44:07 AM2/2/22
to OpenQuake Users
Yes, that should complete SMTK installation. Best Wishes.

M.Jasim

unread,
Feb 2, 2022, 5:46:02 AM2/2/22
to openqua...@googlegroups.com
Thank you so much for the help.
Best wishes.
jasim.

Reply all
Reply to author
Forward
0 new messages