Skip to content
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

OSError: The handle is Invalid #95

Open
silent-j opened this issue Jan 16, 2021 · 6 comments
Open

OSError: The handle is Invalid #95

silent-j opened this issue Jan 16, 2021 · 6 comments

Comments

@silent-j
Copy link

silent-j commented Jan 16, 2021

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
Copy link

simonm3 commented Mar 23, 2021

i get the same error

@simonm3
Copy link

simonm3 commented Mar 23, 2021

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

@dhirajkchoudhary
Copy link

I also get the same error in windows 10

@JamesMcCullochDickens
Copy link

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

@reh1548
Copy link

reh1548 commented Nov 29, 2022

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
Copy link

83Rafa commented Jan 27, 2023

Me too. It works on Powershell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants