cescobarresi / ciscoreputation

Get the Cisco's talosintelligence.com reputation for an ip address
MIT License
28 stars 13 forks source link

CANNOT IMPORT DO_MAIN #9

Open mantemp opened 5 years ago

mantemp commented 5 years ago

Traceback (most recent call last): File "/usr/local/bin/ciscoreputation", line 7, in from ciscoreputation import main File "/usr/local/lib/python3.5/dist-packages/ciscoreputation/init.py", line 1, in from ciscoreputation import do_main ImportError: cannot import name 'do_main'

lyghtkruz commented 4 years ago

Traceback (most recent call last): File "/usr/local/bin/ciscoreputation", line 7, in from ciscoreputation import main File "/usr/local/lib/python3.5/dist-packages/ciscoreputation/init.py", line 1, in from ciscoreputation import do_main ImportError: cannot import name 'do_main'

For whatever reason the virtualenv isn't picking up the package in site-packages. If you go cd to lib/python3.5/ and: ln -s site-packages/ciscoreputation/ciscoreputation.py ./ ln -s site-packages/ciscoreputation/about.py ./

There's then errors about "main" not being able to be imported in bin/ciscoreputation

I was able to clear up that error by changing main to do_main but the code still fails for me trying to query anything.