Closed ChristofferLB closed 3 months ago
Commander installs aiortc
package if running on Python 3.8 or later.
https://github.com/Keeper-Security/Commander/blob/1aa77122b3a54d2b1ab2c43a22668beccf231be4/requirements.txt#L22
aiortc
depends on av
package which uses native libraries. Those libraries cannot be loaded.
It looks like av
module tries to load Windows DLL. The first line in your stacktrace used UNIX filenames
File "/usr/src/tmp/b27fs3b0-6287-4133-b166-3dc8a9f493c3/runbooks/CredentialDistribution.py",
Probably Windows libraries have not been installed.
The reference to aiortc
was added to Commander v16.9.28.
pip install keepercommander==16.9.26
We will try to duplicate and fix this issue with Azure automation runbook.
Hi,
Sorry for a late reply.
I downgraded to 16.9.26 and it works fine now, thanks! It would be great if it can be fixed, but until then I'm fine using the slightly older version.
Hi,
I'm using the Keeper Commander Python SDK in an automation runbook in Azure. It was working correctly until a few days ago.
Now I get the following error:
Traceback (most recent call last): File "/usr/src/tmp/b27fs3b0-6287-4133-b166-3dc8a9f493c3/runbooks/CredentialDistribution.py", line 4, in <module> from keepercommander.__main__ import get_params_from_config File "C:\userenv\lib\site-packages\keepercommander\__main__.py", line 27, in <module> from . import cli File "C:\userenv\lib\site-packages\keepercommander\cli.py", line 44, in <module> register_commands(commands, aliases, command_info) File "C:\userenv\lib\site-packages\keepercommander\commands\base.py", line 117, in register_commands from . import discoveryrotation File "C:\userenv\lib\site-packages\keepercommander\commands\discoveryrotation.py", line 45, in <module> from .tunnel.port_forward.endpoint import establish_symmetric_key, WebRTCConnection, TunnelEntrance, READ_TIMEOUT, \ File "C:\userenv\lib\site-packages\keepercommander\commands\tunnel\port_forward\endpoint.py", line 13, in <module> from aiortc import RTCPeerConnection, RTCSessionDescription, RTCConfiguration, RTCIceServer File "C:\userenv\lib\site-packages\aiortc\__init__.py", line 4, in <module> import av.logging File "C:\userenv\lib\site-packages\av\__init__.py", line 12, in <module> from av._core import time_base, library_versions ImportError: DLL load failed while importing _core: The specified module could not be found.
No changes were performed between when it was working to now when it's not working. The only think I can think of is that there was an update to a newer version of Python 3.8 by Microsoft.
Versions of modules.
I have tried to update Keeper Commander to 16.8.29 and Keeper Secret Manager to 16.6.2. I've also tried to upgrade and downgrade av.
Any idea how I can fix it?