Python Forum
Passing Openssl to Python 2.7
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Passing Openssl to Python 2.7
#1
Hi. I have been trying to build a certain program that requires Python 2.7 (Palemoon)
However, the building process fails right at its start. Some of the initial error messages:


Error:
ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/arquivos/Python-2.7.18/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/arquivos/Python-2.7.18/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha224 ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/arquivos/Python-2.7.18/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/arquivos/Python-2.7.18/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha256 ERROR:root:code for hash sha384 was not found.
This seems to be because Python was built without support of ssl.
So I would like to pass my Openssl to Python. However I did not find a way to do so. There are "--with-tcltk-includes" and "--with-tcltk-libs" options in configure, but they do not seem to work. (the test
Quote:checking for t_open in -lnsl
did not work when I passed the corresponding dirs of my Openssl installation)
Reply
#2
Here's a list of currently available ssl, or ssl related packages (on PyPi): PyPi
It appears that the minimum version of python that was ever supported was 3.0.

And FYI from python.org:

python.org Wrote:Python 2.7 reached end-of-life in 2020 (the final release was 2.7.18 in April 2020), and Python.org no longer actively maintains or recommends it. However, the official installers, source code, and archives are still publicly available and hosted directly on python.org for legacy use.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Problems passing arguments containing spaces to bash script and then on to python kaustin 6 15,567 Apr-03-2024, 08:26 PM
Last Post: deanhystad
  Python Alteryx QS-Passing pandas dataframe column inside SQL query where condition sanky1990 0 2,202 Dec-04-2023, 09:48 PM
Last Post: sanky1990
  passing php variable to python file jerald 1 4,646 Jul-07-2021, 11:46 AM
Last Post: Larz60+
  Passing flags to python script, through a function xbit 4 7,207 Apr-20-2021, 06:32 AM
Last Post: ndc85430
  Passing List of Objects in Command Line Python usman 7 5,817 Sep-27-2020, 03:45 PM
Last Post: ndc85430
  Python 2.7 passing variables from functions zetto33 1 2,963 Mar-19-2020, 07:27 PM
Last Post: Larz60+
  Cryptodome - convert openssl command to python twebber 1 3,214 Mar-25-2019, 12:27 AM
Last Post: twebber

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020