<p></p>
<p>If I create a file makehash.py with the following lines, I can run it in the terminal and get a hex hash.</p>
<pre>#!/usr/bin/python3
import hashlib
myhash = hashlib.pbkdf2_hmac('sha256',password="sw0rdf!sh".encode(),salt="NaCl".encode(),iterations=100000).hex()
print(myhash)
</pre>
<p>When I have the file up in geany and I press F5 or click the gear to run it from the IDE, I get this error:</p>
<pre>Traceback (most recent call last):
  File "geany_hashlib_bug.py", line 4, in 
    myhash = hashlib.pbkdf2_hmac('sha256',password="sw0rdf!sh".encode(),salt="NaCl".encode(),iterations=100000).hex()
AttributeError: 'str' object has no attribute 'hex'
</pre>
<hr>
<p>(program exited with code: 1)<br>
Press return to continue</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2563">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2NJHS4P7TSWYSV4FDR6DLP3ANCNFSM4PMS4DVA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJ3UEEWUVGOG5ZVC25TR6DLP3A5CNFSM4PMS4DVKYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4J6VTFZQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2563",
"url": "https://github.com/geany/geany/issues/2563",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>