Hello,
I'm facing some problems with the creation of the environment conda and some packages are not downloaded automatically. More precisely even if I gave pyomo.core in C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site-packages\pyomo it does not find it. Please not I'm running temoa_utopia so the code should not provide error by itself.
I report below the error message:
(temoa-py3) (venv) C:\Users\amedeo.testori\Desktop\temoa-energysystem_new>python temoa_model/ --config=temoa_model/config_sample
Traceback (most recent call last):
File "temoa_model\temoa_initialize.py", line 31, in <module>
from pyomo.core import *
File "C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site-packages\pyomo\core\__init__.py", line 11, in <module>
from pyomo.core.expr import *
File "C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site-packages\pyomo\core\expr\__init__.py", line 19, in <module>
from . import numvalue, numeric_expr, logical_expr, current
File "pyomo\core\expr\logical_expr.pyx", line 31, in init pyomo.core.expr.logical_expr
File "C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site-packages\pyomo\core\expr\boolean_value.py", line 8, in <module>
from pyomo.core.expr.expr_common import _and, _or, _equiv, _inv, _xor, _impl
ImportError: cannot import name '_and' from 'pyomo.core.expr.expr_common' (C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\site-packages\pyomo\core\ex
pr\expr_common.py)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "C:\Users\amedeo.testori\anaconda3\envs\temoa-py3\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "temoa_model\__main__.py", line 28, in <module>
from temoa_model import *
File "temoa_model\temoa_model.py", line 20, in <module>
from temoa_rules import *
File "temoa_model\temoa_rules.py", line 26, in <module>
from temoa_initialize import *
File "temoa_model\temoa_initialize.py", line 43, in <module>
raise ImportError( msg )
ImportError:
Unable to find 'pyomo.core.' Check to make sure pyomo is installed, and that
you are running a version compatible with Temoa.
hope you can help me,
cheers
Amedeo Testori