-
Notifications
You must be signed in to change notification settings - Fork 51
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
1.6.2 fail to build #187
Comments
Hi @DMO to build DVR-Scan now you should first run `python3
dist/pre_release.py` to generate the documentation. Could you try running
that first? It needs the deps from docs/requirements.txt to run.
Also note that DVR-Scan requires the python3-tk package to run now. Let me
know if you run into any issues, thanks!
On Wednesday, December 18, 2024, dmo ***@***.***> wrote:
Debian unstable amd64
python 3.12.8 and 3.13.1
1.6.1.1 build fine
dpkg-buildpackage: info: source package dvr-scan-dmo
dpkg-buildpackage: info: source version 1.6.2-dmo1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Christian Marillat <
***@***.***>
dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
dpkg-source: info: using options from
dvr-scan-dmo-1.6.2/debian/source/options:
--extend-diff-ignore=^[^/]*[.]egg-info/
debian/rules clean
dh clean -Spybuild
dh_auto_clean -O-Spybuild
debian/rules override_dh_clean
make[1]: Entering directory '/build/dvr-scan-dmo-1.6.2'
dh_clean dvr_scan/docs
make[1]: Leaving directory '/build/dvr-scan-dmo-1.6.2'
debian/rules execute_after_dh_clean
make[1]: Entering directory '/build/dvr-scan-dmo-1.6.2'
rm -f -r dist/installer/Prerequisites/Visual\ C++\ Redistributable\ for\
Visual\ Studio\ 2015-2019
make[1]: Leaving directory '/build/dvr-scan-dmo-1.6.2'
dpkg-source -b .
dpkg-source: info: using options from
dvr-scan-dmo-1.6.2/debian/source/options:
--extend-diff-ignore=^[^/]*[.]egg-info/
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building dvr-scan-dmo using existing
./dvr-scan-dmo_1.6.2.orig.tar.gz
dpkg-source: warning: ignoring deletion of directory
dist/installer/Prerequisites/Visual C++ Redistributable for Visual Studio
2015-2019
dpkg-source: warning: ignoring deletion of file
dist/installer/Prerequisites/Visual C++ Redistributable for Visual Studio
2015-2019/VC_redist.x64.exe, use --include-removal to override
dpkg-source: info: building dvr-scan-dmo in
dvr-scan-dmo_1.6.2-dmo1.debian.tar.xz
dpkg-source: info: building dvr-scan-dmo in dvr-scan-dmo_1.6.2-dmo1.dsc
debian/rules binary
dh binary -Spybuild
dh_update_autotools_config -O-Spybuild
dh_autoreconf -O-Spybuild
dh_auto_configure -O-Spybuild
dh_auto_build -O-Spybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.12 with
"build" module
I: pybuild base:311: python3.12 -m build --skip-dependency-check
--no-isolation --wheel --outdir
/build/dvr-scan-dmo-1.6.2/.pybuild/cpython3_3.12_dvr-scan
* Building wheel...
running bdist_wheel
running build
running build_py
creating build/lib/dvr_scan
copying dvr_scan/video_joiner.py -> build/lib/dvr_scan
copying dvr_scan/overlays.py -> build/lib/dvr_scan
copying dvr_scan/detector.py -> build/lib/dvr_scan
copying dvr_scan/config.py -> build/lib/dvr_scan
copying dvr_scan/__init__.py -> build/lib/dvr_scan
copying dvr_scan/subtractor.py -> build/lib/dvr_scan
copying dvr_scan/platform.py -> build/lib/dvr_scan
copying dvr_scan/scanner.py -> build/lib/dvr_scan
copying dvr_scan/region.py -> build/lib/dvr_scan
copying dvr_scan/opencv_loader.py -> build/lib/dvr_scan
copying dvr_scan/__main__.py -> build/lib/dvr_scan
creating build/lib/dvr_scan/app
copying dvr_scan/app/__init__.py -> build/lib/dvr_scan/app
copying dvr_scan/app/region_editor.py -> build/lib/dvr_scan/app
creating build/lib/dvr_scan/cli
copying dvr_scan/cli/__init__.py -> build/lib/dvr_scan/cli
copying dvr_scan/cli/controller.py -> build/lib/dvr_scan/cli
error: package directory 'dvr_scan/docs' does not exist
ERROR Backend subprocess exited when trying to invoke build_wheel
E: pybuild pybuild:389: build: plugin pyproject failed with: exit code=1:
python3.12 -m build --skip-dependency-check --no-isolation --wheel --outdir
/build/dvr-scan-dmo-1.6.2/.pybuild/cpython3_3.12_dvr-scan
dh_auto_build: error: pybuild --build -i python{version} -p 3.12 returned
exit code 13
make: *** [debian/rules:6: binary] Error 25
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.<
|
Not related to DVR-Scan but to PySceneDetect
|
Thanks for the update.
I will create a new release this evening which doesn't require you to run
the pre_release.py script. This step was added so documentation is
included with distributions. However I can include them in the repo to
avoid this step so the package can be built with minimal dependencies.
If you need something sooner: the python3-opencv package is a bit out of
date, it might be better if you could install a more recent version from
pip. Running the pre release script requires all the deps in
requirements.txt too.
Lastly, note that python3-tk is a Debian/dpkg package and won't show up in
requirements.txt. Is there a correct way to tag that as a dependency?
Sorry I am not that familiar with building dpkgs - happy to look more into
that if you can point me in the right direction.
I would be happy to add a builder on GitHub that builds the package here if
you can provide the commands required. Then I could verify that the Debian
package is buildable on each commit.
https://github.com/marketplace/actions/build-debian-packages states that
the repo should contain a debian/ folder with details on how to build it.
If you are willing and have already done that, feel free to upload a PR
with it and I can look into integrating it here on GitHub.
Thanks!
On Wednesday, December 18, 2024, dmo ***@***.***> wrote:
Still doesn't build. python3-opencv 4.6.0 is installed
python3 dist/pre_release.py
Creating .version_info.
Traceback (most recent call last):
File "/build/dvr-scan-dmo-1.6.2/dist/pre_release.py", line 181, in
<module>
write_version_info_for_windows_exe()
File "/build/dvr-scan-dmo-1.6.2/dist/pre_release.py", line 24, in
write_version_info_for_windows_exe
import dvr_scan
File "/build/dvr-scan-dmo-1.6.2/dvr_scan/__init__.py", line 40, in
<module>
from dvr_scan.platform import init_logger
File "/build/dvr-scan-dmo-1.6.2/dvr_scan/platform.py", line 29, in
<module>
from scenedetect.platform import get_and_create_path, get_ffmpeg_version
File "/usr/lib/python3/dist-packages/scenedetect/__init__.py", line 54,
in <module>
from scenedetect.scene_manager import SceneManager, save_images,
SceneList, CutList, Interpolation
File "/usr/lib/python3/dist-packages/scenedetect/scene_manager.py", line
413, in <module>
image: cv2.Mat,
^^^^^^^
AttributeError: module 'cv2' has no attribute 'Mat'
make[1]: *** [debian/rules:9: override_dh_auto_build] Error 1
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.<
|
I'm going to hold off on making a new release until I can understand more about how the Debian packages are being created, and if it's possible for you to run the pre-release script there. You can see how I build the Python distribution here on Github: You can also try doing this in a virtual environment if it would clobber your system packages. In the meantime, you can still build DVR-Scan 1.6.2 if you copy the docs from the pre-built Python package. I zipped these files here so you can grab them quickly (dvr_scan_docs-1.6.2.zip). If you extract them into To download them from a trusted build, you can also download the Python source package from PyPI or from Github Releases. If you extract Items I could use your response on @marillat:
|
We don't use venv to do python packages. Packages are build with pybuild under chroot. https://wiki.debian.org/Python/Pybuild
You must set python
See 3
Probably a bad idea to add a debian directory. Let the Debian maintainer do the job. Christian |
This does not work for the The same issue should happen for OpenCV, but somehow that is listed as a dependency of the package. We cannot use Can you try running the pre_release script after uninstalling your system's
Sounds good. Can you share how to build the package so I can reproduce the issues you are running into? I wasn't able to find the source code for how you are producing the .debs. |
According to the Debian Python Policy, the
For the last point, there are some workarounds I pointed out previously. Although here we use |
Sorry for the reply spam, I've just updated the v1.6.2 release branch and tag, so you should be able to avoid running the pre-release script and get the Debian package updated now. Will leave this issue open until you can respond to the other open items. Thank you! |
It's OK for me. |
As I'm saying before Debian don't use at all venv to build python package. Christian |
Gotcha. I think the OpenCV issue you were running into before was caused by Breakthrough/PySceneDetect#468 so that should be fixed now - when you get a chance, could you let me know if you are able to run the pre_release script successfully and integrate it into the Debian packaging workflow? I am still unsure how to address the Tkinter issue, however I suspect you may need to add it to the |
I still don't understand why the website need to be generated by the package installer. Otherwise, I'm happy to do a package without calling the
|
In my last comment I'm talking about the 1.6.2 source from https://github.com/Breakthrough/DVR-Scan/releases/tag/v1.6.2-release |
Thanks for trying, you can proceed to release without running the script.
I bundled the pre built docs in there now.
I was hoping to avoid it since they could become stale, but I will put a
check for this in the GitHub builders to prevent that. Thanks so much for
your help with this.
…On Tue, Dec 24, 2024, 9:14 AM dmo ***@***.***> wrote:
In my last comment I'm talking about the 1.6.2 source from
https://github.com/Breakthrough/DVR-Scan/releases/tag/v1.6.2-release
—
Reply to this email directly, view it on GitHub
<#187 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAA6TBGFLQJDM3NTVV6PQLT2HFT4TAVCNFSM6AAAAABT2K22WCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNRRGE3TEOJYGU>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Debian unstable amd64
python 3.12.8 and 3.13.1
1.6.1.1 build fine
The text was updated successfully, but these errors were encountered: