I am working through some of the Waveform SDK examples on an Analog Discovery 2. I can get all of the samples in the SDK/samples/py directory to work. Then i progressed to the "WaveForms-SDK-Getting-Started-PY-master" samples. None of these are working due to the error below. Any help would be appreciated!
XXX-MacBook-Pro-2:~ XXX$ /usr/bin/python3 /Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/test_device_info.py
Traceback (most recent call last):
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/test_device_info.py", line 1, in <module>
from WF_SDK import device, error # import instruments
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/WF_SDK/__init__.py", line 15, in <module>
from WF_SDK import tools
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/WF_SDK/tools.py", line 29, in <module>
class window:
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/WF_SDK/tools.py", line 31, in window
rectangular = constants.DwfWindowRectangular
AttributeError: module 'dwfconstants' has no attribute 'DwfWindowRectangular'
Question
tdeball
Hi,
I am working through some of the Waveform SDK examples on an Analog Discovery 2. I can get all of the samples in the SDK/samples/py directory to work. Then i progressed to the "WaveForms-SDK-Getting-Started-PY-master" samples. None of these are working due to the error below. Any help would be appreciated!
XXX-MacBook-Pro-2:~ XXX$ /usr/bin/python3 /Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/test_device_info.py
Traceback (most recent call last):
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/test_device_info.py", line 1, in <module>
from WF_SDK import device, error # import instruments
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/WF_SDK/__init__.py", line 15, in <module>
from WF_SDK import tools
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/WF_SDK/tools.py", line 29, in <module>
class window:
File "/Users/XXX/Downloads/WaveForms-SDK-Getting-Started-PY-master/WF_SDK/tools.py", line 31, in window
rectangular = constants.DwfWindowRectangular
AttributeError: module 'dwfconstants' has no attribute 'DwfWindowRectangular'
Link to comment
Share on other sites
9 answers 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