<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks Kenneth,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
That all worked fine. </div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I still don't know what was wrong with the other approach.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks again,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Peter.</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Chalkboard" color="black">Associate Professor Peter Johnston (FAustMS, FIMA)</font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<span style="color:black; font-family:Chalkboard; font-size:11pt">School of Environment and Science</span><br>
</div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,'Segoe UI','Segoe WP',Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font face="Calibri,sans-serif" size="2"><span style="font-size:11pt"><font face="Chalkboard" color="red"><b>Griffith University </b></font><font face="Chalkboard" color="black">| Nathan | QLD 4111 | Technology (N44) Room 3.19</font><font face="Chalkboard" color="black"><br>
T +61 7 373 57748| F +61 7 373 57656 Email </font><font face="Chalkboard"><font color="#0563C1"><a href="mailto:c.l.brown@griffith.edu.au" target="_blank" rel="noopener noreferrer">p.johnston@griffith.edu.au</a></font></font></span></font></div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> Kenneth Assogba <kennethassogba@gmail.com><br>
<b>Sent:</b> Thursday, 14 May 2020 10:21 PM<br>
<b>To:</b> Peter Johnston <p.johnston@griffith.edu.au><br>
<b>Cc:</b> gmsh@geuz.org <gmsh@geuz.org><br>
<b>Subject:</b> Re: [Gmsh] gmsh-sdk installation question</font>
<div> </div>
</div>
<div>
<div dir="ltr">
<div class="x_gmail_default" style="font-size:small">Good morning,<br>
<br>
I had the same problem a few weeks ago. You can try to: install gmsh in a <a href="https://docs.python.org/3/library/venv.html">
virtual env</a> or put it manually in python path :<br>
</div>
<div class="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_gmail_default" style="font-size:small">
<div style="color:rgb(212,212,212); background-color:rgb(30,30,30); font-family:"Droid Sans Mono",monospace,monospace,"Droid Sans Fallback"; font-size:14px; line-height:19px; white-space:pre">
<div><span style="color:rgb(103,150,230)">-</span> Enter in the home directory :</div>
<div><span style="color:rgb(220,220,170)">cd</span> ~</div>
<div><br>
</div>
<div><span style="color:rgb(103,150,230)">-</span> [<span style="color:rgb(206,145,120)">Download the SDK</span>](<span style="text-decoration-line:underline"><a href="http://gmsh.info/bin/">http://gmsh.info/bin/</a></span>)
 depending on your system</div>
<div>wget <a href="http://gmsh.info/bin/Linux/gmsh-4.5.6-Linux64-sdk.tgz">
http://gmsh.info/bin/Linux/gmsh-4.5.6-Linux64-sdk.tgz</a> -O /tmp/gmsh-sdk.tar.gz</div>
<div><span style="color:rgb(103,150,230)"><br>
</span></div>
<div><span style="color:rgb(103,150,230)">-</span> Uncompress it</div>
<div>tar -xvf /tmp/gmsh-sdk.tar.gz</div>
<div><br>
</div>
<div><span style="color:rgb(103,150,230)">-</span> Open the <span style="font-style:italic">
*~/.bashrc*</span> file and add to the last line</div>
<div><span style="color:rgb(86,156,214)">export</span> *PYTHONPATH=<span style="color:rgb(206,145,120)">"</span><span style="color:rgb(156,220,254)">${PYTHONPATH}</span><span style="color:rgb(206,145,120)">"</span>:~/gmsh-4.5.6-Linux64-sdk/lib/</div>
<div><br>
</div>
<div><span style="color:rgb(103,150,230)">-</span> source the <span style="font-style:italic">
*.bashrc*</span> file</div>
<div><span style="color:rgb(220,220,170)">source</span> ~/.bashrc</div>
<div><br>
</div>
<div><span style="color:rgb(103,150,230)">-</span> test if all is ok</div>
<div>python3 gmsh-4.5.6-Linux64-sdk/share/doc/gmsh/demos/api/t1.py</div>
<div><br>
</div>
</div>
</div>
<div class="x_gmail_default" style="font-size:small"><br>
</div>
<div class="x_gmail_default" style="font-size:small">Best regards,</div>
<div class="x_gmail_default" style="font-size:small">Kenneth,</div>
<div class="x_gmail_default" style="font-size:small"><br>
</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Thu, May 14, 2020 at 1:22 PM Peter Johnston <<a href="mailto:p.johnston@griffith.edu.au">p.johnston@griffith.edu.au</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
Hello,</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I have a question about gmsh/gmsh-sdk installation under python - I realise this is not a gmsh question exactly, so hope it is OK.</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I was trying to install gmsh and gmsh-sdk on a computer running ubuntu 18.04 using 'pip3 install gmsh' (I also tried 'pip3 install gmsh-sdk'). On my mac laptop (OSX 10.15.4) this works fine. It puts the appropriate python gmsh files under /usr/local/ and everything
 works fine. However under ubuntu it installed to files under $HOME/.local/ and python3 says it cannot find the gmsh module.  I have modified the PYTHONPATH variable to take into account $HOME/.local/, but this doesn't help.
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
I really don't know what is going on on two fronts:</div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<ol>
<li>I don't know why pip is installing things in different places between my two machines.</li><li>When I type print(sys.path) in python it points to the places where I think gmsh should be. Which files am I looking for exactly?</li></ol>
<div>After a long time trawling the internet, I couldn't find anything that would help me with these issues.</div>
<div><br>
</div>
<div>Any insights would be much appreciated.</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Peter.<br>
</div>
</div>
<div>
<div style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:12pt; color:rgb(0,0,0)">
<br>
</div>
<div id="x_gmail-m_-5137050229724254904Signature">
<div id="x_gmail-m_-5137050229724254904divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif">
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font face="Chalkboard" color="black">Associate Professor Peter Johnston (FAustMS, FIMA)</font></span></font></div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<span style="color:black; font-family:Chalkboard; font-size:11pt">School of Environment and Science</span><br>
</div>
<div style="color:rgb(33,33,33); font-family:wf_segoe-ui_normal,"Segoe UI","Segoe WP",Tahoma,Arial,sans-serif,serif,EmojiFont; font-size:15px; margin:0px">
<font size="2" face="Calibri,sans-serif"><span style="font-size:11pt"><font face="Chalkboard" color="red"><b>Griffith University </b></font><font face="Chalkboard" color="black">| Nathan | QLD 4111 | Technology (N44) Room 3.19</font><font face="Chalkboard" color="black"><br>
T +61 7 373 57748| F +61 7 373 57656 Email </font><font face="Chalkboard"><font color="#0563C1"><a href="mailto:c.l.brown@griffith.edu.au" rel="noopener noreferrer" target="_blank">p.johnston@griffith.edu.au</a></font></font></span></font></div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@onelab.info" target="_blank">gmsh@onelab.info</a><br>
<a href="http://onelab.info/mailman/listinfo/gmsh" rel="noreferrer" target="_blank">http://onelab.info/mailman/listinfo/gmsh</a><br>
</blockquote>
</div>
</div>
</body>
</html>