<div dir="ltr"><div style class="markdown-here-wrapper"><p style="margin:1.2em 0px!important">I doubt this has anything to do with gmsh itself: the error you’re getting is obviously related to a unicode decoding.</p>
<p style="margin:1.2em 0px!important">Also, your problem on this mailing list is not well-defined: what is this gshhs2geo.py, where does it come from? All I can see for now is that this script is calling a python method for which we don’t have the source:<br><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline">binh = fgshhs.read(11 * 4)</code></p>
<p style="margin:1.2em 0px!important">It is possible the developer of this script intended it to be used only on python2.x, not python3.x, which is apparently what you’re using. Check with the developer of this script to solve your error.</p>
<div title="MDH:PGRpdj48ZGl2PkkgZG91YnQgdGhpcyBoYXMgYW55dGhpbmcgdG8gZG8gd2l0aCBnbXNoIGl0c2Vs
ZjogdGhlIGVycm9yIHlvdSdyZSBnZXR0aW5nIGlzIG9idmlvdXNseSByZWxhdGVkIHRvIGEgdW5p
Y29kZSBkZWNvZGluZy48YnI+PGJyPjwvZGl2PkFsc28sIHlvdXIgcHJvYmxlbSBvbiB0aGlzIG1h
aWxpbmcgbGlzdCBpcyBub3Qgd2VsbC1kZWZpbmVkOiB3aGF0IGlzIHRoaXMgZ3NoaHMyZ2VvLnB5
LCB3aGVyZSBkb2VzIGl0IGNvbWUgZnJvbT8gQWxsIEkgY2FuIHNlZSBmb3Igbm93IGlzIHRoYXQg
dGhpcyBzY3JpcHQgaXMgY2FsbGluZyBhIHB5dGhvbiBtZXRob2QgZm9yIHdoaWNoIHdlIGRvbid0
IGhhdmUgdGhlIHNvdXJjZTo8YnI+YGBgPHNwYW4gc3R5bGU9ImNvbG9yOiByZ2IoMCwgMCwgMCk7
IGZvbnQtZmFtaWx5OiBWZXJkYW5hLEFyaWFsLCZxdW90O0JpdHN0cmVhbSBWZXJhIFNhbnMmcXVv
dDssSGVsdmV0aWNhLHNhbnMtc2VyaWY7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mxlIHRoZSBkZXZlbG9wZXIgb2YgdGhpcyBzY3JpcHQgaW50ZW5kZWQgaXQg
dG8gYmUgdXNlZCBvbmx5IG9uIHB5dGhvbjIueCwgbm90IHB5dGhvbjMueCwgd2hpY2ggaXMgYXBw
YXJlbnRseSB3aGF0IHlvdSdyZSB1c2luZy4gQ2hlY2sgd2l0aCB0aGUgZGV2ZWxvcGVyIG9mIHRo
aXMgc2NyaXB0IHRvIHNvbHZlIHlvdXIgZXJyb3IuPGJyPjwvc3Bhbj4=" style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0">​</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-01-10 15:17 GMT+01:00 Mohammad Kazem <span dir="ltr"><<a href="mailto:mksharifian@gmail.com" target="_blank">mksharifian@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF" text="#000000">
    <div>Hi everyone,</div>
    <div><br>
    </div>
    <div>I'm trying to run the script <u>gshhs2geo.py</u> to create
      .geo files, but i got this error.</div>
    <div><br>
    </div>
    <div>Any advice?<br>
    </div>
    <div><br>
    </div>
    <div>Thanks,</div>
    <div>Mohammad</div>
    <span style="color:rgb(0,0,0);font-family:Verdana,Arial,'Bitstream Vera Sans',Helvetica,sans-serif;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;display:inline!important;float:none;background-color:rgb(255,255,255)"><br>
      <br>
      Traceback (most recent call last):<br>
        File
      "C:\Users\Desktop\OceanModels\FVCOM\meshGeneration\meshGeneration\gshhs2geo.py",
      line 81, in <module><br>
          binh = fgshhs.read(11 * 4)<br>
        File "C:\Python33\lib\encodings\cp1252.py", line 23, in decode<br>
          return
      codecs.charmap_decode(input,self.errors,decoding_table)[0]<br>
      UnicodeDecodeError: 'charmap' codec can't decode byte 0x81 in
      position 138: character maps to <undefined><br>
    </span>
  </div>

<br>_______________________________________________<br>
gmsh mailing list<br>
<a href="mailto:gmsh@geuz.org">gmsh@geuz.org</a><br>
<a href="http://www.geuz.org/mailman/listinfo/gmsh" target="_blank">http://www.geuz.org/mailman/listinfo/gmsh</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature">

Oliver Willekens<br>
PhD Student <br>

<a href="https://lcp.elis.ugent.be/" target="_blank"><img src="http://lcp.elis.ugent.be/sites/lcp.elis.ugent.be/files/logo.jpg" alt="LCP group logo" style="float:left;margin-right:20px;margin-top:20px"></a>
<p style="margin-top:20px">
Liquid Crystals & Photonics Group <br>
Sint- Pietersnieuwstraat 41 <br>
9000 Gent <br>
Phone: +32 9 264.89.51
</p>




</div>
</div>