"DLL load failed" error when importing MATLAB Engine in ArcPy
4 ビュー (過去 30 日間)
古いコメントを表示
Dear All,
I am trying to integrate a matlab code in ArcGIS Pro . My MATLAB version is 2023a.
I guess there is a confilct of the DLL library between its location in ArcGIS Pro and Matlab.
I could import matlab and matlab.engine from Spyder but I could not do it from ArcGIS Pro.
From ArcGIS Pro I am able to import matlab but not matlab.engine.
The exact error message is: DLL load failed while importing matlabengineforpython3-9. The specified procedure could not be found.
The problem is that I do not know where are the tbb.dll and tbbmalloc.dll files that I should rename them in ArcGIS system. I am afraid to mess with the wrong files.
Any help would be appreciated!
Thanks a lot
0 件のコメント
回答 (1 件)
Ruchika
2023 年 8 月 10 日
Hi, it seems like you are encountering an issue with importing the `matlab.engine` module in ArcGIS Pro due to a DLL conflict. To resolve this, you can try the following steps:
1. Locate the `tbb.dll` and `tbbmalloc.dll` files in your MATLAB installation directory. These files are typically located in the `bin` folder of your MATLAB installation, such as `C:\Program Files\MATLAB\R2023a\bin`.
2. Once you have found the `tbb.dll` and `tbbmalloc.dll` files, make a backup of these files by copying them to a safe location on your computer.
3. In the ArcGIS Pro installation directory, navigate to the `bin` folder. This is typically located in `C:\Program Files\ArcGIS\Pro\bin`.
4. Look for any existing `tbb.dll` and `tbbmalloc.dll` files in the ArcGIS Pro `bin` folder. If you find any, make a backup of these files by copying them to a different location.
5. Now, copy the `tbb.dll` and `tbbmalloc.dll` files from your MATLAB installation directory (step 1) into the ArcGIS Pro `bin` folder (step 3).
6. Restart ArcGIS Pro and try importing `matlab.engine` again. Hopefully, this should resolve the DLL conflict and allow you to import the module successfully.
Please note that modifying system files can have unintended consequences, so it's always a good idea to make backups before making any changes.
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Call MATLAB from Java についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!