MapInfo Pro Developers User Group

 View Only
  • 1.  Exception name 'IMapInfo3' is not defined

    Posted 05-11-2021 10:59

    Hello,

    I am trying to run MapInfo with Python as a COM object like this :

    import win32com.client

    pro = win32com.client.Dispatch("MapInfo.Application.x64")

    But when the program try to execute this last line, i get the following message and my program ends with an error and this message :

    "Exception name 'IMapInfo3' is not defined"

    Any idea of what's the problem ? I have not found any information on IMapInfo3

    Thanks !


    ------------------------------
    David Boucher
    Korem Geospatial Software & Data
    Quebec QC
    ------------------------------


  • 2.  RE: Exception name 'IMapInfo3' is not defined

    Posted 05-11-2021 11:54
    I have found the problem. You have to go erase the folder gen_py in : C:\Users\username\AppData\Local\Temp

    Once i did it, the problem was no longer there.​

    ------------------------------
    David Boucher
    Korem Geospatial Software & Data
    Quebec QC
    ------------------------------