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

Fix new clyngor #12

Merged
merged 2 commits into from
Mar 18, 2022
Merged

Fix new clyngor #12

merged 2 commits into from
Mar 18, 2022

Conversation

cfrioux
Copy link
Owner

@cfrioux cfrioux commented Mar 18, 2022

The latest version of clyngor leads to errors such as the following:

Traceback (most recent call last):
  File "/home/clemence/bin/miniconda3/envs/metage2metabo/lib/python3.8/site-packages/metage2metabo/m2m/individual_scope.py", line 144, in indiv_scope_on_species
    menescope_results = run_menescope(
  File "/home/clemence/bin/miniconda3/envs/metage2metabo/lib/python3.8/site-packages/menetools/menescope.py", line 66, in run_menescope
    model = query.get_scope(draftnet, seeds)
  File "/home/clemence/bin/miniconda3/envs/metage2metabo/lib/python3.8/site-packages/menetools/query.py", line 44, in get_scope
    for model in models.discard_quotes.by_arity:
  File "/home/clemence/bin/miniconda3/envs/metage2metabo/lib/python3.8/site-packages/clyngor/answers.py", line 205, in __iter__
    for answer_set, optimization, optimality, answer_number in self._answers:
  File "/home/clemence/bin/miniconda3/envs/metage2metabo/lib/python3.8/site-packages/clyngor/answers.py", line 327, in __compute_answers
    with self._solver.solve(**kwargs) as models:
TypeError: solve() got an unexpected keyword argument 'async'

This branch fixes the error by preventing the use of clingo module when calling the solver.

@cfrioux cfrioux merged commit cae08cf into master Mar 18, 2022
@cfrioux cfrioux deleted the fix_new_clyngor branch March 18, 2022 09:50
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

Successfully merging this pull request may close these issues.

2 participants