Forum Discussion
FICO
9 years agoCommunity Manager
xpress python module: has no attribute
I am trying to use xpress with python for the first time. I have installed Xpress 8.3 32 bit. I am trying to run the first example from A Practical Guide to the New Python Interface for FICO Xpress O...
FICO
9 years agoCommunity Manager
Hi Meagan,
that's a weird error, since var and problem are two fundamental classes in the Xpress module. For what it's worth, a similar error happened to me a few times when there was a "xpress.py" file around with no valuable content. The effect of the "import xpress" command is that of importing all objects from xpress.py, which prevents from importing the actual module. I assume this depends very much on where you run the command. Can you check the files in the directory where you're running Python?
Also, while we're at it: make sure you replace that zp.integer with xp.integer in the call to xp.var().
Pietro

