Open liar666 opened 7 years ago
I've reinstalled everything with python2.7.
I can confirm this is a requirement. Would be great to specify that somewhere.
Also, when I ran
$ amsterdam -d ams-first -i wlan0 -setup
Traceback (most recent call last):
File "/home/gmuller/amsterdam-python2/bin/amsterdam", line 21, in <module>
from amsterdam import Amsterdam, AmsterdamException, AMSTERDAM_VERSION
File "/home/gmuller/amsterdam-python2/local/lib/python2.7/site-packages/amsterdam/__init__.py", line 2, in <module>
from .amsterdam import *
File "/home/gmuller/amsterdam-python2/local/lib/python2.7/site-packages/amsterdam/amsterdam.py", line 28, in <module>
from docker import Client
ImportError: cannot import name Client
After some research, I found that you're using theold docker API. The solution is to remove recent one:
$ pip uninstall docker
$ pip install docker-py
Would be great (at least for newbies like me) if that could be written somewhere.
I am getting a subsequent error based on this guide and I was wondering anyone encountered it as well.
amsterdam -d ams-test -i wlo0 setup File "/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/timeout.py", line 127, in _validate_timeout "int or float." % (name, value)) ValueError: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int or float.
➜ /data/compare-traffic3 amsterdam -d ams -i ens9f3 setup
Traceback (most recent call last):
File "/usr/bin/amsterdam", line 46, in
What OS are you guys using ?
Hi,
After installing a clean python3 virtualenv I get:
~$ amsterdam -d ams-test -i wlan0 setup Traceback (most recent call last): File "/home/gmuller/amsterdam-test/bin/amsterdam", line 46, in
ams = Amsterdam(args.name, args.iface, basepath)
File "/home/gmuller/amsterdam-test/lib/python3.6/site-packages/amsterdam/amsterdam.py", line 47, in init
self.check_environment()
File "/home/gmuller/amsterdam-test/lib/python3.6/site-packages/amsterdam/amsterdam.py", line 112, in check_environment
self.name.decode('ascii')
AttributeError: 'str' object has no attribute 'decode'
According to: https://stackoverflow.com/questions/26014209/python-3-4-str-attributeerror-str-object-has-no-attribute-decode#comment40743496_26014209
The problem is that the code is written for python2...
Would have been great to read a wraning about that somewhere, before installing the whole Python3 env... e.g. on pages: https://www.stamus-networks.com/2016/06/02/amsterdam-1-0-selks-and-docker/ or https://github.com/StamusNetworks/Amsterdam
Thanks for the job anyway, ELK+Suricata+Scirius+Evebox all look fabulous!