You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Setting up development environment results in circular import errors #350
Bug/Issue Description:
Get circular import errors below when trying to run main.py to modify code and to debug in IDE.
ImportError: cannot import name 'ndarray' from partially initialized module 'numpy' (most likely due to a circular import) (./DVR-Scan/venv/lib/python3.8/site-packages/numpy/__init__.py)
This builds successfully and produces the dvr-scan files however when I try to run the code directly so I can attach a debugger I get the following errors.
ImportError: cannot import name 'ndarray' from partially initialized module 'numpy' (most likely due to a circular import) (./DVR-Scan/venv/lib/python3.8/site-packages/numpy/__init__.py)
Same thing happens in VSCode and PyCharm
Expected Behavior:
Execution of dvr-scan.
Computing Environment:
OS: [e.g. Windows, Linux (Distro: Ubuntu, Mint, Fedora, etc...), OSX]: Linux Ubuntu 20.04
To install from source, download and extract the latest release to a location of your choice, and make sure you have the appropriate system requirements installed before continuing. DVR-Scan can be built by running the following command:
This might be coming from scenedetect which is another project I maintain - that's the only dependency here which seems to import only one item from numpy. All uses with in DVR-Scan import the entire module. Can you confirm if this happens with the latest version of Numpy?
Activity
Breakthrough commentedon Sep 18, 2023
This might be coming from
scenedetectwhich is another project I maintain - that's the only dependency here which seems to import only one item from numpy. All uses with in DVR-Scan import the entire module. Can you confirm if this happens with the latest version of Numpy?Thanks!
Breakthrough commentedon Dec 2, 2023
This should be fixed in the next release, thanks!
[bugfix] Fix for circular import errors #350
[bugfix] Fix for circular import errors #350