Azzera filtri
Azzera filtri

"DLL load failed" error when importing MATLAB Engine in ArcPy

7 visualizzazioni (ultimi 30 giorni)
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

Risposte (1)

Ruchika
Ruchika il 10 Ago 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.

Categorie

Scopri di più su Introduction to Installation and Licensing in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by