<?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: No module named 'cpapi' - Export policy in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217601#M36283</link>
    <description>&lt;P&gt;I just noticed below, so might be worth confirming it does not apply...&lt;/P&gt;
&lt;H4 class="heading-element" dir="auto" tabindex="-1"&gt;In the case you are exporting a policy package from a CMA, please verify that a global policy was NOT assigned to that CMA. The tool doesn't support exporting a policy with global policy assigned!&lt;/H4&gt;</description>
    <pubDate>Sat, 15 Jun 2024 02:30:59 GMT</pubDate>
    <dc:creator>the_rock</dc:creator>
    <dc:date>2024-06-15T02:30:59Z</dc:date>
    <item>
      <title>No module named 'cpapi' - Export policy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217597#M36279</link>
      <description>&lt;P&gt;I'm trying to export a policy from one CMA to another using a script available on github, but it's giving me the error below.&lt;/P&gt;&lt;P&gt;[Expert@MDS_MGMT-A:0]# python3 import_export_package.py -op export -d&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "import_export_package.py", line 7, in &amp;lt;module&amp;gt;&lt;BR /&gt;from cpapi import APIClient, APIClientArgs&lt;BR /&gt;ModuleNotFoundError: No module named 'cpapi'&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 00:38:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217597#M36279</guid>
      <dc:creator>FabioLima1</dc:creator>
      <dc:date>2024-06-15T00:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'cpapi' - Export policy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217598#M36280</link>
      <description>&lt;P&gt;Would you mind provide github link?&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 01:00:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217598#M36280</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-06-15T01:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'cpapi' - Export policy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217599#M36281</link>
      <description>&lt;P&gt;&lt;A href="https://github.com/CheckPointSW/ExportImportPolicyPackage" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/ExportImportPolicyPackage&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 01:51:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217599#M36281</guid>
      <dc:creator>FabioLima1</dc:creator>
      <dc:date>2024-06-15T01:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'cpapi' - Export policy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217600#M36282</link>
      <description>&lt;P&gt;Thanks, will check tomorrow.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 02:30:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217600#M36282</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-06-15T02:30:02Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'cpapi' - Export policy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217601#M36283</link>
      <description>&lt;P&gt;I just noticed below, so might be worth confirming it does not apply...&lt;/P&gt;
&lt;H4 class="heading-element" dir="auto" tabindex="-1"&gt;In the case you are exporting a policy package from a CMA, please verify that a global policy was NOT assigned to that CMA. The tool doesn't support exporting a policy with global policy assigned!&lt;/H4&gt;</description>
      <pubDate>Sat, 15 Jun 2024 02:30:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217601#M36283</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2024-06-15T02:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: No module named 'cpapi' - Export policy</title>
      <link>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217607#M36284</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The script leverages Check Points own Python SDK for communicating to the Management API. This has to be installed into your python befor using the script.&lt;/P&gt;&lt;P&gt;Problem here is, you are trying to use it on a Check Point host. The script seems not to be intended for usage on a Check Point host itself as the cpapi module is not installed there. As far as i remember, it is not recommended (otherwise lets say a "Don´t") to install modules into python interpreter on Check Point systems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, please use an external machine with installed python interpreter and the sdk module.&lt;/P&gt;&lt;P&gt;Installation of that module is described here:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk" target="_blank"&gt;https://github.com/CheckPointSW/cp_mgmt_api_python_sdk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;for example by&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip install cp-mgmt-api-sdk&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Checking, if this is installed:&lt;/P&gt;&lt;P&gt;to see all modules installed:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;pip list&lt;/LI-CODE&gt;&lt;P&gt;look than for cpapi or cp-mgmt-api-sdk.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;depending on your system you might have different python versions installed, so you´d might have to install the module with i.e. "pip3.12" and execute the script with "python3.12" then.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hope that helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jun 2024 07:55:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/No-module-named-cpapi-Export-policy/m-p/217607#M36284</guid>
      <dc:creator>Nüüül</dc:creator>
      <dc:date>2024-06-15T07:55:04Z</dc:date>
    </item>
  </channel>
</rss>

