'MAP++ on Windows with Python

I am trying to run MAP++ on Windows using the python driver. I downloaded the package from https://bitbucket.org/mmasciola/map-plus-plus/src/master/. When running it, I’m getting the following error:

AttributeError: function 'map_offset_fairlead' not found

I’ve tried Python 3 and 2, both give errors. In mapsys.py I’m using

lib = cdll.LoadLibrary("map_x64.dll")

and I have the map_x64.dll stored directly in the folder containing the mapsys.py script. Maybe I have an old version of the dll? Where do I get most recent one?

Full log:

  File "main.py", line 35, in <module>
    from mapsys import *
  File "H:\mooring_linearisation\map\map-plus-plus\mmasciola-map-plus-plus-79719397feaa\python_driver\mapsys.py", line 28, in <module>
    class Map(object):
  File "H:\mooring_linearisation\map\map-plus-plus\mmasciola-map-plus-plus-79719397feaa\python_driver\mapsys.py", line 626, in Map
    lib.map_offset_fairlead.argtypes = [MapInput_Type, c_int, c_double, c_double, c_double, c_char_p, POINTER(c_int)]   
  File "C:\Users\gkb20193\Miniconda3\envs\map_py2\lib\ctypes\__init__.py", line 379, in __getattr__
    func = self.__getitem__(name)
  File "C:\Users\gkb20193\Miniconda3\envs\map_py2\lib\ctypes\__init__.py", line 384, in __getitem__
    func = self._FuncPtr((name_or_ordinal, self))
AttributeError: function 'map_offset_fairlead' not found


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source