ID 496656 - hashlib errors due to missing Python elements in 4.7v5 on Linux

Follow

Problem summary
Python libraries are missing in 4.7v5 on Linux

Customer reported version
Mari 4.7v5

Customer reported platform
Linux

Steps to reproduce

1) Launch Mari

2) Open the Python Console

3) Run the following snippet:

import hashlibprint(dir(hashlib))

Expected behaviour
The following libraries should be included in the output:

['__all__', '__builtins__', '__doc__', '__file__', '__get_builtin_constructor', '__name__', '__package__', '_hashlib', 'algorithms', 'algorithms_available', 'algorithms_guaranteed', 'md5', 'new', 'pbkdf2_hmac', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512']

Actual behaviour
The following libraries are printed:

['__all__', '__builtins__', '__doc__', '__file__', '__get_builtin_constructor', '__name__', '__package__', '_trans_36', '_trans_5C', 'algorithms', 'algorithms_available', 'algorithms_guaranteed', 'binascii', 'logging', 'new', 'pbkdf2_hmac', 'struct']
These are missing: '_hashlib', 'md5', 'sha1', 'sha224', 'sha256', 'sha384', 'sha512'


Workaround
Unknown.

Reproduced by support
This bug has been reproduced in:
Mari 4.7v5 - CentOS 7.9

Unable to reproduce bug in:
Mari 4.8v1 - CentOS 7.9
Mari 4.7v4 - CentOS 7.9

Earliest version tested
Mari 4.7v4 - This issue doesn't appear in this version and has regressed

 

    We're sorry to hear that

    Please tell us why