cimatosa / jobmanager

easy distributed computing based on the python class SyncManager for remote communication and python module multiprocessing for local parallelism
MIT License
6 stars 3 forks source link

failed to determine the width of the terminal #3

Closed paulmueller closed 9 years ago

paulmueller commented 9 years ago

When I run the simple example, I get this output:

Example_Server (27226): I'm the JobManager_Server main process
SyncManager (27227): started on X1Carbon:42524 with authkey 'simple example'
Example_Server (27226): start processing incoming results
statusbar (27226): failed to determine the width of the terminal
statusbar (27230): started as new loop process
statusbar (27230): setup signal handler for loop (SIGINT:ign, SIGTERM:ign)
00:00:03 [3258.4c/s] [=========================================> ] ETA 00:00:01statusbar   (27230): is still running on context exit
statusbar (27230): give running loop at most 2s to finish ... statusbar (27230): _wrapper_func   terminates gracefully
done
statusbar (27230): cleanup successful
00:00:04 [2496.0c/s] [==========================================>] ETA 00:00:00
Example_Server (27226): wait 2s before trigger clean up

It does not recognize the terminal width. Maybe one could use the functions get_terminal_width and get_terminal_height from here as a fallback?

Cheers, Paul

cimatosa commented 9 years ago

Yeah, had that before too ... for some reason I changed it using 'tput' right from the commandline. One should probably use all sorts possibilities!

Richard