My coworker and I are both encountering difficulty getting the RSA API to work for us in Python.<br>
<br>
We both have the 3.23.0022 version installed from RSAAPI-64_3_23_0022_066169110.exe<br>
I have the SignalVu PC application 5.0.0146 installed from SignalVu_PC_5.0.0146_066143440.exe - apparently downloaded during a limited window when that was available.<br>
She has 5.0.0169 installed.<br>
<br>
I have these in the Windows PATH variable as reported in Powershell with "echo $Env:path":<br>
C:\Tektronix\RSA_API\lib\x64<br>
C:\Program Files\Tektronix\SignalVu-PC\RSA\Client\<br>
<br>
I am starting "py" from Powershell in the C:\Tektronix\RSA_API\lib\x64 directory and running this:
<pre>PS C:\Tektronix\RSA_API\lib\x64> py
Python 3.11.2 (tags/v3.11.2:878ead1, Feb 7 2023, 16:38:35) [MSC v.1934 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> from ctypes import *
>>> rsa = cdll.LoadLibrary("RSA_API.dll")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Users\username\AppData\Local\Programs\Python\Python311\Lib\ctypes\__init__.py", line 454, in LoadLibrary
return self._dlltype(name)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\username\AppData\Local\Programs\Python\Python311\Lib\ctypes\__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'RSA_API.dll' (or one of its dependencies). Try using the full path with constructor syntax.
>>></pre>
<p>I've downloaded "Dependencies" from https://github.com/lucasg/Dependencies to try to figure out what DLL dependencies might be causing problems.<br>
<br>
So far I can see these problems in the red-marked items, typed here instead of showing a screenshot:<br>
<br>
C:\Tektronix\RSA_API\lib\x64\RSA_API.dll<br>
depends on<br>
C:\Tektronix\RSA_API\lib\x64\GPMeasDSP.dll<br>
depends on<br>
...<br>
RSAShared ("could not be found on disk")<br>
SAPlatformShared ("could not be found on disk")<br>
...<br>
<br>
and<br>
<br>
C:\Tektronix\RSA_API\lib\x64\RSA_API.dll<br>
depends on<br>
C:\Tektronix\RSA_API\lib\x64\BaseDSPL.dll<br>
depends on<br>
...<br>
SAPlatformShared ("could not be found on disk")<br>
...<br>
<br>
<br>
<br>
Both RSAShared and SAPlatformShared are DLLs in C:\Program Files\Tektronix\SignalVu-PC\RSA\Client\ - adding that directory to my path, in the hopes that DLLs would be located there, has not helped.<br>
<br>
Is there a compatibility problem between SignalVu PC released in 2023 and this API released in 2019? Is there another way we can try to figure out what it is about our installations that is making the RSA_API.dll mad?<br>
<br>
Thank you,<br>
<br>
-Michael</p>