Forum Discussion

FICO's avatar
FICO
Community Manager
2 years ago

How to resolve traceback: "xpress.InterfaceError: Incorrect control name; check name and license type"?

We are trying to access xpress in Python via Pyomo. We have no issues installing xpress and solving a simple model with the xpress interface. However, when we attempt to access xpress via pyomo we received the following traceback: "xpress.InterfaceError: Incorrect control name; check name and license type". We have a commercial license for xpress and we've confirmed that the pathing in python points to the correct license; however we're still experiencing this traceback.

We first tried contacting the Pyomo team and they believe the issue is related to an "environment variable setup for xpress, to point to the license", and that the issue is with how we have xpress configured.

We next tried following the troubleshooting steps in this forum post, but continued to receive the same traceback: https://community.fico.com/s/question/0D52E00005p8aKGSAY/xpressinterfaceerror-incorrect-control-name-error

Our only lead as to what could be happening at this point is that when we run the code to instantiate the correct solver license from the forum post above, we receive different "n" values each time we run this code: " n,string = xp.license(0,string)".

Has anyone else experienced this issue in the past? Any further troubleshooting steps we can try?

Thanks!

Will

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    Hi Will,

    It's not clear to me why this error would occur. Could you please share your Python code along with the versions of Xpress and Pyomo that you are using? If you would prefer to share the code privately, you can send it to [email protected]. It would also be good to know whether you have an OEM license or a regular license. An OEM license can be recognised by examining the xpauth.xpr file in a text editor and looking for a string like this:

    license ... oem="Your company" ...