-
Notifications
You must be signed in to change notification settings - Fork 43
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
NameError: name 'time' is not defined #39
Comments
I am facing the same issue with a similar usage. I have imported the time module, and inside a function running in a couple parallel processes, I am attempting a time.sleep(1). When that line is reached in each process, I get the NameError: name 'time' is not defined error you're reporting. I'm also running Jupyter on Win 10, so I suspect a similar root cause. Did you uncover a solution? |
This error is due to a different forking behavior in windows.
Check this discussion for more details. |
Worked like a charm! Thanks a million! |
This code breaks with
NameError: name 'time' is not defined
:Error message:
However, this works fine - the difference being, I've passed the time module as a name to my function:
I have Windows 10, Jupyter Notebook, Python 3.8.8, and these packages:
Is it a bug with p-tqdm? Or with one of the other modules? (in which case I will move this bug report to the appropriate repo)
The text was updated successfully, but these errors were encountered: