Te-k / harpoon

CLI tool for open source and threat intelligence
https://www.randhome.io/blog/2018/02/23/harpoon-an-osint-/-threat-intelligence-tool/
GNU General Public License v3.0
1.16k stars 181 forks source link

pythreatgrid import error.. again.. #108

Closed deadbits closed 5 years ago

deadbits commented 5 years ago

Same problem as #88

I also tried to re-install both directly from pip install pythreatgrid, and by cloning the repo and then installing per the instructions for the pythreatgrid repo.

Same problem :|

harpoon config output with exception:

‹master› » harpoon config
Traceback (most recent call last):
  File "/usr/local/bin/harpoon", line 11, in <module>
    load_entry_point('harpoon==0.1.1', 'console_scripts', 'harpoon')()
  File "/usr/local/lib/python3.7/site-packages/harpoon-0.1.1-py3.7.egg/harpoon/main.py", line 31, in main
    plugins = init_plugins()
  File "/usr/local/lib/python3.7/site-packages/harpoon-0.1.1-py3.7.egg/harpoon/main.py", line 18, in init_plugins
    mod = __import__(plugin)
  File "/usr/local/lib/python3.7/site-packages/harpoon-0.1.1-py3.7.egg/harpoon/commands/domain.py", line 24, in <module>
    from pythreatgrid import ThreatGrid, ThreatGridError
ImportError: cannot import name 'ThreatGridError' from 'pythreatgrid' (/usr/local/lib/python3.7/site-packages/pythreatgrid/__init__.py)
Te-k commented 5 years ago

Hi, Thanks for opening the bug. I had to change the name of the package to pythreatgrid2 because pythreatgrid was already used in pypi. So it is a bit stupid but it breaks the dependences. To solve it, you need to download the last version of harpoon, and just a pip install . should solve this. If you have any other issue, please remove pythreadgrid manually and install pythreatgrid2 manually. Sorry about that, I hope to have soon a better way to do updates, but I need to have the two missing packages in pypi first, which may be hard for some reasons

Te-k commented 5 years ago

Closing for now, feel free to reopen if it is still an issue