We have the Digilent, MCC134 module with a Raspberry Pi-3, and the O/S is newly installed - all fresh.
After installing the daqhats library as per "git clone https://github.com/mccdaq/daqhats.git", the 'single_value_read.py' program was started resulting in an error: "ModuleNotFoundError: no module named 'daqhats'."
Please see terminal output below:
Browsing through the folders, I noticed that there is no module named 'daqhats.py', only a module named 'daqhats_utils.py' within the 'mcc134' folder.
Any guidance is greatly appreciated.
Regards,
Sean
pi@raspberrypi:~/daqhats $ daqhats_version
daqhats version 1.4.0.7 is installed
pi@raspberrypi:~/daqhats $ ls
daqhats docsource include lib README.md tools version_history.txt
docs examples install.sh LICENSE setup.py uninstall.sh
pi@raspberrypi:~/daqhats $ cd examples
pi@raspberrypi:~/daqhats/examples $ ls
c python
pi@raspberrypi:~/daqhats/examples $ cd python
pi@raspberrypi:~/daqhats/examples/python $ ls
mcc118 mcc128 mcc134 mcc152 mcc172
pi@raspberrypi:~/daqhats/examples/python $ cd mcc134
pi@raspberrypi:~/daqhats/examples/python/mcc134 $ ls
daqhats_utils.py ifttt README.md single_value_read.py web_server
pi@raspberrypi:~/daqhats/examples/python/mcc134 $ python3 single_value_read.py
Traceback (most recent call last):
File "/home/pi/daqhats/examples/python/mcc134/single_value_read.py", line 18, in <module>
from daqhats import mcc134, HatIDs, HatError, TcTypes
ModuleNotFoundError: No module named 'daqhats'
pi@raspberrypi:~/daqhats/examples/python/mcc134 $
Question
SThibeau
Hi people of Digilent,
We have the Digilent, MCC134 module with a Raspberry Pi-3, and the O/S is newly installed - all fresh.
After installing the daqhats library as per "git clone https://github.com/mccdaq/daqhats.git", the 'single_value_read.py' program was started resulting in an error: "ModuleNotFoundError: no module named 'daqhats'."
Please see terminal output below:
Browsing through the folders, I noticed that there is no module named 'daqhats.py', only a module named 'daqhats_utils.py' within the 'mcc134' folder.
Any guidance is greatly appreciated.
Regards,
Sean
pi@raspberrypi:~/daqhats $ daqhats_version
daqhats version 1.4.0.7 is installed
pi@raspberrypi:~/daqhats $ ls
daqhats docsource include lib README.md tools version_history.txt
docs examples install.sh LICENSE setup.py uninstall.sh
pi@raspberrypi:~/daqhats $ cd examples
pi@raspberrypi:~/daqhats/examples $ ls
c python
pi@raspberrypi:~/daqhats/examples $ cd python
pi@raspberrypi:~/daqhats/examples/python $ ls
mcc118 mcc128 mcc134 mcc152 mcc172
pi@raspberrypi:~/daqhats/examples/python $ cd mcc134
pi@raspberrypi:~/daqhats/examples/python/mcc134 $ ls
daqhats_utils.py ifttt README.md single_value_read.py web_server
pi@raspberrypi:~/daqhats/examples/python/mcc134 $ python3 single_value_read.py
Traceback (most recent call last):
File "/home/pi/daqhats/examples/python/mcc134/single_value_read.py", line 18, in <module>
from daqhats import mcc134, HatIDs, HatError, TcTypes
ModuleNotFoundError: No module named 'daqhats'
pi@raspberrypi:~/daqhats/examples/python/mcc134 $
Link to comment
Share on other sites
4 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