Closed amarvin closed 5 years ago
Looks like the TravisCI build includes miniconda in the Docker image. Maybe something from there should be added as a requirement in setup.py.
Might also be something from pyomo.extras
(which doesn't seem to be available with pip, but is available with conda https://anaconda.org/conda-forge/pyomo.extras)
Dang. I think I need to cut a new release of simplemodel. We just cut a new release of pyomo, and I forgot to check. I'll do this later tonight.
FYI, the master branch works. I'm trying to resolve a testing issue before cutting the release.
Thanks for the fast response, William! I'll try the master branch.
Looks like this won't solve my issue, as installing pyomo with pip doesn't install extras, which seem to be required by Pyomo SimpleModel.
I added pyomo install-extras
to install pyomo.extras, but still get the same error when trying to import simplemodel. Looking at Pyomo, I don't see a module pyomo.util.plugin
I'm using Python 3.6.7, btw.
I don't see the dependency on extras. Can you send me an error message related to that? The Pyomo 5.6 release removed the pyomo.util.plugin module, which is the source of this error. We definitely need a new release of simple model. Working on that now.
I just tagged SimpleModel 1.0.2, which should resolve this issue. I'm updating PyPI and Conda packages now.
I guess I never created a conda-forge package. That's a longer lead-time. But I uploaded the release to PyPI.
Oh, I see. Just tried v1.0.2 from PyPI, and it worked! Nice work!
You're right that there's no dependency on pyomo.extras, but I saw you included it in the Travis-CI build, so I tried that in troubleshooting.
I used pip to install pyomo and pyomocontrib_simplemodel into a Docker container, but then import statement
fails with this partial trace:
Am I missing a dependency or using the wrong versions?