Issue #38 wontfix

atexit error

Adam Groszer
created an issue

Comments (8)

  1. Jason R. Coombs

    The tests exit with exit code 0 because the process is completing normally (and the tests are passing), but because the error is "atexit", it's only logged and doesn't affect the process exit code. We encounter these errors in our production systems all the time for other projects and simply disregard them.

    Since the errors will go away in later versions of Python, is there any value in pursuing this issue? In Distribute 152, Nikolaus suggested that the problem was fixed in Setuptools, but I don't believe that to be the case. PJ Eby was pondering a less-than-optimal solution (remove the sandboxing of modules imported). To the best of my understanding, these are our two options:

    • Wait until the problem goes away with regard to multiprocessing and hope it doesn't come back in another manifestation.
    • Remove the save-and-restore on sys.modules.

    Neither approach is optimal. I'm open to other suggestions. Failing other suggestions, I suspect this ticket will linger until the first option is elected by default.

  2. Jurko Gospodnetić

    Just encountered this so wanted to add a note on a workaround that worked in my case - importing the multiprocessing Python module before running the setuptools.setup() function.

    Hope this helps someone.

    Best regards, Jurko Gospodnetić

  3. Log in to comment