Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug mode: TypeError: ord() expected string of length 1, but int found #117

Open
Mikejz84 opened this issue Nov 15, 2023 · 0 comments
Open

Comments

@Mikejz84
Copy link

Attempting to run interceptor in debug mode: Get the following error.

weewxuser@raspberrypi:/usr/share/weewx $ sudo PYTHONPATH=/usr/share/weewx python user/interceptor.py --device=wu-client --mode=sniff --iface=wlan0 --filter="src 192.168.50.9 and dst port 80" [sudo] password for weewxuser: Exception in thread ServerThread: Traceback (most recent call last): File "/usr/lib/python3.9/threading.py", line 954, in _bootstrap_inner self.run() File "/usr/lib/python3.9/threading.py", line 892, in run self._target(*self._args, **self._kwargs) File "/usr/share/weewx/user/interceptor.py", line 435, in run_server self._server.run() File "/usr/share/weewx/user/interceptor.py", line 491, in run self.decode_ip_packet(0, pkt, ts) File "/usr/share/weewx/user/interceptor.py", line 518, in decode_ip_packet (_timestamp, _pktlen, _fmt_bytes(data))) File "/usr/share/weewx/user/interceptor.py", line 338, in _fmt_bytes return ' '.join(['%02x' % ord(x) for x in data]) File "/usr/share/weewx/user/interceptor.py", line 338, in <listcomp> return ' '.join(['%02x' % ord(x) for x in data]) TypeError: ord() expected string of length 1, but int found

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant