Skip to content

depreciated commands #736

@ITSSmitty870

Description

@ITSSmitty870

I am not very linux experienced and I was trying to get this to work.
I have it working on a older version of Ubuntu and upgraded it to 24.03 which has Python 3.12.3 installed.
When trying to run python3 /usr/local/PyKMIP/bin/run_server.py &, I see an list of errors:

/usr/lib/python3/dist-packages/kmip/services/server/crypto/engine.py:54: CryptographyDeprecationWarning: Blowfish has been deprecated
enums.CryptographicAlgorithm.BLOWFISH: algorithms.Blowfish,
/usr/lib/python3/dist-packages/kmip/services/server/crypto/engine.py:56: CryptographyDeprecationWarning: CAST5 has been deprecated
enums.CryptographicAlgorithm.CAST5: algorithms.CAST5,
/usr/lib/python3/dist-packages/kmip/services/server/crypto/engine.py:57: CryptographyDeprecationWarning: IDEA has been deprecated
enums.CryptographicAlgorithm.IDEA: algorithms.IDEA,
Traceback (most recent call last):
File "/usr/local/PyKMIP/bin/run_server.py", line 22, in
server.main()
File "/usr/lib/python3/dist-packages/kmip/services/server/server.py", line 678, in main
with s:
File "/usr/lib/python3/dist-packages/kmip/services/server/server.py", line 481, in enter
self.start()
File "/usr/lib/python3/dist-packages/kmip/services/server/server.py", line 292, in start
context.load_cert_chain(
ssl.SSLError: [SSL] PEM lib (_ssl.c:3895)
Process PolicyDirectoryMonitor-2:
Traceback (most recent call last):
File "/usr/lib/python3.12/multiprocessing/process.py", line 314, in _bootstrap
self.run()
File "/usr/lib/python3/dist-packages/kmip/services/server/monitor.py", line 145, in run
self.scan_policies()
File "/usr/lib/python3/dist-packages/kmip/services/server/monitor.py", line 114, in scan_policies
if p in sorted(self.policy_store.keys()):
^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 2, in keys
File "/usr/lib/python3.12/multiprocessing/managers.py", line 820, in _callmethod
conn.send((self._id, methodname, args, kwds))
File "/usr/lib/python3.12/multiprocessing/connection.py", line 206, in send
self._send_bytes(_ForkingPickler.dumps(obj))
File "/usr/lib/python3.12/multiprocessing/connection.py", line 427, in _send_bytes
self._send(header + buf)
File "/usr/lib/python3.12/multiprocessing/connection.py", line 384, in _send
n = write(self._handle, buf)
^^^^^^^^^^^^^^^^^^^^^^^^
BrokenPipeError: [Errno 32] Broken pipe

Since I have no idea what I am doing :(
I tried DIet_Pi which Python 3.13.5 and I get a different error.
python3 /usr/local/PyKMIP/bin/run_server.py &
File "/usr/local/PyKMIP/bin/run_server.py", line 22, in
server.main()
~~~~~~~~~~~^^
File "/usr/local/lib/python3.13/dist-packages/PyKMIP-0.11.0.dev1-py3.13.egg/kmip/services/server/server.py", line 673, in main
with s:
^
File "/usr/local/lib/python3.13/dist-packages/PyKMIP-0.11.0.dev1-py3.13.egg/kmip/services/server/server.py", line 476, in enter
self.start()
~~~~~~~~~~^^
File "/usr/local/lib/python3.13/dist-packages/PyKMIP-0.11.0.dev1-py3.13.egg/kmip/services/server/server.py", line 290, in start
self._socket = ssl.wrap_socket(
^^^^^^^^^^^^^^^
AttributeError: module 'ssl' has no attribute 'wrap_socket'

Basically it sounds like the scripts need updated for new versions of Python that depreciated ssl commands and removal of depreciated TLS protocols.

Or I need to figure out how to downgrade python or install an older version on an older version of ubuntu.
Is there a way to donate beer money and ask the dev to update?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions