import error - from pyGDM2_retard.pyGDM2_retard_for import propag11 as g11_retard_for
Cannot run the new examples, such as: "Fig3_example_retard_goldsphere_on_substrate" since these import lines result in a error.
from pyGDM2_retard.pyGDM2_retard_for import propag11 as g11_retard_for
from pyGDM2_retard.pyGDM2_retard_for import propag21 as g21_retard_for
from pyGDM2_retard.pyGDM2_retard_for import propag13 as g13_retard_for
Running the lines above results in the error:
Traceback (most recent call last):
File "C:/Users/psant/PycharmProjects/pythonProject1/example_scripts/example_scripts/Fig3_example_retard_goldsphere_on_substrate.py", line 37, in <module>
from pyGDM2_retard import propagators_retarded
File "C:\Users\psant\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\pyGDM2_retard\propagators_retarded.py", line 34, in <module>
from pyGDM2_retard.pyGDM2_retard_for import propag11 as g11_retard_for
ImportError: DLL load failed while importing pyGDM2_retard_for: The specified module could not be found.
the pyGDM2_retard file is redirected to the init.py file that only contains the following information:
# encoding: utf-8
#
#Copyright (C) 2017-2021, P. R. Wiecha, Gerard Colas des Francs
#
#This program is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the Free Software Foundation, either version 3 of the License, or
#(at your option) any later version.
#
#This program is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with this program. If not, see <http://www.gnu.org/licenses/>.
#
"""
pyGDM2_retard - retarded 3-layer greens tensors for pyGDM2
"""
__name__ = 'pyGDM2_retard'
__version__ = '0.2'
__date__ = "04/06/2021"
__author__ = 'Gerard Colas des Francs, Peter R. Wiecha'
__all__ = ["propagators_retarded"]
I have tested on both windows 10 and ubuntu 21.04 inside and outside anaconda3 and installed all the required packages.
Any idea why these imports failed?