-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error loading 'pyutilib.component' entry points: 'type object 'PluginGlobals' has no attribute 'push_env #58
Comments
Hi Eli, could you tell us which versions of the python package you are using, in particular Pyomo? Best, |
Hi Benni,
I am using python 2.7. Pyomo version 5.2 (PyUtilib version 5.5.1)
Thanks!
Eli
…On Wed, Aug 2, 2017 at 5:04 PM, b-schubert ***@***.***> wrote:
Hi Eli,
could you tell us which versions of the python package you are using, in
particular Pyomo?
Best,
Benni
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#58 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/APjG3mE6o7bPFkurS3a9EDjoPNwtIDfCks5sUIHhgaJpZM4Oq_JE>
.
|
Sorry for responding so late. I couldn't reproduce the error. I tested the specification on a new virtual Python environment but the simple test files all ran through... Have you tried setting up a clean Python environment? If that does not work either, you could use our Docker container. |
Thanks for the reply. Best, |
This probably means that the Path to the GLPK binary has not been added to the PATH variable of your system. Can you execute GLPK on the command line, if you type in |
Yep. It finally works! |
Hi
I am trying to use OptiType and get the error:
Error loading 'pyutilib.component' entry points: 'type object 'PluginGlobals' has no attribute 'push_env''
Traceback (most recent call last):
File "OptiTypePipeline.py", line 124, in
from model import OptiType
File "/home/usr/OptiType/model.py", line 19, in
from pyomo.environ import ConcreteModel, Set, Param, Var, Binary, Objective, Constraint, ConstraintList, maximize
File "/home/python2.7/site-packages/pyomo/environ/init.py", line 14, in
from pyomo.core import *
File "/home/python2.7/site-packages/pyomo/core/init.py", line 11, in
from pyomo.util.plugin import PluginGlobals
File "/home/python2.7/site-packages/pyomo/util/init.py", line 11, in
from pyomo.util._task import pyomo_api, PyomoAPIData, PyomoAPIFactory
File "/home/python2.7/site-packages/pyomo/util/_task.py", line 21, in
import pyutilib.workflow
File "/home/python2.7/site-packages/pyutilib/workflow/init.py", line 11, in
pyutilib.component.core.PluginGlobals.push_env("pyutilib.workflow")
AttributeError: type object 'PluginGlobals' has no attribute 'push_env'
All dependencies are already installed
Thanks for the help
Eli
The text was updated successfully, but these errors were encountered: