Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Sebastian_Gxxx
Contributor

Re: Python tool for exporting/importing a policy package or parts of it

Hello,

can you please provide instructions how to install python_bundle_1_2_2 ?

for both DOS/Windows and Gaia R80.10.

As that tool is not supported by CheckPoint, this is the only way to get help on this.

At the moment this script does not run on a R80.10 System

 

[Expert@SC2-R80.10:0]# ./export_package.py -u admin -p vpn123 -m localhost Sandard

Traceback (most recent call last):

  File "./export_package.py", line 6, in <module>

    from mgmt_api_lib import cp_mgmt_api

  File "/home/admin/tools/import_export_package/mgmt_api_lib/__init__.py", line 1, in <module>

    from cp_mgmt_api import APIClient

  File "/home/admin/tools/import_export_package/mgmt_api_lib/cp_mgmt_api.py", line 12, in <module>

    from distutils.version import LooseVersion

ImportError: No module named distutils.version

[Expert@SC2-R80.10:0]# python -V

Python 2.7.13

[Expert@SC2-R80.10:0]#

I hope python_bundle_1_2_2 will fix the problem.

Unless you have another solution how to run that scripts on a R80.10 System

0 Kudos
3 Replies
Melaku_Woldeyes
Explorer

Is there a solution to fix the following which was reported on July 2017?

Hello,

can you please provide instructions how to install python_bundle_1_2_2 ?

for both DOS/Windows and Gaia R80.10.

 

As that tool is not supported by CheckPoint, this is the only way to get help on this.

At the moment this script does not run on a R80.10 System

 

[Expert@SC2-R80.10:0]# ./export_package.py -u admin -p vpn123 -m localhost Sandard

Traceback (most recent call last):

  File "./export_package.py", line 6, in <module>

    from mgmt_api_lib import cp_mgmt_api

  File "/home/admin/tools/import_export_package/mgmt_api_lib/__init__.py", line 1, in <module>

    from cp_mgmt_api import APIClient

  File "/home/admin/tools/import_export_package/mgmt_api_lib/cp_mgmt_api.py", line 12, in <module>

    from distutils.version import LooseVersion

ImportError: No module named distutils.version

[Expert@SC2-R80.10:0]# python -V

Python 2.7.13

[Expert@SC2-R80.10:0]#

0 Kudos
Melaku_Woldeyes
Explorer

I am having the same error "ImportError: No module named distutils.version" when running the python script on a mgmt server R80.10. Has the error been resolved?

Shoham_Halevi
Employee Alumnus
Employee Alumnus

Hi Melaku,

You're running an old version of our export/import tool and our python bundle (now called SDK). Since then, a lot of work was put into the SDK and the tool, including removing the dependency you are lacking.
Please follow the instructions on our GitHub repository on how to install it.

If you have any further issues, please reply.
Shoham

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events