[Python] installing faultier glitcher tool ubuntu errors

Discussão em 'Python' iniciado por Stack, Outubro 7, 2024.

  1. Stack

    Stack Membro Participativo

    I am currently trying to install a opensource glitch tool.

    i installed a fresh install of unbuntu 24.04 , created a env called faultier which uses a forked openocd / juypter notebook and python and pip3 installed the faultier located on pyi.org. everything installed as of today is the most to date i can find.

    when i run in python

    import faultier this runs fine no errors when i run ft = faultier.Faultier()

    it produces this error.

    adam@adam-ThinkPad-T460:~$ cd faultier adam@adam-ThinkPad-T460:~/faultier$ source /faultier/bin/activate bash: /faultier/bin/activate: No such file or directory adam@adam-ThinkPad-T460:~/faultier$ source /faultier/bin/activate bash: /faultier/bin/activate: No such file or directory adam@adam-ThinkPad-T460:~/faultier$ source faultier/bin/activate (faultier) adam@adam-ThinkPad-T460:~/faultier$ python Python 3.12.3 (main, Sep 11 2024, 14:17:37) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. import faultier ft = faultier.Faultier() Traceback (most recent call last): File "/home/adam/faultier/faultier/lib/python3.12/site-packages/serial/serialposix.py", line 322, in open self.fd = os.open(self.portstr, os.O_RDWR | os.O_NOCTTY | os.O_NONBLOCK)^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ PermissionError: [Errno 13] Permission denied: '/dev/serial/by-id/usb-stacksmashing_Faultier_faultier-if00 File "/home/adam/faultier/faultier/lib/python3.12/site-packages/serial/serialutil.py", line 244, in __init__ self.open() File "/home/adam/faultier/faultier/lib/python3.12/site-packages/serial/serialposix.py", line 325, in open raise SerialException(msg.errno, "could not open port {}: {}".format(self._port, msg)) serial.serialutil.SerialException: [Errno 13] could not open port /dev/serial/by-id/usb-stacksmashing_Faultier_faultier-if00: [Errno 13] Permission denied: '/dev/serial/by-id/usb-stacksmashing_Faultier_faultier-if00}''

    i have tried accessing openocd but it produces this error.

    (faultier) adam@adam-ThinkPad-T460:~/faultier$ openocd


    Open On-Chip Debugger 0.12.0-ga0583343a (2024-10-06-19:44) [https://github.com/stacksmashing/openocd-tamarin] Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html embedded:startup.tcl:28: Error: Can't find openocd.cfg in procedure 'script at file "embedded:startup.tcl", line 28 Info : Listening on port 6666 for tcl connections Info : Listening on port 4444 for telnet connections Error: Debug Adapter has to be specified, see "adapter driver" command embedded:startup.tcl:28: Error: in procedure 'script' at file "embedded:startup.tcl", line 28 (faultier) adam@adam-ThinkPad-T460:~/faultier$

    the faultier usb is being detected when i lsusb and check to ensure it is there.

    now my linux experience of over 20 years very rusty and don't know what to do or how to fix this error, its more then likely that this will not be the last but this error isn't helping, if i can have some direction to fix this error would be great.

    i have tried tried installing openocd through pip3, and also installing openocd via github, im not sure if its even working as it produces the above error. also installed , python , juypter , pip3 , python3 , brew ( not sure i need that yet), pypi.org faultier depository.

    Continue reading...

Compartilhe esta Página