<?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: Install pyOpenSSL and boto3 for a single app? Drag and drop doesn't work because of missing dependencies. in Splunk Dev</title>
    <link>https://community.splunk.com/t5/Splunk-Dev/Install-pyOpenSSL-and-boto3-for-a-single-app-Drag-and-drop-doesn/m-p/505264#M8834</link>
    <description>&lt;P&gt;This is an issue for our app as well, I see that Splunk has pyOpenSSL documented in the 7.2 toolkit, but easily extending an app to use this module or incorporating it on the app lib folder has proven difficult&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/StreamApp/7.2.0/ReleaseNotes/OpenSSLEncryptionToolkit" target="_blank"&gt;https://docs.splunk.com/Documentation/StreamApp/7.2.0/ReleaseNotes/OpenSSLEncryptionToolkit&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 19 Jun 2020 19:31:14 GMT</pubDate>
    <dc:creator>skhadem</dc:creator>
    <dc:date>2020-06-19T19:31:14Z</dc:date>
    <item>
      <title>Install pyOpenSSL and boto3 for a single app? Drag and drop doesn't work because of missing dependencies.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Install-pyOpenSSL-and-boto3-for-a-single-app-Drag-and-drop-doesn/m-p/491101#M8833</link>
      <description>&lt;P&gt;To this point in time, every time we needed to make a python module available to a single app in Splunk, we would drag and drop the python modules into $SPLUNK_HOME/etc/apps/APP_NAME/bin/MODULE . This has worked until we needed the pyOpenSSL and boto3 libraries which have lots of cryptography and single script dependencies that don't come over correctly.&lt;/P&gt;

&lt;P&gt;What I've tried:&lt;/P&gt;

&lt;P&gt;1| python3 -m venv $SPLUNK_HOME/etc/apps/APP_NAME/&lt;BR /&gt;
2| python3 -m pip install (pyOpenSSL, boxsdk, pyJWT, boto3) &amp;lt; base dependencies&lt;BR /&gt;
3| move $SPLUNK_HOME/etc/apps/APP_NAME/lib/python3.7/site-packages/ &amp;gt; $/SPLUNK_HOME/etc/apps/APP_NAME/bin&lt;BR /&gt;
4| Put all my app scripts in $/SPLUNK_HOME/etc/apps/APP_NAME/bin alongside all the modules I just installed to that folder using venv&lt;BR /&gt;
5| Start Splunk&lt;BR /&gt;
6| search | search_command arg=0&lt;/P&gt;

&lt;P&gt;At this point, Splunk tells me that the enum34, ipaddress, chainmap, cryptography (_constant_time module buried in here somewhere doesn't exist where it should) modules don't exist. &lt;/P&gt;

&lt;P&gt;I then shut down Splunk, redid steps 1-6 but also installing all those missing modules on step 2. The error I'm getting now is this:&lt;BR /&gt;
    External search command 'boxfiles' returned error code 1. First 1000 (of 1456) bytes of script output: "No module named &lt;EM&gt;constant_time ERROR "Error 'No module named _constant_time'. Traceback (most recent call last): File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/box_connector/&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;&lt;EM&gt;.py"", line 3, in &lt;MODULE&gt; from box_connector import BoxConnector File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/box_connector/box_connector.py"", line 10, in &lt;MODULE&gt; from OpenSSL import crypto File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/OpenSSL/&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;&lt;EM&gt;.py"", line 8, in &lt;MODULE&gt; from OpenSSL import crypto, SSL File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/OpenSSL/crypto.py"", line 12, in &lt;MODULE&gt; from cryptography import x509 File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/cryptography/x509/&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/EM&gt;&lt;EM&gt;init&lt;/EM&gt;_.py"", line 8, in &lt;MODULE&gt; from cryptography.x509.base import ( File ""/Applications/Splunk/etc/apps/TA-box-connector/bin/cryptography/x509/base.py"", line 18, in &lt;MODULE&gt; from cryptography.x509.extensions import Exte".&lt;/MODULE&gt;&lt;/MODULE&gt;&lt;/P&gt;

&lt;P&gt;I'd like to solve this error, but I've been working through this dependency issue for some time now, so if there's a better solution to getting these packages on here, I would love to hear about it.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2020 03:48:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Install-pyOpenSSL-and-boto3-for-a-single-app-Drag-and-drop-doesn/m-p/491101#M8833</guid>
      <dc:creator>cdhippen</dc:creator>
      <dc:date>2020-09-30T03:48:47Z</dc:date>
    </item>
    <item>
      <title>Re: Install pyOpenSSL and boto3 for a single app? Drag and drop doesn't work because of missing dependencies.</title>
      <link>https://community.splunk.com/t5/Splunk-Dev/Install-pyOpenSSL-and-boto3-for-a-single-app-Drag-and-drop-doesn/m-p/505264#M8834</link>
      <description>&lt;P&gt;This is an issue for our app as well, I see that Splunk has pyOpenSSL documented in the 7.2 toolkit, but easily extending an app to use this module or incorporating it on the app lib folder has proven difficult&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.splunk.com/Documentation/StreamApp/7.2.0/ReleaseNotes/OpenSSLEncryptionToolkit" target="_blank"&gt;https://docs.splunk.com/Documentation/StreamApp/7.2.0/ReleaseNotes/OpenSSLEncryptionToolkit&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jun 2020 19:31:14 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Dev/Install-pyOpenSSL-and-boto3-for-a-single-app-Drag-and-drop-doesn/m-p/505264#M8834</guid>
      <dc:creator>skhadem</dc:creator>
      <dc:date>2020-06-19T19:31:14Z</dc:date>
    </item>
  </channel>
</rss>

