Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #197236

Re: RE Version of OpenSSl ?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Left Right <olegsivokon@gmail.com>
Newsgroups comp.lang.python
Subject Re: RE Version of OpenSSl ?
Date Sun, 9 Feb 2025 19:06:14 +0100
Lines 80
Message-ID <mailman.105.1739124388.2912.python-list@python.org> (permalink)
References <20250209174926.BUpS2E00C4eH6rS01UpS0A@andre.telenet-ops.be> <CAJQBtgkMzMMGBkh3mAwtSTV70ruTz0s+0DtAtmCtdrFhP8PKeQ@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
Content-Transfer-Encoding quoted-printable
X-Trace news.uni-berlin.de mwnqLyXiVI/NeYVk2/jmDA6NH+ChsU8ROIHhNAUOlmTw==
Cancel-Lock sha1:l7dfPkHPYUqwNOnq63K6Zz20gZQ= sha256:psGEI0nZs9FUdGe9Bow38HT7HSGAa2VDs73kY+ZgO18=
Return-Path <olegsivokon@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
Authentication-Results mail.python.org; dkim=pass reason="2048-bit key; unprotected key" header.d=gmail.com header.i=@gmail.com header.b=N7LeYV4S; dkim-adsp=pass; dkim-atps=neutral
X-Spam-Status OK 0.000
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'repository': 0.05; 'happened': 0.07; 'modules': 0.07; 'scripts.': 0.07; 'sun,': 0.07; 'url:mailman': 0.09; 'amd64': 0.09; 'cc:addr:python-list': 0.09; 'grep': 0.09; 'pypi,': 0.09; 'reporting': 0.09; 'skip:[ 20': 0.09; 'ubuntu': 0.09; 'cc:no real name:2**0': 0.14; 'import': 0.15; 'that.': 0.15; 'url:listinfo': 0.15; '(*)': 0.16; '2025': 0.16; 'cat': 0.16; 'context.': 0.16; 'cpython': 0.16; 'executed': 0.16; 'found,': 0.16; 'jason,': 0.16; 'ok.': 0.16; 'python3': 0.16; 'received:mail-qv1-xf29.google.com': 0.16; 'rerun': 0.16; 'solution:': 0.16; 'ssl': 0.16; 'subject:Version': 0.16; 'url:old': 0.16; 'warning:': 0.16; 'wrote:': 0.16; 'problem': 0.16; 'python': 0.16; 'feb': 0.17; 'cc:addr:python.org': 0.20; 'url-ip:188.166.95.178/32': 0.20; 'url-ip:188.166.95/24': 0.20; 'machine': 0.22; "i've": 0.22; 'maybe': 0.22; 'version': 0.23; 'install': 0.23; 'run': 0.23; 'url-ip:188.166/16': 0.24; 'cc:2**0': 0.25; 'error': 0.29; 'message-id:@mail.gmail.com': 0.31; '(this': 0.32; 'python-list': 0.32; 'skip:- 60': 0.32; "i'm": 0.33; 'there': 0.33; 'header:In-Reply-To:1': 0.34; 'received:google.com': 0.34; 'same': 0.34; 'package': 0.34; 'from:addr:gmail.com': 0.34; 'trying': 0.35; '"if': 0.35; 'subject: ?': 0.35; '...': 0.37; 'way': 0.38; 'list': 0.39; 'thanks': 0.39; 'use': 0.39; 'explain': 0.40; 'skip:$ 10': 0.40; 'something': 0.40; 'helps': 0.60; 'skip:o 10': 0.61; "there's": 0.61; 'everything': 0.63; 'skip:o 40': 0.64; 'named': 0.65; 'url- ip:34/8': 0.66; 'bad': 0.67; 'url:index': 0.68; 'and,': 0.69; 'export': 0.69; 'skip:/ 10': 0.69; 'you.': 0.70; 'virtual': 0.71; 'near': 0.76; 'true:': 0.84; 'twisted': 0.84; 'url-ip:34.49/16': 0.84; 'url:source': 0.89; 'fresh': 0.91; 'stable': 0.93
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1739124385; x=1739729185; darn=python.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=dY8PbkZZGlnpQjHlMmaSkPX9aV3fmnpo1C8HGHSXSfA=; b=N7LeYV4SPLMtBC3ILjHDzrG6Nw6tzC091faaFljq9ThgDd9Ql+RU6V/qJ5t/mf335u YCVq2V8MsW3243peaeZ/y5QyMRVpKmFqKdLGY3XSX7ZcjVC/H4tjDnWBFgcu9ly+Pyj8 8/MCJ+ENj4zHPC0EeMJeuaiNfIsQ2D2FtEr461FIopREbMQomkgntBObr9KSt510dbsw Hpu+xCzj0Y/xafaFosM8g134oSuOKsMp7p+VbcWEg/P9AAtdNEUWIultOJBKPdhwgRTd ZU242FpbvwUWI9ep5OiUBtuEJE3vo6YyKpGUmnRz0TIAhoDbTCsnf5Muu22jhNnEp72Y PSGQ==
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739124385; x=1739729185; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=dY8PbkZZGlnpQjHlMmaSkPX9aV3fmnpo1C8HGHSXSfA=; b=mNV8oFQs+Kox3LUEx5kR7n9yUMWIQNL4kvfowzafF8gN4adTVM9mofWQ429aLWDWeQ M8Mt4RrddbvvvDBxh1WI0DHFDNfJf3aOQ/4YuSM401xRfZbZWHrN3nNM7rqozyw6Gr4F QuUnn6/haZwPxNYuKbvi69IbWzXckXW7ILaydAY9L2B878ofkxUQmlh8uSNuqVXcWePZ +oY8bEB5dM5llAdq6ADAGP/iFAWgDNuWJJpyIojWVF9GzH8ipRxsUWXjgWNGHOKgA81r 370LloUj2Nnze4MRRcWkj5P6TrU8kGjw2xCF7BIyDx8rrzAMLBAdweR7hXSHWZl/y1/5 tRNQ==
X-Gm-Message-State AOJu0Yym+nbdAfwRdB9NoLv716zxvDD0L9eOrfvIVuIfHke6JrsdkRcV f8WkooiftL58lerzxD3nhm/tiSmSKQD46SlDeRK+tDGWB3WqJkMjDdlFrzF01BN0oUSwZcXbtiH zonpYom/U1gXhMzpaL2KLlV/oPsY=
X-Gm-Gg ASbGnctQWj9r3fNGAQwS8PbtebK1hFcTqMFEPu16nJD7rlnSSfQmeT2QOOaJL9/M2Os nSjv6twXCRNKtqbpo/ATvQh2jb1naF1GNL09gnoOg4M2EvG0tiT/CTRtyPR2srtPU03zlB2O2B/ qMvhVadh3+kAyr9E723cHIeuc=
X-Google-Smtp-Source AGHT+IH54+PSxyWokG7E+FsuYUHG/RYLQ/HK7wAkSbswKG3nhnux1pHQOdtKHOZehsyeWNy0cfif54ZACat2RSccrX8=
X-Received by 2002:a05:6214:240f:b0:6e1:69ba:346 with SMTP id 6a1803df08f44-6e4455df88cmr198717286d6.10.1739124385452; Sun, 09 Feb 2025 10:06:25 -0800 (PST)
In-Reply-To <20250209174926.BUpS2E00C4eH6rS01UpS0A@andre.telenet-ops.be>
X-Gm-Features AWEUYZnqAeeeahwhqK9NdSdDLjrRzYAsCkMg7-lSy-Ub3jtZX6IJ4CNHI2fFeGg
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.39
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <https://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <CAJQBtgkMzMMGBkh3mAwtSTV70ruTz0s+0DtAtmCtdrFhP8PKeQ@mail.gmail.com>
X-Mailman-Original-References <20250209174926.BUpS2E00C4eH6rS01UpS0A@andre.telenet-ops.be>
Xref csiph.com comp.lang.python:197236

Show key headers only | View raw


So, this is how I know where my SSL headers are found, for instance:

➜  cpython git:(3.12) gcc -I. -I./Include -H ./Modules/_ssl.c 2>&1 | grep evp.h
.. /usr/include/openssl/evp.h

(this was executed from the repository root).

Can you see if you get something similar?

Also... just for sanity check: did you run .configure? There's a lot
of twisted logic there trying to find OpenSSL. And, unfortunately,
error reporting is very poor. (The error you are getting comes way,
way after everything bad has already happened and all knowledge of how
it happened is lost). Just all around atrocious error handling.


On Sun, Feb 9, 2025 at 5:51 PM Vincent Vande Vyvre via Python-list
<python-list@python.org> wrote:
>
> >
> > In case this helps you find the correct package to install:
> >
> > $ python3 -c "if True:
> > >     import ssl
> > >     print('Ok.')
> > > "
> > Ok.
> >
> > $ cat /etc/lsb-release
> > DISTRIB_ID=Ubuntu
> > DISTRIB_RELEASE=24.04
> > DISTRIB_CODENAME=noble
> > DISTRIB_DESCRIPTION="Ubuntu 24.04.1 LTS"
> >
> > $ apt list --installed | grep ssl
> >
> > WARNING: apt does not have a stable CLI interface. Use with caution in
> > scripts.
> >
> > libssl-dev/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64
> > [installed]
> > libssl3t64/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64
> > [installed,automatic]
> > libxmlsec1t64-openssl/noble,now 1.2.39-5build2 amd64 [installed,automatic]
> > openssl/noble-updates,noble-security,now 3.0.13-0ubuntu3.4 amd64
> > [installed,automatic]
> > ssl-cert/noble,noble,now 1.1.2ubuntu1 all [installed,automatic]
>
> Thanks Jason, I have near the same result of you.
> I need to explain the context.
> I'm on a new machine with a fresh install of Ubuntu 24.04 wich embed Python 3.12.3, no problem with that.
>
> As I'm maintainer of some Python modules published on PyPI, I've the habit of testing my modules in different virtual environments. For now Python 3.11, 3.12 and 3.13.
>
> So, I've maybe found a solution:
>
> I've create in my home a dir named /opt, download into it the latest version of openssl-1.1.1 and uncompress it.(*)
> -------------------------------------------------------------
> $ cd opt/openssl-1.1.1w
> $ ./config && make && make test
> $ mkdir $HOME/opt/lib
> $ mv $HOME/opt/openssl-1.1.1w/libcrypto.so.1.1 $HOME/opt/lib/
> $ mv $HOME/opt/openssl-1.1.1w/libssl.so.1.1 $HOME/opt/lib/
> $ export LD_LIBRARY_PATH=$HOME/opt/lib:$LD_LIBRARY_PATH
> --------------------------------------------------------------
> And rerun the compilation of 3.12.9 without problem with openssl.
>
> (*) https://openssl-library.org/source/old/1.1.1/index.html
>
> Vincent.
>
>
> --
> https://mail.python.org/mailman/listinfo/python-list

Back to comp.lang.python | Previous | Next | Find similar


Thread

Re: RE Version of OpenSSl ? Left Right <olegsivokon@gmail.com> - 2025-02-09 19:06 +0100

csiph-web