Type error #1435
-
Dear all, I just installed Idaes version 2.5.0 in a new Anaconda environment using the commands from the Windows Installation Guide. All the installation runs without error except when I run: pytest --pyargs idaes -W ignore I get the following error in more then 1000 times: TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases When running any example from github, for example the TSA i get: TypeError Traceback (most recent call last) File ~\Anaconda3\envs\IDAES\envs\my-idaes-env\lib\site-packages\idaes\core\base\process_block.py:165, in ProcessBlock.new(cls, *args, **kwds) File ~\Anaconda3\envs\IDAES\envs\my-idaes-env\lib\site-packages\idaes\core\base\process_block.py:133, in _ScalarProcessBlockMeta.new(mcs, name, bases, dct) TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases ` |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
@alberto-bueno This issue was caused by some changes Pyomo made in their last release, however these should all have been fixed in the IDAES v2.5 release. Could you double check:
If you could prove a full list of your installed dependencies it might also help (I think |
Beta Was this translation helpful? Give feedback.
-
@alberto-bueno piggy-backing on @andrewlee94's comment:
conda create --name idaes-pse -c conda-forge --yes python=3.10
conda activate idaes-pse
pip install idaes-pse==2.5.0
pip show idaes-pse pyomo # should show idaes-pse 2.5.0, pyomo 6.7.3
idaes get-extensions --verbose
pytest --pyargs idaes -W ignore # the TypeError shouldn't appear |
Beta Was this translation helpful? Give feedback.
@alberto-bueno piggy-backing on @andrewlee94's comment:
conda install
is 2.4.0pip install
following e.g. the steps below: