Comments (6)
I eventually did get 'python3 -m build' to work by installing scenedetect and upgrading numpy. Perhaps consider requiring minimum versions for the dependencies to avoid strange behavior. The result was a tgz file identical to the one I downloaded, so I concluded "build" was probably not what I should be running to install.
I attempted to run the program in place, but ran into a claimed circular dependency. I have the latest versions of numpy and scenedetect as shown from pip:
sg@G7:~/dvrscan/extract_151/dvr-scan-1.5.1$ python3 dvr_scan
Traceback (most recent call last):
File "/home/sg/.local/lib/python3.8/site-packages/numpy/__init__.py", line 140, in <module>
from . import core
File "/home/sg/.local/lib/python3.8/site-packages/numpy/core/__init__.py", line 100, in <module>
from . import _add_newdocs_scalars
File "/home/sg/.local/lib/python3.8/site-packages/numpy/core/_add_newdocs_scalars.py", line 9, in <module>
import platform
File "/home/sg/dvrscan/extract_151/dvr-scan-1.5.1/dvr_scan/platform.py", line 28, in <module>
from scenedetect.platform import get_and_create_path
File "/home/sg/.local/lib/python3.8/site-packages/scenedetect/__init__.py", line 40, in <module>
from scenedetect.scene_manager import SceneManager, save_images
File "/home/sg/.local/lib/python3.8/site-packages/scenedetect/scene_manager.py", line 50, in <module>
from scenedetect.video_stream import VideoStream
File "/home/sg/.local/lib/python3.8/site-packages/scenedetect/video_stream.py", line 33, in <module>
from numpy import ndarray
ImportError: cannot import name 'ndarray' from partially initialized module 'numpy' (most likely due to a circular import) (/home/sg/.local/lib/python3.8/site-packages/numpy/__init__.py)
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
exec(code, run_globals)
File "/home/sg/dvrscan/extract_151/dvr-scan-1.5.1/dvr_scan/__main__.py", line 19, in <module>
from dvr_scan.cli.controller import run_dvr_scan
File "/home/sg/.local/lib/python3.8/site-packages/dvr_scan/__init__.py", line 41, in <module>
import dvr_scan.opencv_loader as _
File "/home/sg/.local/lib/python3.8/site-packages/dvr_scan/opencv_loader.py", line 34, in <module>
import cv2 as _
ImportError: numpy.core.multiarray failed to import
sg@G7:~/dvrscan/extract_151/dvr-scan-1.5.1$ pip list |egrep -i '(numpy|scene)'
numpy 1.23.4
scenedetect 0.6.0.3
from dvr-scan.
Thanks for bringing this to my attention, fixed that up.
from dvr-scan.
When I view https://dvr-scan.readthedocs.io/en/latest/guide/installing/ I am still seeing "404 Page Not Found" in the bottom third of the page. I opened it with an incognito window to ensure there isn't any odd caching or cookie thing going on.
Similarly, on https://dvr-scan.readthedocs.io/en/latest/download/ there is a link "Installing & Updating" that points to https://dvr-scan.readthedocs.io/en/latest/download/guide/installing.md that when followed appears to be the same page as noted above, with the 404 message on it.
from dvr-scan.
Looking at the source files for the docs, it appears the installing.md file has been removed. There are multiple links pointing to this file still in the docs.
I have been on 1.4 and it appears things have changed significantly and upgrading is non-trivial on a linux system. The download.md file implies that upgrading consists of extracting, running "python -m build" and then installing with pip. I assume the same instructions for a pip install documented at the top of that page apply.
The installing.md file that was removed documented the dependencies, IIRC. If that information has moved to another file, I cannot find it.
from dvr-scan.
I could not get the build to work as stated. I also tried "dvr_scan" and that ran but failed, perhaps because of a missing dependency? My python knowledge is very limited but I wanted to try to get through this today, so I am hacking.
I realize this information probably does not belong in this issue, but I am hoping my problems are related to not being able to reference that removed doc file.
Here is the output from my commands for reference:
sg@G7:~/dvrscan/extract_151/dvr-scan-1.5.1$ python3 -m build
/usr/bin/python3: No module named build
sg@G7:~/dvrscan/extract_151/dvr-scan-1.5.1$ python3 -m dvr_scan
Traceback (most recent call last):
File "/usr/lib/python3.8/runpy.py", line 185, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/lib/python3.8/runpy.py", line 144, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/lib/python3.8/runpy.py", line 111, in _get_module_details
__import__(pkg_name)
File "/home/sg/dvrscan/extract_151/dvr-scan-1.5.1/dvr_scan/__init__.py", line 44, in <module>
from dvr_scan.platform import init_logger
File "/home/sg/dvrscan/extract_151/dvr-scan-1.5.1/dvr_scan/platform.py", line 28, in <module>
from scenedetect.platform import get_and_create_path
ModuleNotFoundError: No module named 'scenedetect'
from dvr-scan.
Thanks for providing that output - this issue was raised in Breakthrough/PySceneDetect#350 but I haven't had a chance to look into it yet. I assume the issue might be importing ndarray
from numpy
rather than just importing numpy
itself. Feel free to post any follow-ups on Breakthrough/PySceneDetect#350, and thanks for the output again.
from dvr-scan.
Related Issues (20)
- Please return exit code to indicate whether events were detected HOT 1
- Please document how to get cuda working HOT 1
- Request: Support for OpenCL HOT 2
- Docker Documentation run command
- When using with wildcard, dvr-scan detects motion across two videos HOT 1
- ROI / region of interest not working HOT 1
- Request: Process video stream from stdin HOT 2
- wildcards produce different detection than file by file run HOT 4
- how do you install this program? HOT 6
- cv2 package got renamed to opencv-python and is now at 4.8.0.76 HOT 2
- Timecode format of hh:mm:ss not recognized HOT 3
- Process ends early and displays error: Element exceeds containing master element HOT 1
- Traceback TypeError for any dvr-scan command HOT 1
- cnt mode stuck HOT 4
- Invalid duration specification for ss: 00:04:60.000 when using -m copy or -m ffmpeg HOT 6
- Require version >= 0.6.2 of scenedetect
- Exception in encode thread when extracting motion events on v1.6 HOT 7
- Unsupported config option: region-file HOT 3
- region-editor config option gets ignored HOT 3
- Request: produce image file (thumb) of the frame with the highest amount of motion per output video HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dvr-scan.