conix-security / audit-springbok

A tool for analyzing firewall rules
157 stars 46 forks source link

Requirements List - can't find a module and update to the module list to install #5

Closed eperry closed 5 years ago

eperry commented 7 years ago

Can you please add the following libraries to your requirements

reportlab graphviz

I also can't seem to find the library in apt or on the internet that provides this module. Some help please

eperry@SilverHWK:~/springbok$ python springbok.py
WARNING: There was a problem loading the table file: KeyError('p_ip_src_line_2',)
WARNING: 'p_info' not defined as a function
WARNING: Token 'WS' defined, but not used
WARNING: There is 1 unused token
Generating LALR tables
Traceback (most recent call last):
  File "springbok.py", line 7, in <module>
    from Gtk import Gtk_Main
  File "/home/eperry/springbok/Gtk/Gtk_Main.py", line 9, in <module>
    import Gtk_MenuBar
  File "/home/eperry/springbok/Gtk/Gtk_MenuBar.py", line 30, in <module>
    from Tools.ExcelToolKit import ExcelToolKit
ImportError: No module named Tools.ExcelToolKit
m0rbi commented 7 years ago

Reportlab you can grab with pip install reportlab. I haven't received in error for graphiz.

Like you, I am unable to make it past this error:

File "/root/springbok/Gtk/Gtk_MenuBar.py", line 30, in <module> from Tools.ExcelToolKit import ExcelToolKit ImportError: No module named Tools.ExcelToolKit

and all efforts to intall pygtk using pip or easy install fail with

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-UyS_0k/pygtk/

I have also installed python-gtk2 and python-gtk2-dev from apt sources, as well as install every xlsxwriter pip package I can find.

As far as I can tell there is an issue with old & new setuptools being installed simutaneously. I am also unable to install ez_setup for easy_install usage.

Any guidance would be supremely helpful!

eperry commented 7 years ago

oh I figured out how to get those repo's I think I used the apt install python-gtk2-dev to install pygtk

I see Tools.ExcelToolKit is in a sub directory but I don't know why it will not load.

PhilippeDupart commented 7 years ago

The issue was fixed with the commit six days ago. It came from forgetting a file in the previous commit. (Tools/init.py)

I also updated the Readme to make the install easier.

eperry commented 7 years ago

Cool! when I get to work I will give it a test. THANKS!

sdananda commented 6 years ago

Hi,

Getting the error attached the pix. Let me know anyone faced the same issue and fixed. capture