ReproNim / reproman

ReproMan (AKA NICEMAN, AKA ReproNim TRD3)
https://reproman.readthedocs.io
Other
24 stars 14 forks source link

EC2-ssh: looks like "\r" is not handled correctly? #554

Open yarikoptic opened 3 years ago

yarikoptic commented 3 years ago

Running via reproman login on EC2 under screen session.

When attached to the screen (but not when just reattaching to see what was "logged" before) lines are broken (may be at original width?) and progressbars seems to create new lines instead of just overwriting an existing one:

2020-11-10 17:19:04,390 [INFO   ] Processed entire file: got 2630 files, 480 subdatasets with 0 files having mult

                                                                                                                tiple URLs to possibly reach them 
2020-11-10 17:19:04,391 [INFO   ] Saved output to <_io.TextIOWrapper name='/home/ubuntu/abcd-bids-test4/sourcedat
                                                                                                                ta/submission-31297.csv' mode='w' encoding='UTF-8'> 
2020-11-10 17:19:04,391 [INFO   ] -> Saving new submission 
2020-11-10 17:19:07,803 [INFO   ] -> Adding URLs                                                                 
Total: 0.00 files [00:04, ? files/s]initremote datalad ok
(recording state in git...)               
Total: 0.00 files [00:06, ? files/s]
Total:   0%|                                                                     | 0.00/4.00 [00:00<?, ? files/s]
Total:  25%|███████████████▌                                              | 1.00/4.00 [00:00<00:02, 1.01 files/s]
Total:  50%|███████████████████████████████                               | 2.00/4.00 [00:01<00:01, 1.21 files/s]
Total:  75%|██████████████████████████████████████████████▌               | 3.00/4.00 [00:01<00:00, 1.54 files/s]
Adding URLs: 100%|████████████████████████████████████████████████████████| 4.00/4.00 [00:01<00:00, 1.94 Files/s]
Total: 0.00 datasets [00:00, ? datasets/s]                                                                       
yarikoptic commented 3 years ago

and/or may be ANSI characters? (we need to make sure that we do not do any decoding from bytes and write them out as bytes as we get them). When I run TERM=screen glances outside the screen session -- seems to be all ok'ish. When inside screen -- garbles: indentations aren't right etc.