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

TypeError: add_variable() got an unexpected keyword argument 'update' #50

Open
yyyuechen opened this issue Oct 21, 2024 · 7 comments
Open

Comments

@yyyuechen
Copy link

yyyuechen commented Oct 21, 2024

Dear developer,
I am trying to run smenata with this command:
smetana --flavor fbc2 -o test3 -v -d --molweight --solver cplex --zeros genome2.xml genome1.xml
but i received this error: TypeError: add_variable() got an unexpected keyword argument 'update'
so I removed the update argument in all relavent scripts, but then i received this error:
TypeError: solve() got an unexpected keyword argument 'pool_size'
Does anyone ever faced the same issue? I am running my program on a docker and the version i am using is:
carveme 1.6.2
cplex 22.1.1.0
memote 0.17.0
smetana 1.2.0
Python 3.9.20
and the same issue happened when i used gurobi

@shikidj16
Copy link

shikidj16 commented Oct 22, 2024

I'm facing the same problem! As you did , I removed the update argument.

From what I see, solve () no longer requires pool size as an argument. So I removed that argument for now. I don't get that error anymore, but I keep getting other errors such as AttributeError: 'GurobiSolver' object has no attribute 'remove_constraint'.

I've noticed that the arguments used in the functions differ from what is actually required. This issue has occurred with addVariable(), solve(), and now it is also affecting removeConstraints(). I'm not sure why this is happening, but I suspect it may be due to a recent update in the solver that hasn't been taken into account in the code.

@yyyuechen
Copy link
Author

I'm facing the same problem! As you did , I removed the update argument.

From what I see, solve () no longer requires pool size as an argument. So I removed that argument for now. I don't get that error anymore, but I keep getting other errors such as AttributeError: 'GurobiSolver' object has no attribute 'remove_constraint'.

I've noticed that the arguments used in the functions differ from what is actually required. This issue has occurred with addVariable(), solve(), and now it is also affecting removeConstraints(). I'm not sure why this is happening, but I suspect it may be due to a recent update in the solver that hasn't been taken into account in the code.

Hi I think yes there is something incompatible between the code and the solver, have you tried to run the code with an older version solver? I will try to do this next week and let u know if it works! And also check this website if you still need to use smetana: https://inap.denglab.org.cn/

@cdanielmachado
Copy link
Owner

cdanielmachado commented Oct 24, 2024 via email

@yyyuechen
Copy link
Author

yyyuechen commented Oct 29, 2024 via email

@yyyuechen
Copy link
Author

Thank you for all the help guys, This combination finally worked for me : CPLEX 12.10.0.0,smetana 1.2.0.python 3.6.15,reframed 1.5.1.

@16607020803
Copy link

感谢所有帮助,这个组合终于对我有用了:CPLEX 12.10.0.0,smetana 1.2.0.python 3.6.15,reframed 1.5.1。

Hi, I'm also experiencing this problem, but when I install it using the pip install refarmed command, I run into a problem: it says that the installation of python-libsbml via setup.py failed, resulting in refarmed not being installed successfully. How did you solve this and can you help me please?

@yyyuechen
Copy link
Author

yyyuechen commented Dec 9, 2024 via email

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

4 participants