Jump to content
Fourth of July -- Digilent US offices closed ×
  • 0

AttributeError: /lib/libdwf.so: undefined symbol: FDwfDigitalInChannelEnableSet


DMarandino

Question

Hi, 

I'm having an issue with the libdwf.so library and I'm unable to run my python script. I have the Analog Discovery 3, my operating system is 6.2.0-31-generic Ubuntu, I currently have digilent.adept.runtime_2.27.7-amd64.deb, digilent.adept.utilities_2.7.1-amd64.deb, and digilent.waveforms_3.21.3_amd64.deb installed. 

 

I am getting the following output from my python script 

Traceback (most recent call last):
  File "/home/USER/Digilent/digilent.adept.sdk_2.4.2/test.py", line 57, in <module>
    init_logic_analyzer()
  File "/home/USER/Digilent/digilent.adept.sdk_2.4.2/test.py", line 37, in init_logic_analyzer
    dwf.FDwfDigitalInChannelEnableSet(data.handle, ctypes.c_int(0), ctypes.c_bool(True)) # DIO 0
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/ctypes/__init__.py", line 389, in __getattr__
    func = self.__getitem__(name)
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/ctypes/__init__.py", line 394, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: /lib/libdwf.so: undefined symbol: FDwfDigitalInChannelEnableSet

and "nm -D /usr/lib/libdwf.so | grep FDwfDigitalInChannelEnableSet" is returning nothing, so it looks like the function is missing from libdwf.so 


Below is my entire test program:

 

 

Any guidance is greatly appreciated! 

test.py

Edited by DMarandino
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...