8000 OreSatFile depends on GPIO and fails if real GPIO exist · Issue #27 · oresat/oresat-olaf · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
OreSatFile depends on GPIO and fails if real GPIO exist #27
Open
@ThirteenFish

Description

@ThirteenFish

I was trying to run edl_file_upload.py on station.uniclogs.org and it failed with the following exception:

Traceback (most recent call last):
  File "/home/uniclogs/oresat-c3-software/scripts/./edl_file_upload.py", line 41, in <module>
    from olaf import OreSatFile
  File "/home/uniclogs/oresat-c3-software/.venv/lib/python3.11/site-packages/olaf/__init__.py", line 18, in <module>
    from .board.gpio import GPIO_HIGH, GPIO_IN, GPIO_LOW, GPIO_OUT, Gpio, GpioError
  File
538C
 "/home/uniclogs/oresat-c3-software/.venv/lib/python3.11/site-packages/olaf/board/gpio.py", line 19, in <module>
    class Gpio:
  File "/home/uniclogs/oresat-c3-software/.venv/lib/python3.11/site-packages/olaf/board/gpio.py", line 34, in Gpio
    with open(f"{_GPIO_DIR_PATH}/{i}/label", "r") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/sys/class/gpio/gpio595/label'

The script uses only OreSatFile and should not depend on the state of GPIO for successful import.

For reference:

uniclogs@ebv1-station:~/oresat-c3-software/scripts $ ls /sys/class/gpio
export   gpio584  gpio588  gpio592  gpio595  gpio598  gpiochip512  gpiochip586  unexport
gpio582  gpio585  gpio589  gpio593  gpio596  gpio599  gpiochip570  gpiochip594
gpio583  gpio587  gpio591  gpio594  gpio597  gpio601  gpiochip578  gpiochip602

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0