I'm on Mavericks and I run a python script to have a minimalist local server.

Anytime I launch the server the firewall popup comes in and asks me "Do you want the application “python2.7” to accept incoming network connections?" I click "Allow".

I have inspected the Firewall Options from "Security and Privacy" and there is an entry "Python" that points to my virtualenv version of python that is marked as "Allow incoming connections".

So everything seems ok but this popup won't go away, it is always there anytime I launch the server.

Might be a problem linked to the different virtualenv installations of python?

2 Answers 2


It sounds like the problem is that virtualenv modifies the python binary when it copies it into the environment, invalidating the signature.

Try to follow this and see if it resolves your issue: http://blog.movieos.org/post/63545845092/stop-my-os-x-firewall-complaining-about-a-virtualenv

  • Thanks but it says "I can fix this by signing it myself (I have a developer account. Maybe you can use self-signed certificates? Pass)." I can I do this without a dev account?
    – Leonardo
    Nov 15, 2014 at 19:52
  • Yes you will want to self sign the application. Nov 15, 2014 at 21:14
  • Sorry, I meant "how can I do this without a dev account"
    – Leonardo
    Nov 15, 2014 at 21:18

You can use a self-signed certificate for this.

Apple's code signing procedures page explains how to make one. Look for the part that says "To use the Certificate Assistant to create a self-signed signing identity".

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .