Skip to content

atexit error #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
ghost opened this issue Jul 14, 2013 · 6 comments
Closed

atexit error #38

ghost opened this issue Jul 14, 2013 · 6 comments

Comments

@ghost
Copy link

ghost commented Jul 14, 2013

Originally reported by: agroszer (Bitbucket: agroszer, GitHub: agroszer)


http://winbot.zope.org/builders has now builders.
Note: some seem to pass, but fail on some atexit problem.
See http://winbot.zope.org/builders/setuptools_master%20py_265_win32/builds/0/steps/test/logs/stdio


@ghost
Copy link
Author

ghost commented Jul 14, 2013

Original comment by arfrever (Bitbucket: arfrever, GitHub: arfrever):


The atexit error is a bug in older versions of Python. See:

http://bugs.python.org/issue15881

https://bitbucket.org/tarek/distribute/issue/152

@ghost
Copy link
Author

ghost commented Jul 15, 2013

@ghost
Copy link
Author

ghost commented Jul 15, 2013

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


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.

@ghost
Copy link
Author

ghost commented Jul 16, 2013

Original comment by arfrever (Bitbucket: arfrever, GitHub: arfrever):


This bug will never be fixed by upstream in older versions of Python. We can just wait until Setuptools drops support for Python <2.7 and 3.1 in very distant future.

@ghost
Copy link
Author

ghost commented Feb 9, 2014

Original comment by jaraco (Bitbucket: jaraco, GitHub: jaraco):


These "error" messages will remain on older Python versions.

@ghost
Copy link
Author

ghost commented May 14, 2014

Original comment by jurko (Bitbucket: jurko, GitHub: jurko):


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ć

@ghost ghost added minor bug labels Mar 29, 2016
@ghost ghost closed this as completed Mar 29, 2016
jaraco added a commit that referenced this issue Jul 4, 2021
Fixed get_export_symbols for unicode filenames
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

0 participants