When I run the below code, I get the error at the end. Please help
from time import sleep
from WF_SDK import device
deviceName = "DigilentDiscovery"
deviceData = device.open()
# deviceName.name = deviceName
alikarb@alikarb-Blade-14-RZ09-0370:~/Documents/GitHub_Repositories/Insturment_Automation/DigilentDiscovery/WaveForms-SDK-Getting-Started-PY$ /bin/python3 /home/alikarb/Documents/GitHub_Repositories/Insturment_Automation/DigilentDiscovery/ExampleDigilentAutomation.py
Traceback (most recent call last):
File "/home/alikarb/Documents/GitHub_Repositories/Insturment_Automation/DigilentDiscovery/ExampleDigilentAutomation.py", line 2, in <module>
from WF_SDK import device
File "/home/alikarb/.local/lib/python3.8/site-packages/WF_SDK/__init__.py", line 5, in <module>
from WF_SDK import device
File "/home/alikarb/.local/lib/python3.8/site-packages/WF_SDK/device.py", line 40, in <module>
dwf = ctypes.cdll.LoadLibrary("libdwf.so")
File "/usr/lib/python3.8/ctypes/__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python3.8/ctypes/__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /lib/libdwf.so: undefined symbol: DmgtConfigureFPGA
Question
alikarb
I was able to clone the github repo (https://github.com/Digilent/WaveForms-SDK-Getting-Started-PY/tree/master/WF_SDK). I copied the dwfconstants.py from the python example directory within /usr/shared/digilent. i was successfully able to install the pacakge using "python3 -m pip install ."
When I run the below code, I get the error at the end. Please help
from time import sleep from WF_SDK import device deviceName = "DigilentDiscovery" deviceData = device.open() # deviceName.name = deviceName
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 accountSign in
Already have an account? Sign in here.
Sign In Now