problem in calling out python script from matlab when i am calling the script from matlab its showing error in adafruit library ,it is in same directory . working in python
Ältere Kommentare anzeigen
Antworten (1)
Yongjian Feng
am 24 Okt. 2021
0 Stimmen
Try to add that folder into your PYTHONPATH env var.
10 Kommentare
Abhinav Prashar
am 24 Okt. 2021
Yongjian Feng
am 25 Okt. 2021
You are running this on Windows, right?
But error message is about a missing directory on Linux/RaspberryOS (/proc/cpuinfo doesn't look like a Windows path)? Seems like a configuration problem somewhere.
Abhinav Prashar
am 25 Okt. 2021
Yongjian Feng
am 27 Okt. 2021
What python libraries are you using please? My feeling here is that one of the python lib is not configured properly for Windows. It uses a Linux/raspberry path (/proc/cpuinfo).
Abhinav Prashar
am 31 Okt. 2021
Yongjian Feng
am 31 Okt. 2021
Bearbeitet: Yongjian Feng
am 1 Nov. 2021
Can you run the python script outside Windows (directly from python)? Does it work?
Also try to call a HelloWorld python script from matlab. See if that works.
Abhinav Prashar
am 2 Nov. 2021
Yongjian Feng
am 2 Nov. 2021
If it is not working outside matlab, then it is a python issue, right? Not a matlab issue.
Abhinav Prashar
am 2 Nov. 2021
Yongjian Feng
am 3 Nov. 2021
Strictly speaking, this is a matlab forum. If you can figure out which python lib/package causes your problem, maybe you can get help/support from the developer of that lib. Once it can run successfully outside matlab, then we can figure out how to run it from matlab.
Kategorien
Mehr zu Call Python from MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
