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

RXNRetrosynthesis failing attempts #38

Open
miquelduranfrigola opened this issue May 13, 2024 · 0 comments
Open

RXNRetrosynthesis failing attempts #38

miquelduranfrigola opened this issue May 13, 2024 · 0 comments

Comments

@miquelduranfrigola
Copy link

Hi, thanks for a truly exciting repository.

I have obtained an RXN4CHEM_API_KEY and I am trying to run chemcrow to give suggest a synthesis plan for a given molecule.

However, code fails after multiple attempts:

ReactionRetrosynthesis
Action Input:
CCOC(=O)c1cnc2c(C)cc(C)cc2c1Nc1ccc(OC)c(OC)c1Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 0 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 1 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 2 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 3 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 4 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 5 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 6 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 7 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 8 of 10
Exception thrown when attempting to run <function RXNRetrosynthesis.predict_retrosynthesis at 0x124731ea0>, attempt 9 of 10
Traceback (most recent call last):
 File "/Users/mduranfrigola/Documents/GitHub/ai-intro-workshop/chemcrowdev.py", line 23, in <module>
  result = mrkl.run(prompt)
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/chemcrow/agents/chemcrow.py", line 84, in run
  outputs = self.agent_executor({"input": prompt})
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/langchain/chains/base.py", line 282, in __call__
  raise e
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/langchain/chains/base.py", line 276, in __call__
  self._call(inputs, run_manager=run_manager)
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/langchain/agents/agent.py", line 1036, in _call
  next_step_output = self._take_next_step(
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/langchain/agents/agent.py", line 891, in _take_next_step
  observation = tool.run(
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/langchain/tools/base.py", line 351, in run
  raise e
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/langchain/tools/base.py", line 325, in run
  else self._run(*tool_args, **tool_kwargs)
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/chemcrow/tools/rxn4chem.py", line 147, in _run
  prediction_id = self.predict_retrosynthesis(target)
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/chemcrow/tools/rxn4chem.py", line 75, in newfn
  return func(*args, **kwargs)
 File "/Users/mduranfrigola/miniconda3/envs/chemcrow/lib/python3.10/site-packages/chemcrow/tools/rxn4chem.py", line 170, in predict_retrosynthesis
  raise KeyError
KeyError

Do you know what may be going on?

Thanks so much in advance.

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