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

"OSError: [Errno 22] Invalid argument" when running zbid #267

Open
m1dkid opened this issue Sep 30, 2022 · 0 comments
Open

"OSError: [Errno 22] Invalid argument" when running zbid #267

m1dkid opened this issue Sep 30, 2022 · 0 comments

Comments

@m1dkid
Copy link

m1dkid commented Sep 30, 2022

Getting the following trace when running zbid (killerbee 3.0.0b2) on Ubuntu 20.04.1 with the following dependency versions:

python3-usb=1.0.2-1build1
python3-cryptography=2.8-3ubuntu0.1
python3-serial=3.4-5.1
python3-dev=3.8.2-0ubuntu2
libgcrypt20-dev=1.8.5-5ubuntu1.1
libgcrypt20=1.8.5-5ubuntu1.1

           Dev Product String                 Serial Number
See the GoodFET FAQ about missing info flash.
See the GoodFET FAQ about missing info flash.
Traceback (most recent call last):
  File "/usr/local/bin/zbid", line 4, in <module>
    __import__('pkg_resources').run_script('killerbee==3.0.0b2', 'zbid')
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 667, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 1463, in run_script
    exec(code, namespace, namespace)
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b2-py3.8-linux-x86_64.egg/EGG-INFO/scripts/zbid", line 23, in <module>
    show_dev(gps=arg_gpsdev, include=args.include)
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b2-py3.8-linux-x86_64.egg/killerbee/__init__.py", line 36, in show_dev
    for dev in devlist(vendor=vendor, product=product, gps=gps, include=include): 
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b2-py3.8-linux-x86_64.egg/killerbee/kbutils.py", line 286, in devlist
    gfccspi,subtype = isgoodfetccspi(serialdev)
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b2-py3.8-linux-x86_64.egg/killerbee/kbutils.py", line 366, in isgoodfetccspi
    gf.serInit(port=serialdev, attemptlimit=30)
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b2-py3.8-linux-x86_64.egg/killerbee/GoodFET.py", line 95, in serInit
    self.pyserInit(port, timeout, attemptlimit);
  File "/usr/local/lib/python3.8/dist-packages/killerbee-3.0.0b2-py3.8-linux-x86_64.egg/killerbee/GoodFET.py", line 178, in pyserInit
    self.serialport.setRTS(1);
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 596, in setRTS
    self.rts = value
  File "/usr/lib/python3/dist-packages/serial/serialutil.py", line 459, in rts
    self._update_rts_state()
  File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 627, in _update_rts_state
    fcntl.ioctl(self.fd, TIOCMBIS, TIOCM_RTS_str)
OSError: [Errno 22] Invalid argument

The weird thing is that I have a vm that has the same versions of everything that works fine (well killerbee doesn't just work fine but zbid works). Its just when I try to set this up on bare metal that this happens.

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