Hi Dameon,
As you suggested I have also installed Python library also for using R80 management server https://community.checkpoint.com/docs/DOC-1091
I also tried Ubuntu 18.4, but facing exactly same issue from both OS (Win-10 and Ubuntu)
Error is related to 5 Files which are the part of this python-tool (https://community.checkpoint.com/docs/DOC-1938)
Below are the files:
- py (line 45)
- exporting\export_package.py (line 39)
- \exporting\export_access_rulebase.py (Line 16)
- \exporting\export_objects.py (line 38)
- py (line 126)
Error Message:
===================== ===============
Exporting Access Control layers
Exporting Access Layer [Policy_Package_1 Network]
Traceback (most recent call last):
File "D:\GIT_HUB\SCRIPT\import_export_package.py", line 45, in <module>
export_package(client, args)
File "D:\GIT_HUB\SCRIPT\exporting\export_package.py", line 39, in export_package
= export_access_rulebase(show_package.data["name"], access_layer["name"], access_layer["uid"], client, timestamp, tar_file)
File "D:\GIT_HUB\SCRIPT\exporting\export_access_rulebase.py", line 16, in export_access_rulebase
get_query_rulebase_data(client, "access-rulebase", {"name": layer, "uid": layer_uid, "package": package})
File "D:\GIT_HUB\SCRIPT\exporting\export_objects.py", line 38, in get_query_rulebase_data
if compare_versions(client.api_version, "1.1") != -1:
File "D:\GIT_HUB\SCRIPT\utils.py", line 126, in compare_versions
v1_nums = version1.split('.')
AttributeError: 'NoneType' object has no attribute 'split'
============= ===================================
Below are the contents of each lines (which are throwing error) from relevant files.
===================XXXX=======================
File Name: import_export_package.py (line 45)
Exact Content of line 45 in this file:
export_package(client, args)
====================XXXX=======================
File Name: exporting\export_package.py (line 39)
Exact Content of line 39 in this file:
= export_access_rulebase(show_package.data["name"], access_layer["name"], access_layer["uid"], client, timestamp, tar_file)
=======================XXXX==========================
File Name: \exporting\export_access_rulebase.py (Line 16)
Exact Content of line 16 in this file:
get_query_rulebase_data(client, "access-rulebase", {"name": layer, "uid": layer_uid, "package": package})
=======================XXXX===========================
File Name: \exporting\export_objects.py (line 38)
Exact Content of line 38 in this file:
if compare_versions(client.api_version, "1.1") != -1:
======================XXXX=============================
File name: utils.py (line 126)
Exact Content of line 126 in this file:
v1_nums = version1.split('.')
=====================XXXX===============================