Closed wbeardall closed 4 years ago
Thank you for letting me know about the error.
I have a quick question. Do you get this error on terminal or on Jupyter notebook?
Hi, thanks for the response. I got this error running from terminal.
I see. Thank you. It is odd that the above error occurs on terminal.
Would you mind letting me know the OS, Python version, and the terminal app that you are using?
Apologies, I didn't have time to write things up in depth last night.
I'm running Ubuntu 18.04, Python 3.6.9, and I was running the script from the Spyder4 IDE to test some other things I had going on. I'll edit the original post with full details.
Thank you for the detail. I'll have a look.
I released version 1.0.7, which addresses the issue.
The same error shouldn't occur in this version. However, the progress bars won't be shown in Spyder IDE. The progress will be printed instead in the manner described in this section of README.
The console in Spyder IDE is not a TTY device. In fact, sys.stdout.isatty()
returns False
. The same code that draws the progress bars on Terminal doesn't work in Spyder IDE. For example, in Spyder IDE, \b
doesn't work as a backspace.
The previous versions were trying to instantiate ProgressBarJupyter
in Spyder IDE because Spyder IDE was incorrectly detected as Jupyter Notebook. I revised the detection algorithm so as to tell Jupyter Notebook from Spyder IDE.
It shouldn't be too difficult to draw progress bars in Spyder IDE. However, I haven't been able to figure out how to do it in a quick investigation today. What I need to know is how to delete characters and lines in Spyder IDE.
I assume that the issue has been resolved. Please let me know if the error persists.
Running the example threading script gives the following error in terminal and Python IDE:
NameError: name 'ProgressBarJupyter' is not defined when calling under the following snippet.
Minimal code to reproduce error
Full error traceback