<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: problem with hashlib in python in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-hashlib-in-python/m-p/4393413#M681765</link>
    <description>were did this python version come from? seems like it can't import md5, try to 'import md5'.&lt;BR /&gt;&lt;BR /&gt;could also be that some environments are not set so python is not finding all your modules.&lt;BR /&gt;&lt;BR /&gt;all vars are listed here:&lt;BR /&gt;&lt;A href="http://docs.python.org/using/cmdline.html#environment-variables" target="_blank"&gt;http://docs.python.org/using/cmdline.html#environment-variables&lt;/A&gt;</description>
    <pubDate>Fri, 03 Apr 2009 04:33:32 GMT</pubDate>
    <dc:creator>dirk dierickx</dc:creator>
    <dc:date>2009-04-03T04:33:32Z</dc:date>
    <item>
      <title>problem with hashlib in python</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-hashlib-in-python/m-p/4393412#M681764</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;I have problem with import hashlib in python. I found this:&lt;BR /&gt;$ python&lt;BR /&gt;  Python 2.5.1 (r251:54863, Nov  7 2007, 22:40:57) [C] on hp-ux11&lt;BR /&gt;  Type "help", "copyright", "credits" or "license" for more information.&lt;BR /&gt;  &amp;gt;&amp;gt;&amp;gt; import hashlib&lt;BR /&gt;  Traceback (most recent call last):&lt;BR /&gt;    File "&lt;STDIN&gt;", line 1, in &lt;MODULE&gt;&lt;BR /&gt;    File "/usr/local/lib/python2.5/hashlib.py", line 133, in &lt;MODULE&gt;&lt;BR /&gt;      md5 = __get_builtin_constructor('md5')&lt;BR /&gt;    File "/usr/local/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor&lt;BR /&gt;      import _md5&lt;BR /&gt;  ImportError: No module named _md5&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;After this I tried import _hashlib, and I've got this output:&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; import _hashlib&lt;BR /&gt;  Traceback (most recent call last):&lt;BR /&gt;    File "&lt;STDIN&gt;", line 1, in &lt;MODULE&gt;&lt;BR /&gt;  ImportError: Unsatisfied code symbol 'EVP_MD_CTX_md' in load module '/usr/local/lib/python2.5/lib-dynload/_hashlib.so'.&lt;BR /&gt;&lt;BR /&gt;Any idea?&lt;/MODULE&gt;&lt;/STDIN&gt;&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/STDIN&gt;</description>
      <pubDate>Thu, 02 Apr 2009 10:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-hashlib-in-python/m-p/4393412#M681764</guid>
      <dc:creator>Marian Hromiak</dc:creator>
      <dc:date>2009-04-02T10:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: problem with hashlib in python</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-hashlib-in-python/m-p/4393413#M681765</link>
      <description>were did this python version come from? seems like it can't import md5, try to 'import md5'.&lt;BR /&gt;&lt;BR /&gt;could also be that some environments are not set so python is not finding all your modules.&lt;BR /&gt;&lt;BR /&gt;all vars are listed here:&lt;BR /&gt;&lt;A href="http://docs.python.org/using/cmdline.html#environment-variables" target="_blank"&gt;http://docs.python.org/using/cmdline.html#environment-variables&lt;/A&gt;</description>
      <pubDate>Fri, 03 Apr 2009 04:33:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-hashlib-in-python/m-p/4393413#M681765</guid>
      <dc:creator>dirk dierickx</dc:creator>
      <dc:date>2009-04-03T04:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: problem with hashlib in python</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-hashlib-in-python/m-p/4393414#M681766</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;(i'm coworker of Marian)&lt;BR /&gt;thank You for Your answer Dirk, but trying to set PYTHONHOME did not help - i investigated further, and found that &lt;BR /&gt;EVP_MD_CTX_md is just macro defined in /usr/include/openssl/evp.h&lt;BR /&gt;and in our _haslib.so is:&lt;BR /&gt;$ objdump -T /usr/local/lib/python2.5/lib-dynload/_hashlib.so | grep EVP_MD_CTX_md&lt;BR /&gt;0421b600      DF *UND*  00000000 EVP_MD_CTX_md&lt;BR /&gt;&lt;BR /&gt;(and i checked (for being sure) EVP_MD_CTX_md is not defined in any of libcrypto.so*, libssl.so* on our system)&lt;BR /&gt;&lt;BR /&gt;so maybe different versions of openssl was used to build python</description>
      <pubDate>Tue, 07 Apr 2009 19:21:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problem-with-hashlib-in-python/m-p/4393414#M681766</guid>
      <dc:creator>Peter Kolenic</dc:creator>
      <dc:date>2009-04-07T19:21:25Z</dc:date>
    </item>
  </channel>
</rss>

