<?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: Error: Python tool for exporting/importing a policy package or parts of it in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132115#M6345</link>
    <description>&lt;P&gt;Try to use 'Standard' with an uppercase s&lt;/P&gt;</description>
    <pubDate>Tue, 19 Oct 2021 13:34:03 GMT</pubDate>
    <dc:creator>Felix_Hoffmann1</dc:creator>
    <dc:date>2021-10-19T13:34:03Z</dc:date>
    <item>
      <title>Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132108#M6344</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm trying to use the Python tool "exporting/importing a policy package"...Python version installed 2.7.14 but I'm having the following error:&lt;/P&gt;&lt;P&gt;Welcome to the Policy Package Import/Export Tool.&lt;BR /&gt;What would you like to do?&lt;BR /&gt;1. Import a package&lt;BR /&gt;2. Export a package&lt;BR /&gt;99. Exit&lt;BR /&gt;2&lt;BR /&gt;Please enter a Policy Package name to export:&lt;BR /&gt;standard&lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt;File "...ExportImportPolicyPackage-master\import_export_package.py", line 26, in &amp;lt;module&amp;gt;&lt;BR /&gt;args = process_arguments(arg_parser)&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\utils.py", line 98, in process_arguments&lt;BR /&gt;args = Menu(args).self_args&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\menu.py", line 21, in __init__&lt;BR /&gt;self.build()&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\menu.py", line 146, in build&lt;BR /&gt;self.display()&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\menu.py", line 30, in display&lt;BR /&gt;self.handle_input()&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\menu.py", line 269, in handle_input&lt;BR /&gt;self.build()&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\menu.py", line 146, in build&lt;BR /&gt;self.display()&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\menu.py", line 30, in display&lt;BR /&gt;self.handle_input()&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\menu.py", line 167, in handle_input&lt;BR /&gt;self.self_args.name = input()&lt;BR /&gt;File "&amp;lt;string&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt;NameError: name 'standard' is not defined&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone help to solve this error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 12:32:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132108#M6344</guid>
      <dc:creator>Shaimaa</dc:creator>
      <dc:date>2021-10-19T12:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132115#M6345</link>
      <description>&lt;P&gt;Try to use 'Standard' with an uppercase s&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 13:34:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132115#M6345</guid>
      <dc:creator>Felix_Hoffmann1</dc:creator>
      <dc:date>2021-10-19T13:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132128#M6346</link>
      <description>&lt;P&gt;I did but i have the same error (i used other names like test or other names), it's in the beginning of the execution...before entering the IP addresse of the management server.&lt;/P&gt;&lt;P&gt;I think it's related to the code&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 15:10:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132128#M6346</guid>
      <dc:creator>Shaimaa</dc:creator>
      <dc:date>2021-10-19T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132174#M6349</link>
      <description>&lt;P&gt;I tried for my self an got the same error. It works when Standard is written in quotation marks:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Welcome to the Policy Package Import/Export Tool.
What would you like to do?
1. Import a package
2. Export a package
99. Exit
2
Please enter a Policy Package name to export:
'Standard'
Please select a login method:
1. Enter user credentials manually
2. Login as Root
3. Use an existing session file
4. Use an existing session UID
99. Back&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 07:12:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132174#M6349</guid>
      <dc:creator>Felix_Hoffmann1</dc:creator>
      <dc:date>2021-10-20T07:12:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132185#M6350</link>
      <description>&lt;P&gt;Yes, I confirm that it's working with single quotes but i have to use the quotes for all inputs even the password.&lt;/P&gt;&lt;P&gt;But after entering the password with or without quotes, it exists....:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please enter your password:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\import_expor&lt;BR /&gt;t_package.py", line 26, in &amp;lt;module&amp;gt;&lt;BR /&gt;args = process_arguments(arg_parser)&lt;BR /&gt;File "...\ExportImportPolicyPackage-master\utils.py", l&lt;BR /&gt;ine 108, in process_arguments&lt;BR /&gt;log_file = open(args.log_file, "w",newline='')&lt;BR /&gt;TypeError: 'newline' is an invalid keyword argument for this function&lt;/P&gt;&lt;P&gt;Apparently it dosn't take into account what is written for the password.&lt;/P&gt;&lt;P&gt;I think that the new version has a bug.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 10:08:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132185#M6350</guid>
      <dc:creator>Shaimaa</dc:creator>
      <dc:date>2021-10-20T10:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132205#M6353</link>
      <description>&lt;P&gt;I know you wrote, that python2 is installed, but do you have a python3 installed too? The error you are describing comes from python2, from README.md on&amp;nbsp;&lt;A href="https://github.com/CheckPointSW/ExportImportPolicyPackage" target="_blank"&gt;https://github.com/CheckPointSW/ExportImportPolicyPackage&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;The tool is developed using Python language version 2.7.9 and&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/CheckPoint-APIs-Team/cpapi-python-sdk" target="_blank"&gt;Check Point API Python SDK.&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;From version 5.0 the tool is developed using Python language version 3.7."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Running it with python3 does not produce any errors.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Oct 2021 10:55:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132205#M6353</guid>
      <dc:creator>Felix_Hoffmann1</dc:creator>
      <dc:date>2021-10-20T10:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132801#M6382</link>
      <description>&lt;P&gt;Yes, the problem was python version and solved by installing python 3714&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 12:39:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/132801#M6382</guid>
      <dc:creator>Shaimaa</dc:creator>
      <dc:date>2021-10-28T12:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/144815#M6671</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How Can I install another python version in gaia?&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 06:27:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/144815#M6671</guid>
      <dc:creator>bryanastudillo</dc:creator>
      <dc:date>2022-03-26T06:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/144819#M6672</link>
      <description>&lt;P&gt;Why do you need to ? R81.10 latest version (SMS + GW) has:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;Expert:&amp;nbsp;&lt;/SPAN&gt;python&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Python 2.7.18 (default, Feb&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp; &lt;/SPAN&gt;2 2022, 17:14:32)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[GCC 6.3.0] on linux2&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="Apple-converted-space"&gt;Expert:&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;python3&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Python 3.7.7 (default, Jun 25 2021, 16:31:08)&lt;SPAN class="Apple-converted-space"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;[GCC 6.3.0] on linux&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 26 Mar 2022 09:21:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-Python-tool-for-exporting-importing-a-policy-package-or/m-p/144819#M6672</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2022-03-26T09:21:00Z</dc:date>
    </item>
  </channel>
</rss>

