Skip to content
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

'ReciprocalExpression' from 'pyomo.core.expr.numeric_expr' #40

Open
chemrgineer opened this issue Sep 13, 2022 · 0 comments
Open

'ReciprocalExpression' from 'pyomo.core.expr.numeric_expr' #40

chemrgineer opened this issue Sep 13, 2022 · 0 comments

Comments

@chemrgineer
Copy link

Hi, I'm trying to use Galini in CLI but when I call "galini" I get this error:
Traceback (most recent call last):
File "C:\Users\user\miniconda3\Scripts\galini-script.py", line 33, in
sys.exit(load_entry_point('galini==1.0.2', 'console_scripts', 'galini')())
File "C:\Users\user\miniconda3\lib\site-packages\galini-1.0.2-py3.9.egg\galini\cli.py", line 47, in main
subcommands = collect_commands(
File "C:\Users\user\miniconda3\lib\site-packages\galini-1.0.2-py3.9.egg\galini\cli.py", line 34, in collect_commands
sub_cls = entry_point.load()
File "C:\Users\user\miniconda3\lib\site-packages\pkg_resources_init_.py", line 2471, in load
return self.resolve()
File "C:\Users\user\miniconda3\lib\site-packages\pkg_resources_init_.py", line 2477, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "C:\Users\user\miniconda3\lib\site-packages\galini-1.0.2-py3.9.egg\galini\commands_init_.py", line 21, in
from .commands import CliCommand, CliCommandWithProblem
File "C:\Users\user\miniconda3\lib\site-packages\galini-1.0.2-py3.9.egg\galini\commands\commands.py", line 20, in
from suspect.pyomo.connected_model import create_connected_model
File "C:\Users\user\miniconda3\lib\site-packages\cog_suspect-2.1.3-py3.9.egg\suspect_init_.py", line 16, in
from .summary import detect_special_structure
File "C:\Users\user\miniconda3\lib\site-packages\cog_suspect-2.1.3-py3.9.egg\suspect\summary.py", line 20, in
from suspect.fbbt import perform_fbbt
File "C:\Users\user\miniconda3\lib\site-packages\cog_suspect-2.1.3-py3.9.egg\suspect\fbbt_init_.py", line 16, in
from .initialization import BoundsInitializationVisitor
File "C:\Users\user\miniconda3\lib\site-packages\cog_suspect-2.1.3-py3.9.egg\suspect\fbbt\initialization_init_.py", line 16, in
from .visitor import BoundsInitializationVisitor, initialize_bounds
File "C:\Users\user\miniconda3\lib\site-packages\cog_suspect-2.1.3-py3.9.egg\suspect\fbbt\initialization\visitor.py", line 18, in
from suspect.pyomo.expressions import UnaryFunctionExpression, Constraint
File "C:\Users\user\miniconda3\lib\site-packages\cog_suspect-2.1.3-py3.9.egg\suspect\pyomo\expressions.py", line 18, in
from pyomo.core.expr.numeric_expr import (
ImportError: cannot import name 'ReciprocalExpression' from 'pyomo.core.expr.numeric_expr' (C:\Users\user\miniconda3\lib\site-packages\pyomo\core\expr\numeric_expr.cp39-win_amd64.pyd)

Windows 10 x64
Python 3.9.13
pyomo 6.4.2
cog-suspect 2.1.3
numpy 1.21.5
coramin 0.1.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant