Skip to content

OSError: [Errno 98] Address already in use #3

@borismesits

Description

@borismesits

Sometimes, the pi can get into a bad state.

Calling python yroko2_board.py
gives

dict_items([(0, 'GPIO6'), (1, 'GPIO5')])
Could not open gpio pins, resetting (automatic cleanup of pins)
Server address: ('', 8888)
Socket hostname: pi
Traceback (most recent call last):
  File "/home/hatlab/yroko2_board.py", line 329, in <module>
    sock.bind(server_address)
OSError: [Errno 98] Address already in use

In general, this shows up if for whatever reason there's another copy of the yroko2_board.py process running.

Calling sudo killall python cleans up these processes.

Apparently, just rebooting starts the wrong code, which does not actually change current, but does connect to instrument server. So to operate yroko presently, you have to call killall, then yroko2_board.py.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions