Page 1 of 1
Cannot find module plaidm1.dll
Posted: Thu Aug 20, 2020 9:58 pm
by wongca
windows 10 64 bit
I have updated the new version and could not start. Therefore i have followed the instruction to reinstall it. however , the error message came: FileNotfoundError: C:\users\A\Miniconda3\envs\faceswap\Library\bin\plaidm1.dll
and the gui just not starting.

Re: Cannot find module plaidm1.dll
Posted: Thu Aug 20, 2020 11:23 pm
by bryanlyon
It sounds like you've installed the AMD version. If that was your intention, something has failed to install. Either way, please reinstall again, make sure to pay attention to the details. See app.php/faqpage#f1r1 for the instructions.
Re: Cannot find module plaidm1.dll
Posted: Fri Aug 21, 2020 1:59 am
by Korben
I'm getting this error too on my computer that has an AMD card.
Could not find module .... plaidml.dll' (or one of its dependencies)
Followed your procedure and still no luck. I just installed version 1 in a different folder and this one works.
related? viewtopic.php?t=350
Re: Cannot find module plaidm1.dll
Posted: Sun Aug 23, 2020 11:00 am
by wongca
Yes and i am with AMD
I have tried all but no luck

Re: Cannot find module plaidm1.dll
Posted: Sun Aug 23, 2020 11:04 am
by torzdf
Please go Start > Anaconda Prompt
Then post the output of these commands:
Code: Select all
conda activate faceswap
conda list
pip freeze
Re: Cannot find module plaidm1.dll
Posted: Sun Aug 23, 2020 2:46 pm
by Korben
torzdf wrote: ↑Sun Aug 23, 2020 11:04 am
Please go Start > Anaconda Prompt
Then post the output of these commands:
Code: Select all
conda activate faceswap
conda list
pip freeze
Here are mine.
Re: Cannot find module plaidm1.dll
Posted: Mon Aug 24, 2020 6:35 am
by torzdf
Ok, on the face of it, I see no issue there. The next thing to check is that file does exist in the location suggested (i.e. you're looking for the file plaidml.dll)
I have just done a clean, fresh install (on Windows 10) and this file gets installed fine.
Re: Cannot find module plaidm1.dll
Posted: Tue Aug 25, 2020 12:22 am
by Korben
torzdf wrote: ↑Mon Aug 24, 2020 6:35 am
Ok, on the face of it, I see no issue there. The next thing to check is that file does exist in the location suggested (i.e. you're looking for the file plaidml.dll)
I have just done a clean, fresh install (on Windows 10) and this file gets installed fine.
Here's what I get when testing.
quote PS X:\frik\FaceSwap\faceswap> python faceswap.py -h
Setting Faceswap backend to AMD
Traceback (most recent call last):
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\site-packages\plaidml\__init.py", line 154, in load_library
return ctypes.cdll.LoadLibrary(libpath)
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\ctypes\__init.py", line 451, in LoadLibrary
return self.dlltype(name)
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\ctypes\__init__.py", line 373, in init
self.handle = dlopen(self.name, mode)
FileNotFoundError: Could not find module 'C:\Users\someUser\MiniConda3\envs\faceswap\lib\site-packages\plaidml\plaidml.dll' (or one of its dependencies). Try using the full path with constructor syntax.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "faceswap.py", line 5, in <module>
from lib.cli import args
File "X:\frik\FaceSwap\faceswap\lib\cli\args.py", line 21, in <module>
GPUS = GPUStats().cli_devices
File "X:\frik\FaceSwap\faceswap\lib\gpu_stats.py", line 76, in init
self.initialize(log)
File "X:\frik\FaceSwap\faceswap\lib\gpu_stats.py", line 164, in initialize
self.plaid = plaidlib(log_level=loglevel, log=log)
File "X:\frik\FaceSwap\faceswap\lib\plaidml_tools.py", line 48, in init
self.ctx = plaidml.Context()
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\site-packages\plaidml\__init.py", line 892, in Context
return plaidml.context.Context(lib())
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\site-packages\plaidml\__init.py", line 789, in _lib
_impl_lib = Library()
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 176, in init
lib = load_library('plaidml.dll', ['Library', 'bin'])
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\site-packages\plaidml\__init.py", line 166, in load_library
return ctypes.cdll.LoadLibrary(libpath)
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\ctypes\__init.py", line 451, in LoadLibrary
return self.dlltype(name)
File "C:\Users\someUser\MiniConda3\envs\faceswap\lib\ctypes\__init__.py", line 373, in init
self._handle = dlopen(self.name, mode)
FileNotFoundError: Could not find module 'C:\Users\someUser\MiniConda3\envs\faceswap\Library\bin\plaidml.dll' (or one of its dependencies). Try using the full path with constructor syntax.
(faceswap) PS X:\frik\FaceSwap\faceswap>
[/quote]
This exists
'C:\Users\someUser\MiniConda3\envs\faceswap\Library\bin\plaidml.dll'
this does not
'C:\Users\someUser\MiniConda3\envs\faceswap\lib\site-packages\plaidml\plaidml.dll'
This one I created manually, had the same result with the setup file.
Re: Cannot find module plaidm1.dll
Posted: Tue Aug 25, 2020 9:11 am
by torzdf
Ok, that file shouldn't exist, and the fact that it is being looked for there suggests to me there is a conflict on your system somewhere....
The only confirmed way that we have for removing conflicts is to follow these steps, making sure that NO steps are skipped:
app.php/faqpage#f1r1
If that still doesn't resolve your issue, then I'm out of ideas I'm afraid. Ultimately something else which has been previously installed is creating this issue, not Faceswap itself, so troubleshooting what that may be and where it is will be beyond my support capabilities.
Re: Cannot find module plaidm1.dll
Posted: Thu Aug 27, 2020 8:33 pm
by muchbased
I'm having this exact issue as well, did anyone find a solution to this?
Re: Cannot find module plaidm1.dll
Posted: Fri Aug 28, 2020 1:01 pm
by wongca
Re: Cannot find module plaidm1.dll
Posted: Sun Aug 30, 2020 8:32 am
by huawa123
I'm having the same problem. Can't find the module. I've strictly follow the procedure to uninstall the whole software.
I'm using a AMD card.
Please help us to solve it.
Re: Cannot find module plaidm1.dll
Posted: Sun Aug 30, 2020 8:39 am
by huawa123
The messages are:
Code: Select all
# Name Version Build Channel
absl-py 0.10.0 pypi_0 pypi
astunparse 1.6.3 pypi_0 pypi
blas 1.0 mkl
ca-certificates 2020.7.22 0
cachetools 4.1.1 pypi_0 pypi
certifi 2020.6.20 py38_0
cffi 1.14.2 pypi_0 pypi
chardet 3.0.4 pypi_0 pypi
click 7.1.2 pypi_0 pypi
colorama 0.4.3 pypi_0 pypi
cycler 0.10.0 py38_0
enum34 1.1.10 pypi_0 pypi
fastcluster 1.1.26 py38hbe40bda_1 conda-forge
ffmpeg 4.2.2 he774522_0
ffmpy 0.2.3 pypi_0 pypi
freetype 2.10.2 hd328e21_0
gast 0.3.3 pypi_0 pypi
git 2.23.0 h6bb4b03_0
google-auth 1.21.0 pypi_0 pypi
google-auth-oauthlib 0.4.1 pypi_0 pypi
google-pasta 0.2.0 pypi_0 pypi
grpcio 1.31.0 pypi_0 pypi
h5py 2.10.0 pypi_0 pypi
icc_rt 2019.0.0 h0cc432a_1
icu 58.2 ha925a31_3
idna 2.10 pypi_0 pypi
imageio 2.9.0 py_0
imageio-ffmpeg 0.4.2 py_0 conda-forge
intel-openmp 2020.2 254
joblib 0.16.0 py_0
jpeg 9b hb83a4c4_2
keras 2.2.4 pypi_0 pypi
keras-applications 1.0.8 pypi_0 pypi
keras-preprocessing 1.1.2 pypi_0 pypi
kiwisolver 1.2.0 py38h74a9793_0
libpng 1.6.37 h2a8f88b_0
libtiff 4.1.0 h56a325e_1
lz4-c 1.9.2 h62dcd97_1
markdown 3.2.2 pypi_0 pypi
matplotlib 3.3.1 0
matplotlib-base 3.3.1 py38hba9282a_0
mkl 2020.2 256
mkl-service 2.3.0 py38hb782905_0
mkl_fft 1.1.0 py38h45dec08_0
mkl_random 1.1.1 py38h47e9c7a_0
numpy 1.19.1 py38h5510c5b_0
numpy-base 1.19.1 py38ha3acd2a_0
nvidia-ml-py3 7.352.1 pypi_0 pypi
oauthlib 3.1.0 pypi_0 pypi
olefile 0.46 py_0
opencv-python 4.4.0.42 pypi_0 pypi
openssl 1.1.1g he774522_1
opt-einsum 3.3.0 pypi_0 pypi
pathlib 1.0.1 py_1
pillow 7.2.0 py38hcc1f983_0
pip 20.2.2 py38_0
plaidbench 0.7.0 pypi_0 pypi
plaidml 0.7.0 pypi_0 pypi
plaidml-keras 0.7.0 pypi_0 pypi
protobuf 3.13.0 pypi_0 pypi
psutil 5.7.2 py38he774522_0
pyasn1 0.4.8 pypi_0 pypi
pyasn1-modules 0.2.8 pypi_0 pypi
pycparser 2.20 pypi_0 pypi
pyparsing 2.4.7 py_0
pyqt 5.9.2 py38ha925a31_4
python 3.8.5 he1778fa_0
python-dateutil 2.8.1 py_0
python_abi 3.8 1_cp38 conda-forge
pywin32 227 py38he774522_1
pyyaml 5.3.1 pypi_0 pypi
qt 5.9.7 vc14h73c81de_0
requests 2.24.0 pypi_0 pypi
requests-oauthlib 1.3.0 pypi_0 pypi
rsa 4.6 pypi_0 pypi
scikit-learn 0.23.2 py38h47e9c7a_0
scipy 1.4.1 pypi_0 pypi
setuptools 49.6.0 py38_0
sip 4.19.13 py38ha925a31_0
six 1.15.0 py_0
sqlite 3.33.0 h2a8f88b_0
tensorboard 2.2.2 pypi_0 pypi
tensorboard-plugin-wit 1.7.0 pypi_0 pypi
tensorflow 2.2.0 pypi_0 pypi
tensorflow-estimator 2.2.0 pypi_0 pypi
termcolor 1.1.0 pypi_0 pypi
threadpoolctl 2.1.0 pyh5ca1d4c_0
tk 8.6.10 he774522_0
tornado 6.0.4 py38he774522_1
tqdm 4.48.2 py_0
urllib3 1.25.10 pypi_0 pypi
vc 14.1 h0510ff6_4
vs2015_runtime 14.16.27012 hf0eaf9b_3
werkzeug 1.0.1 pypi_0 pypi
wheel 0.35.1 py_0
wincertstore 0.2 py38_0
wrapt 1.12.1 pypi_0 pypi
xz 5.2.5 h62dcd97_0
zlib 1.2.11 h62dcd97_4
zstd 1.4.5 h04227a9_0
Code: Select all
absl-py==0.10.0
astunparse==1.6.3
cachetools==4.1.1
certifi==2020.6.20
cffi==1.14.2
chardet==3.0.4
click==7.1.2
colorama==0.4.3
cycler==0.10.0
enum34==1.1.10
fastcluster==1.1.26
ffmpy==0.2.3
gast==0.3.3
google-auth==1.21.0
google-auth-oauthlib==0.4.1
google-pasta==0.2.0
grpcio==1.31.0
h5py==2.10.0
idna==2.10
imageio @ file:///tmp/build/80754af9/imageio_1594161405741/work
imageio-ffmpeg @ file:///home/conda/feedstock_root/build_artifacts/imageio-ffmpeg_1589202782679/work
joblib @ file:///tmp/build/80754af9/joblib_1594236160679/work
Keras==2.2.4
Keras-Applications==1.0.8
Keras-Preprocessing==1.1.2
kiwisolver==1.2.0
Markdown==3.2.2
matplotlib @ file:///C:/ci/matplotlib-base_1597876438601/work
mkl-fft==1.1.0
mkl-random==1.1.1
mkl-service==2.3.0
numpy @ file:///C:/ci/numpy_and_numpy_base_1596215850360/work
nvidia-ml-py3 @ git+https://github.com/deepfakes/nvidia-ml-py3.git@6fc29ac84b32bad877f078cb4a777c1548a00bf6
oauthlib==3.1.0
olefile==0.46
opencv-python==4.4.0.42
opt-einsum==3.3.0
pathlib==1.0.1
Pillow @ file:///C:/ci/pillow_1594298230227/work
plaidbench==0.7.0
plaidml==0.7.0
plaidml-keras==0.7.0
protobuf==3.13.0
psutil @ file:///C:/ci/psutil_1598370330503/work
pyasn1==0.4.8
pyasn1-modules==0.2.8
pycparser==2.20
pyparsing==2.4.7
python-dateutil==2.8.1
pywin32==227
PyYAML==5.3.1
requests==2.24.0
requests-oauthlib==1.3.0
rsa==4.6
scikit-learn @ file:///C:/ci/scikit-learn_1598377018496/work
scipy==1.4.1
sip==4.19.13
six==1.15.0
tensorboard==2.2.2
tensorboard-plugin-wit==1.7.0
tensorflow==2.2.0
tensorflow-estimator==2.2.0
termcolor==1.1.0
threadpoolctl @ file:///tmp/tmp9twdgx9k/threadpoolctl-2.1.0-py3-none-any.whl
tornado==6.0.4
tqdm @ file:///tmp/build/80754af9/tqdm_1596810128862/work
urllib3==1.25.10
Werkzeug==1.0.1
wincertstore==0.2
wrapt==1.12.1
And the error message is:
Code: Select all
Setting Faceswap backend to AMD
Traceback (most recent call last):
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 154, in load_library
return ctypes.cdll.LoadLibrary(libpath)
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\plaidml.dll' (or one of its dependencies). Try using the full path with constructor syntax.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\software install\faceswap/faceswap.py", line 5, in <module>
from lib.cli import args
File "D:\software install\faceswap\lib\cli\args.py", line 21, in <module>
_GPUS = GPUStats().cli_devices
File "D:\software install\faceswap\lib\gpu_stats.py", line 76, in __init__
self._initialize(log)
File "D:\software install\faceswap\lib\gpu_stats.py", line 164, in _initialize
self._plaid = plaidlib(log_level=loglevel, log=log)
File "D:\software install\faceswap\lib\plaidml_tools.py", line 48, in __init__
self._ctx = plaidml.Context()
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 892, in Context
return plaidml.context.Context(_lib())
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 789, in _lib
_impl_lib = _Library()
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 176, in __init__
lib = load_library('plaidml.dll', ['Library', 'bin'])
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 166, in load_library
return ctypes.cdll.LoadLibrary(libpath)
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "D:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'D:\softwareinstall2\anaconda3\envs\faceswap\Library\bin\plaidml.dll' (or one of its dependencies). Try using the full path with constructor syntax.
I think it's something related to PlaidML install. When I run plaidml-setup, it return the error message:
Code: Select all
Traceback (most recent call last):
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 154, in load_library
return ctypes.cdll.LoadLibrary(libpath)
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'd:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\plaidml.dll' (or one of its dependencies). Try using the full path with constructor syntax.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "D:\softwareinstall2\anaconda3\envs\faceswap\Scripts\plaidml-setup.exe\__main__.py", line 7, in <module>
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\plaidml_setup.py", line 16, in main
ctx = plaidml.Context()
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 892, in Context
return plaidml.context.Context(_lib())
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 789, in _lib
_impl_lib = _Library()
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 176, in __init__
lib = load_library('plaidml.dll', ['Library', 'bin'])
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\site-packages\plaidml\__init__.py", line 166, in load_library
return ctypes.cdll.LoadLibrary(libpath)
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 451, in LoadLibrary
return self._dlltype(name)
File "d:\softwareinstall2\anaconda3\envs\faceswap\lib\ctypes\__init__.py", line 373, in __init__
self._handle = _dlopen(self._name, mode)
FileNotFoundError: Could not find module 'd:\softwareinstall2\anaconda3\envs\faceswap\Library\bin\plaidml.dll' (or one of its dependencies). Try using the full path with constructor syntax.
I've tried to uninstall and reinstall PlaidML. But it's doesn't help. The error remains the same.
Please help me to diagnose the problem
Re: Cannot find module plaidm1.dll
Posted: Sun Aug 30, 2020 10:43 am
by torzdf
Ok guys, could you try to install the Visual C++ 2015 Redistributable:
https://www.microsoft.com/en-ca/downloa ... x?id=48145
You will need to reboot afterward. You may then need to remove and re-install Faceswap, but can try without.
Re: Cannot find module plaidm1.dll
Posted: Mon Aug 31, 2020 4:49 am
by huawa123
Thanks a lot. It works well!
Re: Cannot find module plaidm1.dll
Posted: Mon Aug 31, 2020 7:38 am
by wongca
i cannot install Visual C++ 2015 as i got newer version 
e000: Error 0x80070666: Cannot install a product when a newer version is installed.
Re: Cannot find module plaidm1.dll
Posted: Mon Aug 31, 2020 7:39 am
by torzdf
At this point you need to take it up with the plaidML team.
Re: Cannot find module plaidm1.dll
Posted: Mon Aug 31, 2020 2:16 pm
by wongca
[Problem Fixed] Thanks for all people supporting
- install the The latest supported Visual C++ https://support.microsoft.com/en-gb/hel ... -downloads
- clean uninstall and install faceswap app again.(including the shortcut etc) app.php/faqpage#f1r1
It works for me

Re: Cannot find module plaidm1.dll
Posted: Sat Sep 05, 2020 5:56 pm
by Korben
For my part this aint working with multiple tries. Step by step of the precedures and all, even uninstalled any version of the c++ library higher than 2013. So if I ever feel like formatting my AMD pc il try again.
Re: Cannot find module plaidm1.dll
Posted: Sun Sep 06, 2020 10:42 am
by torzdf
Sorry you couldn't get it working. We rely on a lot of upstream libraries, and unfortunately haven't got fixes for any issues with all of them.
The Redistributable for C++ should fix this particular error though, so I am out of options at this point.