Issue #38 wontfix

atexit error

Adam Groszer avatarAdam 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
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.