************************************************ // TRYING TO RUN EV THROUGH THE ETHERNET pi@raspberrypi:~/V2G/FreeV2G $ python3 Application.py eth -i "eth0" -m C4:93:00:34:CF:CF -r EV Welcome to Codico Whitebeet EV reference implementation Initiating framing interface Traceback (most recent call last): File "/home/pi/V2G/FreeV2G/Whitebeet.py", line 106, in __init__ self.framing.initialize_framing(iftype, iface, mac) File "/home/pi/V2G/FreeV2G/FramingInterface.py", line 66, in initialize_framing self.sut_adapter.start() File "/home/pi/V2G/FreeV2G/EthernetAdapter.py", line 124, in start self.socket = conf.L2socket(iface=self.sut_interface) File "/home/pi/.local/lib/python3.9/site-packages/scapy/arch/libpcap.py", line 529, in __init__ fd = open_pcap(iface, MTU, self.promisc, 100, File "/home/pi/.local/lib/python3.9/site-packages/scapy/arch/libpcap.py", line 338, in __init__ raise OSError(error) OSError: eth0: You don't have permission to capture on that device (socket: Operation not permitted) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pi/V2G/FreeV2G/Application.py", line 40, in with Ev(args.interface_type, args.interface, args.mac) as ev: File "/home/pi/V2G/FreeV2G/Ev.py", line 12, in __init__ self.whitebeet = Whitebeet(iftype, iface, mac) File "/home/pi/V2G/FreeV2G/Whitebeet.py", line 120, in __init__ raise ConnectionError("Failed to initialize the framing interface on \"{}\"".format(self.framing.sut_interface)) ConnectionError: Failed to initialize the framing interface on "" ************************************************ // TRYING TO RUN EV THROUGH THE ETHERNET (SUDO) pi@raspberrypi:~/V2G/FreeV2G $ sudo python3 Application.py eth -i "eth0" -m C4:93:00:34:CF:CF -r EV Welcome to Codico Whitebeet EV reference implementation Initiating framing interface Traceback (most recent call last): File "/home/pi/V2G/FreeV2G/Whitebeet.py", line 106, in __init__ self.framing.initialize_framing(iftype, iface, mac) File "/home/pi/V2G/FreeV2G/FramingInterface.py", line 54, in initialize_framing import EthernetAdapter File "/home/pi/V2G/FreeV2G/EthernetAdapter.py", line 12, in from pylibpcap.base import Sniff ModuleNotFoundError: No module named 'pylibpcap' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/pi/V2G/FreeV2G/Application.py", line 40, in with Ev(args.interface_type, args.interface, args.mac) as ev: File "/home/pi/V2G/FreeV2G/Ev.py", line 12, in __init__ self.whitebeet = Whitebeet(iftype, iface, mac) File "/home/pi/V2G/FreeV2G/Whitebeet.py", line 120, in __init__ raise ConnectionError("Failed to initialize the framing interface on \"{}\"".format(self.framing.sut_interface)) ConnectionError: Failed to initialize the framing interface on "" ************************************************ // TRYING TO INSTALL MISSING PACKAGES pi@raspberrypi:~/V2G/FreeV2G $ sudo pip install Cython python-libpcap Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple Requirement already satisfied: Cython in /usr/local/lib/python3.9/dist-packages (3.0.2) Collecting python-libpcap Using cached python-libpcap-0.4.2.tar.gz (81 kB) Installing build dependencies ... done Getting requirements to build wheel ... done Installing backend dependencies ... done Preparing wheel metadata ... done Building wheels for collected packages: python-libpcap Building wheel for python-libpcap (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3 /tmp/tmpjqmvbok9_in_process.py build_wheel /tmp/tmpo3mv8ndj cwd: /tmp/pip-install-er4m3621/python-libpcap_6e3d41259b544012aaca48563bee82cb Complete output (52 lines): /usr/local/lib/python3.9/dist-packages/setuptools/dist.py:498: SetuptoolsDeprecationWarning: Invalid dash-separated options !! ******************************************************************************** Usage of dash-separated 'description-file' will not be supported in future versions. Please use the underscore name 'description_file' instead. By 2023-Sep-26, you need to update your project and remove deprecated calls or your builds will no longer be supported. See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details. ******************************************************************************** !! opt = self.warn_dash_deprecation(opt, section) running bdist_wheel running build running build_py creating build creating build/lib.linux-armv7l-cpython-39 creating build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/exception.py -> build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/__init__.py -> build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/parse.py -> build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/open.py -> build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/cli.py -> build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/__main__.py -> build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/pcap.py -> build/lib.linux-armv7l-cpython-39/pylibpcap copying pylibpcap/utils.py -> build/lib.linux-armv7l-cpython-39/pylibpcap running egg_info writing python_libpcap.egg-info/PKG-INFO writing dependency_links to python_libpcap.egg-info/dependency_links.txt writing entry points to python_libpcap.egg-info/entry_points.txt writing requirements to python_libpcap.egg-info/requires.txt writing top-level names to python_libpcap.egg-info/top_level.txt reading manifest file 'python_libpcap.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' warning: no files found matching '*.h' under directory 'src' warning: no previously-included files matching '*.pyc' found anywhere in distribution adding license file 'LICENSE' writing manifest file 'python_libpcap.egg-info/SOURCES.txt' copying pylibpcap/base.c -> build/lib.linux-armv7l-cpython-39/pylibpcap running build_ext building 'pylibpcap.base' extension creating build/temp.linux-armv7l-cpython-39 creating build/temp.linux-armv7l-cpython-39/pylibpcap arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -I/usr/include/python3.9 -c pylibpcap/base.c -o build/temp.linux-armv7l-cpython-39/pylibpcap/base.o -lpcap pylibpcap/base.c:768:10: fatal error: pcap.h: No such file or directory 768 | #include "pcap.h" | ^~~~~~~~ compilation terminated. error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1 ---------------------------------------- ERROR: Failed building wheel for python-libpcap Failed to build python-libpcap ERROR: Could not build wheels for python-libpcap which use PEP 517 and cannot be installed directly ************************************************ // TRYING TO INSTALL MISSING PACKAGES pi@raspberrypi:~/V2G/FreeV2G $ sudo pip install pylibpcap Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple ERROR: Could not find a version that satisfies the requirement pylibpcap ERROR: No matching distribution found for pylibpcap