Skip to content

Running app.py from the auto-instrumentation exercise doesn't run on a MAC. Port 5000 is already taken by a system process  #8

Open

Description

@ChPfisterer

As described in the title, I was not able to run the Lesson 6 Lab, exercise 1 (Instrumentation of the Python (Flask) Component (1)).
The reason seems to be that a system process already takes the default port 5000.

Workaround: change the port to anything not used yet.
Changes I made to file automatic-instrumentation/todoui-flask/app.py:

# ...
if __name__ == '__main__':
    app.run(host='0.0.0.0', port=5002)
    # app.run(debug=True) # doesn't work with auto instrumentation

Activity

  1. JenSeReal commented on Jan 14, 2025

    @JenSeReal
    Contributor

    Oh, I didn't encounter the problem on my M2 Mac. Thanks for the hint. An alternative approach is to disable AirDrop System Settings > General > AirDrop & Handoff > AirPlay Receiver

  2. amimas commented on Mar 12, 2025

    @amimas

    Ran into same issue on my Intel MacBook Pro. Disabling AirDrop as per @JenSeReal 's suggestion helped to get back into the lesson.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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