필터 지우기
필터 지우기

python in a compiled app

조회 수: 4 (최근 30일)
Jonathan Clayton
Jonathan Clayton 2021년 8월 11일
답변: surya venu 2024년 4월 3일
I cannot get my compiled app to run on another computer it just produces this error
Python commands require a supported version of CPython. See <a href="matlab:helpview([docroot '/matlab/helptargets.map'], 'getting_started_python_interface')">Getting Started with Python</a>.
Error in Ballpass/ImportMeshGeometryButtonPushed (line 274)
Error in appdesigner.internal.service.AppManagementService/tryCallback (line 369)
Error in matlab.apps.AppBase>@(source,event)tryCallback(appdesigner.internal.service.AppManagementService.instance(),app,callback,requiresEventData,event) (line 37)
Error using matlab.ui.control.internal.controller.ComponentController/executeUserCallback (line 410)
Error while evaluating Button PrivateButtonPushedFcn.
My programm runns fine on the computer that it was compiled on but simply refuses to run on any other computer. i have preformed multiple fresh installs of python and even did a fresh install of windows. i have made sure that it is the same version (3.8.10) of python is on both computers and i have confirmed that both computers can acess python through comand line, proving that the path is set up correctly.
thanks for the help

답변 (1개)

surya venu
surya venu 2024년 4월 3일
Hello,
I recommend reviewing the following MATLAB answer post, which addresses a similar issue to the one you're experiencing: https://www.mathworks.com/matlabcentral/answers/1634575-cpython-error-when-running-compiled-application-containing-python-module
The post provides a solution to the problem.
I hope you find it useful.

카테고리

Help CenterFile Exchange에서 Call Python from MATLAB에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by