- Products
- Learn
- Local User Groups
- Partners
- More
MVP 2026: Submissions
Are Now Open!
What's New in R82.10?
Watch NowOverlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Maestro Madness
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.
[Expert@MDS_MGMT-A:0]# python3 import_export_package.py -op export -d
Traceback (most recent call last):
File "import_export_package.py", line 7, in <module>
from cpapi import APIClient, APIClientArgs
ModuleNotFoundError: No module named 'cpapi'
Would you mind provide github link?
Andy
Thanks, will check tomorrow.
Andy
I just noticed below, so might be worth confirming it does not apply...
Hello,
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.
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.
So, please use an external machine with installed python interpreter and the sdk module.
Installation of that module is described here:
https://github.com/CheckPointSW/cp_mgmt_api_python_sdk
for example by
pip install cp-mgmt-api-sdk
Checking, if this is installed:
to see all modules installed:
pip listlook than for cpapi or cp-mgmt-api-sdk.
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.
hope that helps
Leaderboard
Epsum factorial non deposit quid pro quo hic escorol.
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 8 | |
| 6 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 1 |
Tue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsTue 16 Dec 2025 @ 05:00 PM (CET)
Under the Hood: CloudGuard Network Security for Oracle Cloud - Config and Autoscaling!Thu 18 Dec 2025 @ 10:00 AM (CET)
Cloud Architect Series - Building a Hybrid Mesh Security Strategy across cloudsAbout CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY