No module named 'matlab.pr​oduction_s​erver'

Hi,
I tryed to install matlab production server client on python. I use this code to install the package:
python setup.py install
But, When I try to import the package into python using:
from matlab.production_server import client
I found this error:
ModuleNotFoundError: No module named 'matlab.production_server'; 'matlab' is not a package
Do I miss instalation step?

 Respuesta aceptada

Kojiro Saito
Kojiro Saito el 2 de Dic. de 2022
Please try the following.
import matlab
from production_server import client

5 comentarios

I have implemented those code, but the error still there.
Kojiro Saito
Kojiro Saito el 2 de Dic. de 2022
Could you show me the outputs of python setup.py install?
This is the output:
(venv) D:\Vanaya Neurolab\MATLAB CODES\NeurometricAutomation\PythonClient_forTesting\MAT
LABProductionServer_R2022b_Clients\python>python setup.py install
D:\Vanaya Neurolab\MATLAB CODES\NeurometricAutomation\PythonClient_forTesting\venv\lib\s
ite-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py in
stall is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
D:\Vanaya Neurolab\MATLAB CODES\NeurometricAutomation\PythonClient_forTesting\venv\lib\s
ite-packages\setuptools\command\easy_install.py:144: EasyInstallDeprecationWarning: easy
_install command is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
Anyway, I install the package in a pycharm virtual environment.
thankyou for your help
Kojiro Saito
Kojiro Saito el 2 de Dic. de 2022
OK I understand you're using PyCharm. I think this answer might help you.
thankyou so much, I willl try this solution

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Introduction to Installation and Licensing en Centro de ayuda y File Exchange.

Productos

Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by