The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Executing file on Mac
Has something changed with the execute programs operator?
<?xml version="1.0" encoding="UTF-8"?><process version="9.4.001"> <context> <input/> <output/> <macros/> </context> <operator activated="true" class="process" compatibility="9.4.001" expanded="true" name="Process"> <parameter key="logverbosity" value="init"/> <parameter key="random_seed" value="2001"/> <parameter key="send_mail" value="never"/> <parameter key="notification_email" value=""/> <parameter key="process_duration_for_mail" value="30"/> <parameter key="encoding" value="SYSTEM"/> <process expanded="true"> <operator activated="true" class="text:create_document" compatibility="8.2.000" expanded="true" height="68" name="generate query" width="90" x="45" y="85"> <parameter key="text" value="aws athena start-query-execution --query-string "select * from table where col0 like 'number';" --result-configuration "OutputLocation=s3://" "/> <parameter key="add label" value="false"/> <parameter key="label_type" value="nominal"/> </operator> <operator activated="true" class="text:write_document" compatibility="8.2.000" expanded="true" height="82" name="overwrite query" width="90" x="179" y="85"> <parameter key="file" value="/Users/robinmeisel/Dropbox/psyscore/master.sh"/> <parameter key="overwrite" value="true"/> <parameter key="encoding" value="SYSTEM"/> </operator> <operator activated="true" class="productivity:execute_program" compatibility="9.4.001" expanded="true" height="124" name="Execute Program" width="90" x="313" y="85"> <parameter key="command" value="chmod +x master.sh"/> <parameter key="log_stdout" value="true"/> <parameter key="log_stderr" value="false"/> <parameter key="working_directory" value="/Users/execute"/> <list key="env_variables"/> </operator> <operator activated="true" class="productivity:execute_program" compatibility="9.4.001" expanded="true" height="124" name="Execute Program (2)" width="90" x="447" y="85"> <parameter key="command" value="./master.sh"/> <parameter key="log_stdout" value="true"/> <parameter key="log_stderr" value="true"/> <parameter key="working_directory" value="/Users/execute"/> <list key="env_variables"/> </operator> <connect from_op="generate query" from_port="output" to_op="overwrite query" to_port="document"/> <connect from_op="overwrite query" from_port="document" to_op="Execute Program" to_port="through 1"/> <connect from_op="Execute Program" from_port="out" to_op="Execute Program (2)" to_port="through 1"/> <portSpacing port="source_input 1" spacing="0"/> <portSpacing port="sink_result 1" spacing="0"/> </process> </operator> </process>I am now getting this error where the process used to work perfectly. Any ideas?
Tagged:
0
Answers
What is your OS X version?
Regards,
Marco
Nothing has changed with the operator code itself in the past 4 years, so I would suspect it has to do something with an external change of some description.
According to https://stackoverflow.com/a/1763178/2333093, you get this if the command is not found or if +x is missing. I just noticed that your script is written to "/Users/robinmeisel/Dropbox/psyscore/master.sh", while your working directory is set to "/Users/execute". That explains why it complains that the file cannot be found.
I just tested it with an absolute path and a relative path + setting the working directory on (not yet officially supported) OS X 10.15, and it works fine.
Regards,
Marco
Would be able to post the code that you have run, here I have set the paths to be the same but I am still getting an error?
The code for the bulk file which I am able to execute from terminal is as follows
This is the response I get (remembering that I was able to execute via terminal)
I added this very simple "hello.sh" file inside my Downloads folder:
I then ran chmod +x hello.sh, and afterwards ls -la, resulting in:
total 24
drwx------+ 5 mboeck staff 160 4 Nov 17:05 .
drwxr-xr-x+ 29 mboeck staff 928 4 Nov 13:41 ..
-rwxr-xr-x@ 1 mboeck staff 38 4 Nov 13:42 hello.sh
Admins-MacBook-Pro:Downloads mboeck$
My process for relative path:
Regards,
Marco
What version of the CLI are you using? Maybe my issue lies there. Any other reason why I would not be able to call the CLI via shell?
I was using whatever the standard Terminal on OS X 10.15.1 is.
The only explanation I have would be that for some reason the AWS CLI requires elevated permissions and when you start from the Terminal you have those, while Studio is started with normal permissions? I have no experience in permission management on OS X to be honest..
Regards,
Marco
https://docs.aws.amazon.com/cli/latest/userguide/install-macos.html
No, I did not, and as shown above, I only tested very simple scripts that had nothing to do with a 3rd party library. So it will have to do something with permissions. Did you maybe enable root access for your Terminal at some point previously?
Regards,
Marco
https://community.rapidminer.com/discussion/55899/using-aws-image-ml-inside-a-rapidminer-process
Suggestions in terms of remediating? Reinstall the CLI? Reinstall RapidMiner?
PS: Can I update the Rekognition process to include remarks for people who will not be familiar with the CLI?
As for better documentation on the Rekognition KB - yes please!