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

Gives this error #1

Open
Eikosa opened this issue Jul 3, 2022 · 1 comment
Open

Gives this error #1

Eikosa opened this issue Jul 3, 2022 · 1 comment

Comments

@Eikosa
Copy link

Eikosa commented Jul 3, 2022

Traceback (most recent call last):
  File "C:\Program Files\Python39\lib\runpy.py", line 197, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code  
    exec(code, run_globals)
  File "c:\Users\USER\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\lib\python\debugpy\__main__.py", line 45, in <module>
    cli.main()
  File "c:\Users\USER\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 444, in main  
    run()
  File "c:\Users\USER\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\lib\python\debugpy/..\debugpy\server\cli.py", line 285, in run_file
    runpy.run_path(target_as_str, run_name=compat.force_str("__main__"))  File "C:\Program Files\Python39\lib\runpy.py", line 268, in run_path  
    return _run_module_code(code, init_globals, run_name,
  File "C:\Program Files\Python39\lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\Program Files\Python39\lib\runpy.py", line 87, in _run_code  
    exec(code, run_globals)
  File "c:\Users\USER\AppData\Roaming\Python\Python39\site-packages\winocr.py", line 2, in <module>
    from winrt.windows.media.ocr import OcrEngine
  File "c:\Users\USER\AppData\Roaming\Python\Python39\site-packages\winrt\__init__.py", line 4, in <module>
    _winrt.init_apartment()
RuntimeError: İş parçacığı modu kurulduktan sonra değiştirilemez.

when trying to import winocr on visual studio code

@GitHub30
Copy link
Owner

GitHub30 commented Jul 6, 2022

microsoft/xlang#690

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

2 participants