cnr-isti-vclab / TagLab

A CNN based image segmentation tool oriented to marine data analysis
https://taglab.isti.cnr.it/
GNU General Public License v3.0
84 stars 33 forks source link

Windows DLL Load Failure #48

Closed such-chris closed 2 years ago

such-chris commented 2 years ago

I am trying to run TagLab on a brand new installation of Windows 10 running Python 3.7.9 and CUDA 10.2. I have tried removing an reinstalling all packages to no avail. Install.py runs fine. When running TagLab.py I get:

Traceback (most recent call last): File "TagLab.py", line 34, in from PyQt5.QtCore import Qt, QSize, QMargins, QDir, QPoint, QPointF, QRectF, QTimer, pyqtSlot, pyqtSignal, QSettings, QFileInfo, QModelIndex ImportError: DLL load failed: The specified module could not be found.

I have tried separately install PyQt5 and have tried version 5.15.7 as well as 5.15.6. I can find the .dll files for PyQt5 and have added their location to my PCs path, but I still get the DLL load failure.

Thank you, Chris

danielagiorgi commented 2 years ago

Hi Chris,

Try to install the Microsoft Visual Studio Redistributable for Visual Studio 2015, 2017, 2019 and 2022 from this link:

https://docs.microsoft.com/en-US/cpp/windows/latest-supported-vc-redist?view=msvc-170

It may solve. Let us know.

Best

such-chris commented 2 years ago

Unfortunately I am still getting that DLL Load Failed error.

such-chris commented 2 years ago

Is it possible that this is due to a PyQt5 update? PyQt5 was changed to version 5.15.7 just last month.

maxcorsini commented 2 years ago

Hi Chris,

the problem is that Python do not find the PyQt5 DLLs in the right place. This may happen for several reasons.

Tell me your Python version, and if you are using conda or not.

In the meanwhile you can try to update the PyQt5 version.

I also suggest you to have only one version of PyQt5 installed.

Best

such-chris commented 2 years ago

I am using Python 3.7.9 I am not using conda

I have only one version of PyQt5 installed via the install.py script in TagLab. It is the most recent version, 5.15.7

such-chris commented 2 years ago

I have update my Windows system path to include the .dll file location as well to no avail.

such-chris commented 2 years ago

A coworker resolved this issue for me by reinstalling everything. Apparently I did not check some boxes for adding environment variables. Thus the path was indeed incorrect. Once corrected TagLab runs.