<?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 Getting errors while importing python Splunk modules. in Other Usage</title>
    <link>https://community.splunk.com/t5/Other-Usage/Getting-errors-while-importing-python-Splunk-modules/m-p/679546#M1701</link>
    <description>&lt;P&gt;Getting below errors while importing splunklib and splunk-sdk python packages. Any resolutions please?&lt;/P&gt;&lt;P&gt;Building wheels for collected packages: pycrypto&lt;BR /&gt;Building wheel for pycrypto (pyproject.toml) ... error&lt;BR /&gt;error: subprocess-exited-with-error&lt;/P&gt;&lt;P&gt;× Building wheel for pycrypto (pyproject.toml) did not run successfully.&lt;BR /&gt;│ exit code: 1&lt;BR /&gt;╰─&amp;gt; [28 lines of output]&lt;BR /&gt;warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.&lt;BR /&gt;winrand.c&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[end of output]&lt;/P&gt;&lt;P&gt;note: This error originates from a subprocess, and is likely not a problem with pip.&lt;BR /&gt;ERROR: Failed building wheel for pycrypto&lt;BR /&gt;Failed to build pycrypto&lt;BR /&gt;ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects&lt;/P&gt;</description>
    <pubDate>Tue, 05 Mar 2024 04:19:12 GMT</pubDate>
    <dc:creator>Prathyusha891</dc:creator>
    <dc:date>2024-03-05T04:19:12Z</dc:date>
    <item>
      <title>Getting errors while importing python Splunk modules.</title>
      <link>https://community.splunk.com/t5/Other-Usage/Getting-errors-while-importing-python-Splunk-modules/m-p/679546#M1701</link>
      <description>&lt;P&gt;Getting below errors while importing splunklib and splunk-sdk python packages. Any resolutions please?&lt;/P&gt;&lt;P&gt;Building wheels for collected packages: pycrypto&lt;BR /&gt;Building wheel for pycrypto (pyproject.toml) ... error&lt;BR /&gt;error: subprocess-exited-with-error&lt;/P&gt;&lt;P&gt;× Building wheel for pycrypto (pyproject.toml) did not run successfully.&lt;BR /&gt;│ exit code: 1&lt;BR /&gt;╰─&amp;gt; [28 lines of output]&lt;BR /&gt;warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.&lt;BR /&gt;winrand.c&lt;/P&gt;&lt;P&gt;............&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[end of output]&lt;/P&gt;&lt;P&gt;note: This error originates from a subprocess, and is likely not a problem with pip.&lt;BR /&gt;ERROR: Failed building wheel for pycrypto&lt;BR /&gt;Failed to build pycrypto&lt;BR /&gt;ERROR: Could not build wheels for pycrypto, which is required to install pyproject.toml-based projects&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 04:19:12 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Getting-errors-while-importing-python-Splunk-modules/m-p/679546#M1701</guid>
      <dc:creator>Prathyusha891</dc:creator>
      <dc:date>2024-03-05T04:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Getting errors while importing python Splunk modules.</title>
      <link>https://community.splunk.com/t5/Other-Usage/Getting-errors-while-importing-python-Splunk-modules/m-p/684864#M1725</link>
      <description>&lt;P&gt;It seems that splunklib is trying to get the obsolete pycrypto library. Ideally you should configure it to use the Cryptography or pycrypodome library.&lt;/P&gt;&lt;P&gt;There is an answer here how to change splunklib to use pycryptodome: &lt;A href="https://stackoverflow.com/questions/59104347/how-do-i-install-splunklib-for-python-3-7-on-windows" target="_blank"&gt;https://stackoverflow.com/questions/59104347/how-do-i-install-splunklib-for-python-3-7-on-windows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In case that link goes down, here are the instructions:&lt;/P&gt;&lt;P&gt;by Chris Chris Dec 2 2019, 8:42:&lt;/P&gt;&lt;P&gt;I finally found the way to install it:&lt;/P&gt;&lt;P&gt;Uninstall pycrypto&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip uninstall pycrypto&lt;/LI-CODE&gt;&lt;P&gt;Install pycryptodome as replacement of pycypto&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip install pycryptodome&lt;/LI-CODE&gt;&lt;P&gt;Install splunklib without dependencies&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip install splunklib --no-deps&lt;/LI-CODE&gt;&lt;P&gt;Edit "pythonlib"\splunklib-1.0.0.dist-info\METADATA and replace "Requires-Dist: pycrypto" with "Requires-Dist: pycryptodome"&lt;/P&gt;&lt;P&gt;install splunk-sdk&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip install splunk-sdk&lt;/LI-CODE&gt;&lt;P&gt;check that everything is ok&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip install splunklib&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 20 Apr 2024 12:57:54 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Other-Usage/Getting-errors-while-importing-python-Splunk-modules/m-p/684864#M1725</guid>
      <dc:creator>marnall</dc:creator>
      <dc:date>2024-04-20T12:57:54Z</dc:date>
    </item>
  </channel>
</rss>

