From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adolf Belka To: development@lists.ipfire.org Subject: Re: Problem updating python3-cryptography Date: Tue, 03 May 2022 23:02:08 +0200 Message-ID: <681f6cb5-ab2c-8c34-9404-6909584b7798@ipfire.org> In-Reply-To: <0D7D4D9E-BCA1-445E-AE6C-2E873ADD665E@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2083940562089751363==" List-Id: --===============2083940562089751363== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi Michael, On 03/05/2022 12:32, Michael Tremer wrote: > Hello Adolf, >=20 > It looks like it is looking for a Rust package called asn1. >=20 > You can create this in a very simple way by running: >=20 > tools/download-rust-crate asn1 >=20 > That will create a new LFS file for this package and automatically download= any sources. You will only need to add this to make.sh and build it. That is a very nice script. Worked very well. >=20 > You might need some further dependencies later on. That is an understatement. I am at the stage where python3-cryptography has required asn1, ouroboros and= pem and each of then has had additional dependencies. so I have reached an a= dditional 20 new rust packages. 5 of those had to be separately re-downloaded= as specific versions were required and not the latest version. Then python3-cryptography indicated that a newer rust-pyo3 was required but n= ot the most up to date version. I added that version in and then rust-pyo3 fl= agged up that the requirement was for indoc to be at version 0.3.6 but the cu= rrently installed version is 1.0.3. That would mean reverting indoc to a much= older version than the one already installed and running. The log file for t= his is below. I am not sure what to do now. Regards, Adolf. Building rust-pyo3 log May 3 17:30:37: Building rust-pyo3 pyo3-0.15.1.tar.gz checksum OK + cd /usr/src/lfs + make -f rust-pyo3 LFS_BASEDIR=3D/usr/src install =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Installing pyo3-0.15.1 ... Install started; saving file list to /usr/src/lsalr ... cd /usr/src/pyo3-0.15.1 && mkdir -p /usr/src/pyo3-0.15.1/.cargo && echo "${C= ARGO_CONFIG}" > /usr/src/pyo3-0.15.1/.cargo/config && rm -f Cargo.lock cd /usr/src/pyo3-0.15.1 && CARGOPATH=3D/usr/src/pyo3-0.15.1/.cargo RUSTC_BOOT= STRAP=3D1 cargo --offline build --release -Z avoid-dev-deps -j6 error: failed to select a version for the requirement `indoc =3D "^0.3.6"` candidate versions found which didn't match: 1.0.3 location searched: directory source `/usr/share/cargo/registry` (which is rep= lacing registry `crates-io`) required by package `pyo3 v0.15.1 (/usr/src/pyo3-0.15.1)` perhaps a crate was updated and forgotten to be re-vendored? As a reminder, you're using offline mode (--offline) which can sometimes caus= e surprising resolution failures, if this error is too confusing you may wish= to retry without the offline flag. make: *** [rust-pyo3:77: /usr/src/log/pyo3-0.15.1] Error 101 >=20 > -Michael >=20 >> On 10 Apr 2022, at 12:32, Adolf Belka wrote: >> >> Hi All, >> >> >> I have gone through and updated all python3 modules that I found with a ne= w version. Everything built fine except for python3-cryptography. >> >> I have gone through the log info and it seems to me, but I might be wrong,= that wants pyasnl1 but it seems to be looking for asnl1. >> >> However I have not been able to figure out where it should be changed to c= orrect this, if my interpretation is even right. >> >> >> I would appreciate any guidance/suggestions of what to look for. >> >> >> Log feedback for the build of cryptography is attached below. >> >> >> Regards, >> >> Adolf. >> <_build.ipfire.log> >=20 --===============2083940562089751363==--