<?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>Question Re: Unable to use python runtime in HANA Express SP06 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/unable-to-use-python-runtime-in-hana-express-sp06/qaa-p/12639943#M4741628</link>
    <description>&lt;P&gt;I resolved the issue myself. Here is what i did:&lt;/P&gt;&lt;P&gt;I ended up using Python Version 3.9.13 compiled with the script found in the github-repo.&lt;/P&gt;&lt;P&gt;I copied the python3 executable into /usr/sap/HXE/HDB90/exe/krb5/bin manually and changed it to be used by the system with "sudo chown -c hxeadm:sapsys python3"&lt;/P&gt;&lt;P&gt;After that my python buildpack can stage python apps.&lt;/P&gt;&lt;P&gt;Never had to do this in SP5 so maybe something changed, I don't know, but if anyone has the same issues, this worked "on my machine" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ssl-error i had with the latest python 3.10.5 could be reproduced by just entering "import ssl" in the python console. If that fails, don't bother to deploy, it will fail later anyway...&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jun 2022 14:47:39 GMT</pubDate>
    <dc:creator>sboll</dc:creator>
    <dc:date>2022-06-09T14:47:39Z</dc:date>
    <item>
      <title>Unable to use python runtime in HANA Express SP06</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-python-runtime-in-hana-express-sp06/qaq-p/12639941</link>
      <description>&lt;P&gt;I compiled and deployed a python runtime in my fresh HANA Express SP06 (vm-Edition) as described here &lt;A href="https://github.com/saphanaacademy/python" target="test_blank"&gt;https://github.com/saphanaacademy/python&lt;/A&gt;. The runtime is listed when queried with "xs runtimes". If i try to use it (e.g. by using the test-python-runtime.sh script) i always get the following error: &lt;/P&gt;
  &lt;P&gt;ERR which: no python3 in (/usr/sap/HXE/HDB90/exe/krb5/bin:/usr/sap/HXE/HDB90/exe/krb5/sbin:...&lt;/P&gt;
  &lt;P&gt;Has anyone successfully used the newest HANA Express SP06 with a python runtime and can point me in the right direction or can help me resolve this error? I think the runtime seems to forget, where the binaries of the python runtime are located or something like that.&lt;/P&gt;
  &lt;P&gt; I have used the python runtime in the previous HANA Express SP05 without any problems, but i used the "Installer Version" of HANA back then and wanted to give the "VM-Edition" a try this time.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Jun 2022 11:32:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-python-runtime-in-hana-express-sp06/qaq-p/12639941</guid>
      <dc:creator>sboll</dc:creator>
      <dc:date>2022-06-08T11:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use python runtime in HANA Express SP06</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-python-runtime-in-hana-express-sp06/qaa-p/12639942#M4741627</link>
      <description>&lt;P&gt;If i copy the compiled binaries (renamed them first to e.g. python3 etc.) to the first path specified by the log, the build seems to start, but immediately fails with a new error: &lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;   ERR       response = urlopen(url, cafile=cafile)&lt;/P&gt;&lt;P&gt;   ERR     File "/usr/sap/HXE/home/builds/Python-3.10.5/lib/python3.10/urllib/request.py", line&lt;/P&gt;&lt;P&gt;         201, in urlopen&lt;/P&gt;&lt;P&gt;   ERR       raise ValueError('SSL support not available')&lt;/P&gt;&lt;P&gt;   ERR   ValueError: SSL support not available&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 13:46:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-python-runtime-in-hana-express-sp06/qaa-p/12639942#M4741627</guid>
      <dc:creator>sboll</dc:creator>
      <dc:date>2022-06-09T13:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to use python runtime in HANA Express SP06</title>
      <link>https://community.sap.com/t5/technology-q-a/unable-to-use-python-runtime-in-hana-express-sp06/qaa-p/12639943#M4741628</link>
      <description>&lt;P&gt;I resolved the issue myself. Here is what i did:&lt;/P&gt;&lt;P&gt;I ended up using Python Version 3.9.13 compiled with the script found in the github-repo.&lt;/P&gt;&lt;P&gt;I copied the python3 executable into /usr/sap/HXE/HDB90/exe/krb5/bin manually and changed it to be used by the system with "sudo chown -c hxeadm:sapsys python3"&lt;/P&gt;&lt;P&gt;After that my python buildpack can stage python apps.&lt;/P&gt;&lt;P&gt;Never had to do this in SP5 so maybe something changed, I don't know, but if anyone has the same issues, this worked "on my machine" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The ssl-error i had with the latest python 3.10.5 could be reproduced by just entering "import ssl" in the python console. If that fails, don't bother to deploy, it will fail later anyway...&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2022 14:47:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/unable-to-use-python-runtime-in-hana-express-sp06/qaa-p/12639943#M4741628</guid>
      <dc:creator>sboll</dc:creator>
      <dc:date>2022-06-09T14:47:39Z</dc:date>
    </item>
  </channel>
</rss>

