"DLL load failed" error when importing MATLAB Engine in ArcPy
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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 Kommentare
Antworten (1)
Ruchika
am 10 Aug. 2023
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 Kommentare
Siehe auch
Kategorien
Mehr zu Call MATLAB from Java finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!