duo-labs / isthislegit

Dashboard to collect, analyze, and respond to reported phishing emails.
BSD 3-Clause "New" or "Revised" License
284 stars 51 forks source link

Problem setting up the Dashboard #23

Closed kiwiz closed 6 years ago

kiwiz commented 6 years ago

Hi, I tried setting up the Dashboard but got the following error:

  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "/base/data/home/apps/s~beep/boop/isthislegit.py", line 1, in <module>
    from app.report import report_blueprint
  File "/base/data/home/apps/s~beep/boop/app/report.py", line 2, in <module>
    from flanker.addresslib import address
  File "/base/data/home/apps/s~beep/boop/lib/flanker/addresslib/address.py", line 40, in <module>
    import idna
ImportError: No module named idna

I tried adding idna to the list of libraries, but that gives

the library "idna" is not supported
  in "/Users/beep/git/isthislegit/dashboard/app.yaml", line 32, column 1
jordan-wright commented 6 years ago

Hi there!

Thanks for reporting this. I'll investigate this issue tomorrow morning and we'll figure out what's causing it.

Thanks again for reaching out!

On Aug 24, 2017, at 5:06 PM, Kai notifications@github.com wrote:

Hi, I tried setting up the Dashboard but got the following error:

File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject obj = import(path[0]) File "/base/data/home/apps/s~beep/boop/isthislegit.py", line 1, in from app.report import report_blueprint File "/base/data/home/apps/s~beep/boop/app/report.py", line 2, in from flanker.addresslib import address File "/base/data/home/apps/s~beep/boop/lib/flanker/addresslib/address.py", line 40, in import idna ImportError: No module named idna I tried adding idna to the list of libraries, but that gives

the library "idna" is not supported in "/Users/beep/git/isthislegit/dashboard/app.yaml", line 32, column 1 — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jordan-wright commented 6 years ago

Have you already run:

pip install -r requirements.txt -t lib/

to install the dependencies into the /Users/beep/git/isthislegit/dashboard/lib/ folder? If so, if you ls that folder, do you see the idna library?

kiwiz commented 6 years ago

Whoops, I didn't read the wiki close enough. That solved the problem, thanks!