I have a single-tier SAS Server and the command is working fine on the CMD of this SAS server, When I try to execute the SAS code, it throws the error. Below I am running from the SAS Studio
I am using the infile command because the X command isn't working even though I have allowed XCMD in the configuration.
%let filepath = python H:\Data\Desktop\Python_Speech_to_text\main.py 10060.mp3 en 10060 > H:\Data\Desktop\Python_Speec
h_to_text\Logs\PythonFile100601.txt;
data _null_;
infile "&filepath" pipe;
input;
put _infile_;
run;
Logs
1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 %let filepath = python H:\Data\Desktop\Python_Speech_to_text\main.py 10060.mp3 en 10060 > H:\Data\Desktop\Python_Speec
74 h_to_text\Logs\PythonFile100602.txt;
75
76 data _null_;
77 infile "&filepath" pipe;
78 input;
79 put _infile_;
80 run;
NOTE: The infile "python H:\Data\Desktop\Python_Speech_to_text\main.py 10060.mp3 en 10060 > H:\Data\Desktop\Python_Speec
h_to_text\Logs\PythonFile100602.txt" is:
Unnamed Pipe Access Device,
PROCESS=python H:\Data\Desktop\Python_Speech_to_text\main.py 10060.mp3 en 10060 > H:\Data\Desktop\Python_Speec
h_to_text\Logs\PythonFile100602.txt,
RECFM=V,LRECL=32767
Stderr output:
Traceback (most recent call last):
File "H:\Data\Desktop\Python_Speech_to_text\main.py", line 1, in <module>
from google.cloud import speech
File "G:\Python38\lib\site-packages\google\cloud\speech\__init__.py", line 21, in <module>
from google.cloud.speech_v1.services.adaptation.client import AdaptationClient
File "G:\Python38\lib\site-packages\google\cloud\speech_v1\__init__.py", line 21, in <module>
from .services.adaptation import AdaptationClient
File "G:\Python38\lib\site-packages\google\cloud\speech_v1\services\adaptation\__init__.py", line 16, in <module>
from .client import AdaptationClient
File "G:\Python38\lib\site-packages\google\cloud\speech_v1\services\adaptation\client.py", line 49, in <module>
from google.cloud.speech_v1.services.adaptation import pagers
File "G:\Python38\lib\site-packages\google\cloud\speech_v1\services\adaptation\pagers.py", line 27, in <module>
from google.cloud.speech_v1.types import cloud_speech_adaptation
File "G:\Python38\lib\site-packages\google\cloud\speech_v1\types\__init__.py", line 16, in <module>
from .cloud_speech import (
File "G:\Python38\lib\site-packages\google\cloud\speech_v1\types\cloud_speech.py", line 20, in <module>
import proto # type: ignore
ModuleNotFoundError: No module named 'proto'
NOTE: 0 records were read from the infile "python H:\Data\Desktop\Python_Speech_to_text\main.py 10060.mp3 en 10060 >
H:\Data\Desktop\Python_Speec h_to_text\Logs\PythonFile100602.txt".
NOTE: PROCEDURE| _DISARM| STOP| _DISARM| 2023-10-30T07:40:24,212+00:00| _DISARM| WorkspaceServer| _DISARM| SAS| _DISARM| |
_DISARM| 27099136| _DISARM| 27099136| _DISARM| 11| _DISARM| 11| _DISARM| 1554| _DISARM| 205908107| _DISARM| 0.031250|
_DISARM| 0.773000| _DISARM| 2014270823.440000| _DISARM| 2014270824.213000| _DISARM| 0.015625| _DISARM| | _ENDDISARM
NOTE: DATA statement used (Total process time):
real time 0.77 seconds
cpu time 0.03 seconds
81
82 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
94
I used "pip list" and the missing module is already installed
... View more