JetsonHacksNano / build_python

Create .deb files for later versions of Python (3.9,3.10,3.11) for Jetson Linux - Ubuntu 18.04 - bionic
MIT License
16 stars 6 forks source link

[BUG] gpg error when signing deb for python3.10 #1

Open wzh1895 opened 1 year ago

wzh1895 commented 1 year ago

Describe the issue

The building process failed in the last step of signing the deb packages, with the following errors. However, the packages can still be installed without being signed.

W: python3.10 source: dependency-is-not-multi-archified python3.10-tk depends on python3.10 (multi-arch: allowed) W: python3.10 source: dependency-is-not-multi-archified python3.10-gdbm-dbg depends on python3.10-dbg (multi-arch: allowed) W: python3.10 source: dependency-is-not-multi-archified python3.10-tk-dbg depends on python3.10-dbg (multi-arch: allowed) W: python3.10 source: dependency-is-not-multi-archified python3.10-gdbm depends on python3.10 (multi-arch: allowed) W: python3.10 source: newer-standards-version 4.3.0 (current is 4.1.4) W: python3.10 source: missing-runtime-test-file debian/tests/module-install-local paragraph starting at line 58 W: python3.10 source: missing-runtime-test-file debian/tests/module-install-user paragraph starting at line 66 W: python3.10 source: missing-runtime-test-file debian/tests/module-install-venv paragraph starting at line 74 W: python3.10 source: missing-runtime-test-file debian/tests/module-install-virtualenv paragraph starting at line 82 E: libpython3.10-dbg: no-shlibs-control-file usr/lib/aarch64-linux-gnu/libpython3.10d.so.1.0 E: libpython3.10-dbg: package-must-activate-ldconfig-trigger usr/lib/aarch64-linux-gnu/libpython3.10d.so.1.0 W: python3.10-lib2to3: description-starts-with-leading-spaces W: python3.10-lib2to3: binary-without-manpage usr/bin/2to3-3.10 E: python3.10-lib2to3: python-script-but-no-python-dep usr/bin/2to3-3.10 #!/usr/bin/python3.10 E: python3.10-lib2to3: python-script-but-no-python-dep usr/lib/python3.10/lib2to3/pgen2/token.py #!/usr/bin/python3.10 E: python3.10: python-script-but-no-python-dep usr/bin/pygettext3.10 #!python3 W: python3.10-gdbm-dbg: priority-extra-is-replaced-by-priority-optional W: python3.10-tk-dbg: priority-extra-is-replaced-by-priority-optional W: python3.10-minimal: hardening-no-pie usr/bin/python3.10 W: python3.10-dbg: hardening-no-pie usr/bin/python3.10d W: libpython3.10-stdlib: description-too-long E: libpython3.10-stdlib: wrong-path-for-interpreter usr/lib/python3.10/cgi.py (#!/usr/local/bin/python != /usr/bin/python) W: libpython3.10-testsuite: executable-not-elf-or-script usr/lib/python3.10/test/test_array.py W: libpython3.10-testsuite: executable-not-elf-or-script usr/lib/python3.10/test/test_uuid.py W: libpython3.10-testsuite: executable-not-elf-or-script usr/lib/python3.10/test/test_importlib/update-zips.py E: libpython3.10: no-shlibs-control-file usr/lib/aarch64-linux-gnu/libpython3.10.so.1.0 E: libpython3.10: package-must-activate-ldconfig-trigger usr/lib/aarch64-linux-gnu/libpython3.10.so.1.0 N: 66 tags overridden (25 errors, 38 warnings, 3 info) Finished running lintian. Now signing changes and any dsc files... signfile dsc python3.10_3.10.11-1+bionic1.dsc Anthony Sottile (deadsnakes) asottile+deadsnakes@umich.edu gpg: keybox '/home/username/.gnupg/pubring.kbx' created gpg: skipped "Anthony Sottile (deadsnakes) asottile+deadsnakes@umich.edu": No secret key gpg: /tmp/debsign.Ti2hEhMg/python3.10_3.10.11-1+bionic1.dsc: clear-sign failed: No secret key debsign: gpg error occurred! Aborting.... debuild: fatal error at line 1081: running debsign failed gbp:error: 'debuild -i -I' failed: it exited with 29

NVIDIA Jetson Hardware Jetson Nano

L4T / JetPack Version JetPack 4.6.1

To Reproduce For example, what command line did you run?

bash ./build_python3.sh --version 3.10

Additionally, libncursesw5-dev is missing and caused the build to fail in my first run. after installing it, the build continued (and ran into the above errors).

nov30th commented 1 year ago

same issue with build python 3.11

dpkg-source: info: unapplying deb-locations.diff
dpkg-source: info: unapplying deb-setup.diff
dpkg-buildpackage: info: binary and diff upload (original source NOT included)
Now running lintian python3.11_3.11.3-1+bionic2_arm64.changes ...
W: python3.11 source: dependency-is-not-multi-archified python3.11-tk-dbg depends on python3.11-dbg (multi-arch: allowed)
W: python3.11 source: dependency-is-not-multi-archified python3.11-gdbm depends on python3.11 (multi-arch: allowed)
W: python3.11 source: dependency-is-not-multi-archified python3.11-tk depends on python3.11 (multi-arch: allowed)
W: python3.11 source: dependency-is-not-multi-archified python3.11-gdbm-dbg depends on python3.11-dbg (multi-arch: allowed)
W: python3.11 source: newer-standards-version 4.3.0 (current is 4.1.4)
W: python3.11 source: missing-runtime-test-file debian/tests/module-install-local paragraph starting at line 58
W: python3.11 source: missing-runtime-test-file debian/tests/module-install-user paragraph starting at line 66
W: python3.11 source: missing-runtime-test-file debian/tests/module-install-venv paragraph starting at line 74
W: python3.11 source: missing-runtime-test-file debian/tests/module-install-virtualenv paragraph starting at line 82
W: python3.11-tk-dbg: priority-extra-is-replaced-by-priority-optional
W: python3.11-lib2to3: description-starts-with-leading-spaces
W: python3.11-lib2to3: binary-without-manpage usr/bin/2to3-3.11
E: python3.11-lib2to3: python-script-but-no-python-dep usr/bin/2to3-3.11 #!/usr/bin/python3.11
E: python3.11-lib2to3: python-script-but-no-python-dep usr/lib/python3.11/lib2to3/pgen2/token.py #!/usr/bin/python3.11
W: libpython3.11-testsuite: executable-not-elf-or-script usr/lib/python3.11/test/test_uuid.py
W: libpython3.11-testsuite: executable-not-elf-or-script usr/lib/python3.11/test/test_array.py
W: libpython3.11-testsuite: executable-not-elf-or-script usr/lib/python3.11/test/test_importlib/update-zips.py
E: libpython3.11: embedded-library usr/lib/aarch64-linux-gnu/libpython3.11.so.1.0: expat
E: libpython3.11: no-shlibs-control-file usr/lib/aarch64-linux-gnu/libpython3.11.so.1.0
E: libpython3.11: package-must-activate-ldconfig-trigger usr/lib/aarch64-linux-gnu/libpython3.11.so.1.0
W: python3.11-examples: privacy-breach-generic usr/share/doc/python3.11/examples/wasm/python.html [<link rel="stylesheet" href="https://unpkg.com/xterm@4.18.0/css/xterm.css" crossorigin integrity="sha384-4eeen/ezgvhkelpkazzpx/kow/dtsgfk1bne+uhdjha+nkzjdh5vqkq31+y7eycd"/>] (https://unpkg.com/xterm@4.18.0/css/xterm.css)
W: python3.11-examples: privacy-breach-generic usr/share/doc/python3.11/examples/wasm/python.html [<script src="https://unpkg.com/xterm@4.18.0/lib/xterm.js" crossorigin integrity="sha384-yydnmem1iop5onm7rpxutin5a8timlhelnq6tnmi01/zpxxdawim2t4fjmx1djs+"/>] (https://unpkg.com/xterm@4.18.0/lib/xterm.js)
W: python3.11-gdbm-dbg: priority-extra-is-replaced-by-priority-optional
E: python3.11-dbg: embedded-library usr/bin/python3.11d: expat
W: python3.11-dbg: hardening-no-pie usr/bin/python3.11d
E: libpython3.11-dbg: embedded-library usr/lib/aarch64-linux-gnu/libpython3.11d.so.1.0: expat
E: libpython3.11-dbg: no-shlibs-control-file usr/lib/aarch64-linux-gnu/libpython3.11d.so.1.0
E: libpython3.11-dbg: package-must-activate-ldconfig-trigger usr/lib/aarch64-linux-gnu/libpython3.11d.so.1.0
E: python3.11-minimal: embedded-library usr/bin/python3.11: expat
W: python3.11-minimal: hardening-no-pie usr/bin/python3.11
E: python3.11: python-script-but-no-python-dep usr/bin/pygettext3.11 #!python3
W: libpython3.11-stdlib: description-too-long
E: libpython3.11-stdlib: wrong-path-for-interpreter usr/lib/python3.11/cgi.py (#!/usr/local/bin/python != /usr/bin/python)
N: 67 tags overridden (25 errors, 39 warnings, 3 info)
Finished running lintian.
Now signing changes and any dsc files...
 signfile dsc python3.11_3.11.3-1+bionic2.dsc Anthony Sottile <asottile@umich.edu>
gpg: keybox '/home/jetson/.gnupg/pubring.kbx' created
gpg: skipped "Anthony Sottile <asottile@umich.edu>": No secret key
gpg: /tmp/debsign.pwmRJhTs/python3.11_3.11.3-1+bionic2.dsc: clear-sign failed: No secret key
debsign: gpg error occurred!  Aborting....
debuild: fatal error at line 1081:
running debsign failed
gbp:error: 'debuild -i -I' failed: it exited with 29
nov30th commented 1 year ago

but this error seems doesn't break the following installation.

egbertn commented 1 year ago

but this error seems doesn't break the following installation.

Nope, it does break. Making a repository fails too then.

MrPerdition commented 1 year ago

this helped me:

pip3 install gbp

aakashj14dec commented 10 months ago

Hello,

Im getting the same issue, while installing the python3.9 from deadsnake repo.

@wzh1895 are you able to fix this?

signfile dsc python3.9_3.9.16-1+bionic1.dsc Anthony Sottile (deadsnakes) asottile+deadsnakes@umich.edu gpg: WARNING: unsafe ownership on homedir '/home/demon/.gnupg' gpg: WARNING: unsafe ownership on homedir '/home/demon/.gnupg' gpg: keybox '/home/blucursor/.gnupg/pubring.kbx' created gpg: skipped "Anthony Sottile (deadsnakes) asottile+deadsnakes@umich.edu": No secret key gpg: /tmp/debsign.oHaTropE/python3.9_3.9.16-1+bionic1.dsc: clear-sign failed: No secret key debsign: gpg error occurred! Aborting.... debuild: fatal error at line 1081: running debsign failed gbp:error: 'debuild -i -I' failed: it exited with 29

image

cartovarc commented 10 months ago

For those having the gbp error, in the last line of the script put this gbp buildpackage --git-ignore-branch --git-ignore-new

alex-bizkrovnyi commented 10 months ago

Hey guys, I am not sure this what you actually need, if you would like to only install python. I have received the same error regarding gbp on Jetson TX2 NX and I have decided to insall python manually, avoiding deb package creation and installation.

I have installed python using this repos and everything looks good. (On the first glance) https://github.com/JetsonHacksNano/python3.10/tree/ubuntu/bionic Dont forget to install required libs, which are mentioned in build_python3.sh script. These dependencies are required to have , for example pip3 workable. Without these libs I was not able to install anything using pip3: the ssl error happened

sudo apt update
sudo apt-get build-dep python3
sudo apt install -y pkg-config
# Install main dependencies
sudo apt install -y build-essential gdb lcov pkg-config \
      libbz2-dev libffi-dev libgdbm-dev libgdbm-compat-dev liblzma-dev \
      libncurses5-dev libreadline6-dev libsqlite3-dev libssl-dev \
      lzma lzma-dev tk-dev uuid-dev zlib1g-dev
# Install Python 3 extra dependencies
sudo apt install -y quilt sharutils libdb-dev blt-dev libbluetooth-dev \
      time xvfb python3-sphinx texinfo
./configure
make
make test
sudo make altinstall