Using copyfile in standalone matlab app give error

조회 수: 6 (최근 30일)
M N
M N 2024년 6월 24일
댓글: M N 2024년 6월 25일
Using copyfile in standalone matlab app.
[SUCCESS,MSG] = copyfile(fromPath,toPath, 'f');
where fromPath is s3 path
and toPath is local folder in windows.
When app is run from within matlab, copyfile copies data from S3 to destination folder correctly with SUCCESS=1
When standalone app is run it return following text in MSG "s3 contains an unsupported provider" and SUCCESS=0
Verified that AWS environment varibles are set correctly while running app in standlone mode.
Let me know any hints to debug.

답변 (1개)

SACHIN KHANDELWAL
SACHIN KHANDELWAL 2024년 6월 25일
Hi @M N,
The issue you're encountering likely stems from the fact that the standalone MATLAB application does not have the same access to the AWS S3 path as it does when running within the MATLAB environment. When running a standalone application, certain dependencies and environment configurations might not be included or correctly set up.
I would recommend you to refer the following MathWorks documentation on "Transfer Data to Amazon S3 Buckets and Access Data Using MATLAB" :
Additionally, you may also want to debug the code.
Hope it helps!
  댓글 수: 1
M N
M N 2024년 6월 25일
I think i am trying to understand the same what enviroment configuraiton or dependencies are missing. if you have details on what exact configurations are not included might help to debug.
I have already verified the configurations mentioned in documentation link. Those are coming correct when running app standalone.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2023b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by