Skip to content

Conversation

@RobbieKiwi
Copy link
Contributor

@RobbieKiwi RobbieKiwi commented Dec 18, 2025

Closes #533

Changes proposed in this Pull Request

Removed old xpress methods and replaced them with the new ones

Checklist

  • A note for the release notes doc/release_notes.rst of the upcoming release is included.
  • I consent to the release of this PR's code under the MIT license.

@RobbieKiwi
Copy link
Contributor Author

It works on my computer, I don't know how to set up testing with these licensed solvers

@RobbieKiwi RobbieKiwi changed the title removed deprecated methods removed deprecated xpress methods Dec 18, 2025
@RobbieKiwi
Copy link
Contributor Author

I noticed another issue
Xpress 9.5 does not work since the latest release of linopy (0.5.8), I have a look into this as well

File "d:\RMU\PythonProjects\SmaOpt\.venv\Lib\site-packages\linopy\solvers.py", line 1608, in get_solver_solution var = m.getnamelist(xpress.Namespaces.COLUMN, 0, m.attributes.cols - 1) ^^^^^^^^^^^^^^^^^ File "d:\RMU\PythonProjects\SmaOpt\.venv\Lib\site-packages\xpress\__init__.py", line 157, in __getattr__ raise AttributeError("module '%s' has no attribute '%s'" % (__name__, name)) AttributeError: module 'xpress' has no attribute 'Namespaces'

@RobbieKiwi RobbieKiwi closed this Dec 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Deprecation in xpress Python interface

2 participants