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

[Bug]: Circular Import? #28540

Open
3 tasks done
sr99622 opened this issue Jan 20, 2025 · 2 comments
Open
3 tasks done

[Bug]: Circular Import? #28540

sr99622 opened this issue Jan 20, 2025 · 2 comments
Assignees
Labels
bug Something isn't working category: Python API OpenVINO Python bindings support_request

Comments

@sr99622
Copy link

sr99622 commented Jan 20, 2025

OpenVINO Version

2024.6.0-17404-4c0f47d2335-releases/2024/6

Operating System

Windows System

Device used for inference

GPU

Framework

None

Model used

Yolox

Issue description

When using openvino from python on Windows, the program will start twice when running from the command prompt. The following code will reproduce the problem if copied into a file e.g. test_import.py and running as python test_import.py

print("--------------start--------------")
import openvino
print(openvino.__version__)
import time
for i in range(10):
    print("sleep", i)
    time.sleep(0.1)
print(" * finish")

The program will somehow call itself and re-start a new instance, which I believe may be caused by a circular import. I tested several other complex libraries, but found that openvino was the only one to exhibit this behavior.

Step-by-step reproduction

No response

Relevant log output

(myenv) C:\Users\sr996\source\libonvif\onvif-gui>python test_import.py
--------------start--------------
2024.6.0-17404-4c0f47d2335-releases/2024/6
sleep 0
--------------start--------------
sleep 1
sleep 2
sleep 3
2024.6.0-17404-4c0f47d2335-releases/2024/6
sleep 0
sleep 4
sleep 1
sleep 5
sleep 2
sleep 6
sleep 3
sleep 7
sleep 4
sleep 8
sleep 5
sleep 9
sleep 6
 * finish
sleep 7
sleep 8
sleep 9
 * finish

Issue submission checklist

  • I'm reporting an issue. It's not a question.
  • I checked the problem with the documentation, FAQ, open issues, Stack Overflow, etc., and have not found a solution.
  • There is reproducer code and related data files such as images, videos, models, etc.
@sr99622 sr99622 added bug Something isn't working support_request labels Jan 20, 2025
@itsbharatj
Copy link
Contributor

.take

Copy link
Contributor

Thank you for looking into this issue! Please let us know if you have any questions or require any help.

@ilya-lavrenov ilya-lavrenov added the category: Python API OpenVINO Python bindings label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working category: Python API OpenVINO Python bindings support_request
Projects
None yet
Development

No branches or pull requests

4 participants