Using macOS Big Sur (version 11.4), have Python 3.9.6. I cloned the repository and ran "python3 setup.py build", then "python3 setup.py install", but I got a permission denied error, I so tried running "sudo python3 setup.py install", which did not result in an error. When I try running "conpot" or "conpot --help" directly into terminal, I get an IndexError:
[my computer] ~ % conpot --help
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/conpot", line 4, in <module>
__import__('pkg_resources').run_script('conpot==0.6.0', 'conpot')
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 651, in run_script
self.require(requires)[0].run_script(script_name, ns)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pkg_resources/__init__.py", line 1448, in run_script
exec(code, namespace, namespace)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/conpot-0.6.0-py3.9.egg/EGG-INFO/scripts/conpot", line 37, in <module>
from conpot import protocols
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/conpot-0.6.0-py3.9.egg/conpot/protocols/__init__.py", line 17, in <module>
from .IEC104.IEC104_server import IEC104Server
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/conpot-0.6.0-py3.9.egg/conpot/protocols/IEC104/IEC104_server.py", line 17, in <module>
from conpot.protocols.IEC104.DeviceDataController import DeviceDataController
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/conpot-0.6.0-py3.9.egg/conpot/protocols/IEC104/DeviceDataController.py", line 19, in <module>
from conpot.protocols.IEC104.frames import *
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/conpot-0.6.0-py3.9.egg/conpot/protocols/IEC104/frames.py", line 18, in <module>
from scapy.all import *
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy-2.4.3rc1-py3.9.egg/scapy/all.py", line 27, in <module>
from scapy.route import *
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy-2.4.3rc1-py3.9.egg/scapy/route.py", line 194, in <module>
conf.route = Route()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy-2.4.3rc1-py3.9.egg/scapy/route.py", line 27, in __init__
self.resync()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy-2.4.3rc1-py3.9.egg/scapy/route.py", line 35, in resync
self.routes = read_routes()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/scapy-2.4.3rc1-py3.9.egg/scapy/arch/unix.py", line 82, in read_routes
netif = rt[4 + mtu_present + prio_present + refs_present + locked]
IndexError: list index out of range
Also, when I try running "python3 setup.py check", it simply prints "running check" and then nothing happens.
Unfortunately I can not reproduce this in my Linux machine. The only thing I can recommend is running conpot in a docker container. Conpot under MacOS is not officially supported.
Using macOS Big Sur (version 11.4), have Python 3.9.6. I cloned the repository and ran "python3 setup.py build", then "python3 setup.py install", but I got a permission denied error, I so tried running "sudo python3 setup.py install", which did not result in an error. When I try running "conpot" or "conpot --help" directly into terminal, I get an IndexError:
[my computer] ~ % conpot --help
Also, when I try running "python3 setup.py check", it simply prints "running check" and then nothing happens.
Any help would be very much appreciated.