Dear AMPL Support,
I have installed amplpy using pip, and the installation seemed to complete correctly:
pip install amplpy
Next, I tried to install modules for open-source solvers to use them through Pyomo. Following the documentation, I ran the following command:
python -m amplpy.modules install coin highs scip gcg -q
However, this results in the following error:
File "<frozen runpy>", line 112, in _get_module_details
File "C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\site-packages\amplpy\__init__.py", line 17, in <module>
raise exp
File "C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\site-packages\amplpy\__init__.py", line 15, in <module>
ctypes.CDLL(dllfile)
~~~~~~~~~~~^^^^^^^^^
File "C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\ctypes\__init__.py", line 390, in __init__
self._handle = _dlopen(self._name, mode)
~~~~~~~^^^^^^^^^^^^^^^^^^
FileNotFoundError: Could not find module 'C:\Users\Usuario\AppData\Local\Programs\Python\Python313\Lib\site-packages\amplpy\amplpython\cppinterface\lib\amd64\ampl-3.0.0.dll' (or one of its dependencies). Try using the full path with constructor syntax.
I have checked, and the library ampl-3.0.0.dll does exist in that directory, so I am not sure what the problem could be.
Thank you in advance.
Best regards, Ángel