Skip to content
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

Abort causes "NameError: name 'open' is not defined" on some pipelines #427

Open
JustAnotherArchivist opened this issue Nov 21, 2019 · 0 comments

Comments

@JustAnotherArchivist
Copy link
Contributor

Recently, on some pipelines, aborting a job started throwing logging exceptions at the end of NameError: name 'open' is not defined. This exception is raised in the logging's __init__.py inside FileHandler._open. It calls the core Python function open which should never be undefined.

Speculation: I suspect it has something to do with threads and code still running after the main wpull thread has already terminated, causing code to be unloaded. And presumably it's related to either the Python version or how Python is installed on those pipelines. Although I haven't investigated in detail, this appears to happen only on Buster-based pipelines. Buster ships with Python 3.7, which wpull doesn't support yet, so I installed Python 3.6 through pyenv on those machines instead.

Example from just a few minutes ago: 4w2xo5ti1en0cf332n067uoag

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

1 participant