GoSecure / Cisco2Checkpoint

Tool that assists in migrating firewall rules from Cisco to Checkpoint. Will optimize rules for you (rationalization, reuse merging, etc.).
http://gosecure.net/2017/01/30/cisco2checkpoint-cisco-checkpoint-conversion-tool/
GNU General Public License v3.0
21 stars 11 forks source link

Possible Module name error #2

Closed Sraza11 closed 7 years ago

Sraza11 commented 7 years ago

File "C:\Users\xx\Desktop\Py\Cisco2Checkpoint-master\c2c.py", line 34, in from cisco2checkpoint import Cisco2Checkpoint,Cisco2CheckpointManager File "lib\cisco2checkpoint.py", line 26, in from ciscoconfparse import ciscoconfparse ImportError: No module named ciscoconfparse

martindube commented 7 years ago

Did you use git clone --recursive ?

Sraza11 commented 7 years ago

I downloaded directly to my computer as zip and then downloaded the ciscoconfparse module.

martindube commented 7 years ago

If you put ciscoconfparse in the lib or root folder of the project, the import should work. Try a git clone --recursive as in the README.md if it doesn't work.

Sraza11 commented 7 years ago

i tried git clone -recursive... now getting following error

File "lib\ciscoconfparse\ciscoconfparse\ciscoconfparse.py", line 3, in from colorama import Fore, Back, Style ImportError: No module named colorama

martindube commented 7 years ago

You are right, ciscoconfparse require 3 packages. You could download them using:

pip2 install ipaddr dnspython colorama

or by installing ciscoconfparse

cd lib/ciscoconfparse
python2 ./setup.py install
Sraza11 commented 7 years ago

missing module error is resolved. now when i run the following command

python27 c2c.py --export \
    --ciscoFile 'some_cisco_conf.txt' \
    --syntax asa \
    --policy My_Policy \
    --installOn My_Firewall \
    --output 'network_script.txt' \

it is not working...

martindube commented 7 years ago

I am happy to see that the dependencies are fixed. To help you, I need more details about the issue.

Also, I see here that this is an example from the README. Please take time to fill the fields with your needs.