<?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: Python tool for exporting/importing a policy package failure cpapi module not import in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/99350#M5248</link>
    <description>&lt;P&gt;&amp;nbsp;Hi PhoneBoy,&lt;/P&gt;&lt;P&gt;Thanks for your quickly answer. But we can not install cpapi module into gaia operating system. Do we apply this procedure in checkpoint management sheel or our windows machine?&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;</description>
    <pubDate>Sat, 17 Oct 2020 11:40:28 GMT</pubDate>
    <dc:creator>ipolat</dc:creator>
    <dc:date>2020-10-17T11:40:28Z</dc:date>
    <item>
      <title>Python tool for exporting/importing a policy package failure cpapi module not import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/99056#M5224</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;R80.30 We have a checkpoint management server. And we need to export the policy package. For this, we used the blog linked below.&lt;/P&gt;&lt;P&gt;"&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/td-p/41100" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/td-p/41100&lt;/A&gt; "&lt;BR /&gt;However, we provided all the prerequisites mentioned on the blog and when we first ran the script we got the error on the screen. What is the cause of the error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="failures.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/8443i938AF49AFDD6F15B/image-size/large?v=v2&amp;amp;px=999" role="button" title="failures.png" alt="failures.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 07:05:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/99056#M5224</guid>
      <dc:creator>ipolat</dc:creator>
      <dc:date>2020-10-14T07:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package failure cpapi module not import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/99340#M5247</link>
      <description>&lt;P&gt;That looks like you haven't installed the required Python module as instructed in the README.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 22:19:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/99340#M5247</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-10-16T22:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package failure cpapi module not import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/99350#M5248</link>
      <description>&lt;P&gt;&amp;nbsp;Hi PhoneBoy,&lt;/P&gt;&lt;P&gt;Thanks for your quickly answer. But we can not install cpapi module into gaia operating system. Do we apply this procedure in checkpoint management sheel or our windows machine?&lt;/P&gt;&lt;P&gt;Thanks Again&lt;/P&gt;</description>
      <pubDate>Sat, 17 Oct 2020 11:40:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/99350#M5248</guid>
      <dc:creator>ipolat</dc:creator>
      <dc:date>2020-10-17T11:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package failure cpapi module not import</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/100708#M5277</link>
      <description>&lt;P&gt;it depends on where you are running the script.&amp;nbsp; If it is locally on your machine then install the cpapi as per the readme and test again.&lt;/P&gt;&lt;P&gt;but if it's on the management you need to be careful to follow the below instructions and make sure you add the path variable.&amp;nbsp; Otherwise the script will fail.&lt;/P&gt;&lt;P&gt;SDK usage from a management machine&lt;BR /&gt;Follow the instructions above in the "Download the repository" section, to download the repository but do not run pip install .&lt;/P&gt;&lt;P&gt;After the downloading, copy the SDK to the machine (use scp, WinSCP or similar tool).&lt;/P&gt;&lt;P&gt;Configure your environment variables&lt;/P&gt;&lt;P&gt;export PYTHONPATH=$PYTHONPATH:&amp;lt;“CP-SDK” FULL PATH&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For example, if you copied the SDK to the path “/home/admin/” the command will be:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;export PYTHONPATH=$PYTHONPATH:/home/admin/cp_mgmt_api_python_sdk/&lt;/P&gt;</description>
      <pubDate>Sat, 31 Oct 2020 10:45:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-failure/m-p/100708#M5277</guid>
      <dc:creator>Dan_Cannon</dc:creator>
      <dc:date>2020-10-31T10:45:58Z</dc:date>
    </item>
  </channel>
</rss>

