Error when start matlab engine

Đang mở
#20 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
25/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
python
Lĩnh vực
tooling

Hướng nghiên cứu

Start by reproducing the reported matlab.engine.start_matlab() failure with MATLAB R2022b and Python 3.10.9. Trace the call through matlab/engine/__init__.py, futureresult.py, and matlabfuture.py, then verify that the cause and a working resolution are documented or confirmed by a successful engine start.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Hello,

I installed matlab r2022b and python 3.10.9.

After installing python3 -m pip install matlabengine and import matlab.engine,
I failed to start matlab engine. After I enter eng = matlab.engine.start_matlab(), it takes a very long time to get the output:

>>> eng = matlab.engine.start_matlab()
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.10/site-packages/matlab/engine/__init__.py", line 130, in start_matlab
    eng = future.result()
  File "/usr/local/lib/python3.10/site-packages/matlab/engine/futureresult.py", line 67, in result
    return self.__future.result(timeout)
  File "/usr/local/lib/python3.10/site-packages/matlab/engine/matlabfuture.py", line 87, in result
    handle = pythonengine.getMATLAB(self._future)
matlab.engine.EngineError: Connection to process with Exchange: " " was lost.

May I know if there is any solution to fix this?

Ngôn ngữ chính
Python
Star
97
Fork
13
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của mathworks/matlab-engine-for-python

Tất cả issue của mathworks/matlab-engine-for-python

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.