Python / Pyomo error in JModelica

I installed the commercial deciding package (OCT) for JModelica (python-based) -> When I want to open JModelica through "Ipython", I get the following error message:

Traceback (most recent call last): File "C:\OCT-1.0b1\Python27\scripts\ipython-script.py", line 5, in <module> from pkg_resources import load_entry_point File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 2825, in <module> add_activation_listener(lambda dist: dist.activate()) File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 710, in subscribe callback(dist) File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 2825, in <lambda> add_activation_listener(lambda dist: dist.activate()) File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 2260, in activate map(declare_namespace, self._get_metadata('namespace_packages.txt')) File "C:\OCT-1.0b1\Python27\lib\site-packages\pkg_resources.py", line 1836, in declare_namespace path = sys.modules[parent].__path__ KeyError: 'pyomo' 

I work with pyomo via spyder / Anaconda2 (64-bit)

It would be great if someone helped me!

+5
source share

Source: https://habr.com/ru/post/1247533/


All Articles