EscVM / OIDv4_ToolKit

Download and visualize single or multiple classes from the huge Open Images v4 dataset
GNU General Public License v3.0
809 stars 633 forks source link

OSError: The handle is Invalid #95

Open silent-j opened 3 years ago

silent-j commented 3 years ago

Using the Toolkit to download a single class of images on Windows 10, Python version 3.7.6

Running the downloader commands results in a WinError 6. The traceback points towards Lines 25 of the downloader file

Traceback (most recent call last):
  File "C:\Users\James\Documents\OIDv4_ToolKit\modules\downloader.py", line 25, in download
    columns, rows = os.get_terminal_size(0)
OSError: [WinError 6] The handle is invalid

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "OIDv4_ToolKit/main.py", line 37, in <module>
    bounding_boxes_images(args, DEFAULT_OID_DIR)
  File "C:\Users\James\Documents\OIDv4_ToolKit\modules\bounding_boxes.py", line 62, in bounding_boxes_images
    download(args, df_val, folder[0], dataset_dir, class_name, class_code)
  File "C:\Users\James\Documents\OIDv4_ToolKit\modules\downloader.py", line 27, in download
    columns, rows = os.get_terminal_size(1)
OSError: [WinError 6] The handle is invalid
simonm3 commented 3 years ago

i get the same error

simonm3 commented 3 years ago

Seems to work in a powershell terminal but not a bash terminal

dhirajkchoudhary commented 3 years ago

I also get the same error in windows 10

JamesMcCullochDickens commented 2 years ago

I can confirm that this will work in a powershell terminal but not a bash terminal.

reh1548 commented 1 year ago

I can also confirm that you need to use Powershell in order to make it work. Bash terminal like Git Bash doesn't work. Bash terminal stops working after downloading the .csv files.

83Rafa commented 1 year ago

Me too. It works on Powershell