You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Running app.py from the auto-instrumentation exercise doesn't run on a MAC. Port 5000 is already taken by a system process #8
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
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
Activity
JenSeReal commentedon Jan 14, 2025
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 Receiveramimas commentedon Mar 12, 2025
Ran into same issue on my Intel MacBook Pro. Disabling AirDrop as per @JenSeReal 's suggestion helped to get back into the lesson.