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

Scanner Error #68

Closed
Paulina-GM opened this issue May 5, 2022 · 7 comments
Closed

Scanner Error #68

Paulina-GM opened this issue May 5, 2022 · 7 comments

Comments

@Paulina-GM
Copy link

Hello,

I'm trying to use the Aizynthapp on the jupyter notebooks, using the documents provided in figshare. When I run the first cell I get the following error message:

ScannerError: while scanning for the next token
found character '\t' that cannot start any token
in "", line 5, column 7:
full_uspto_03_05_19_unique_temp ...

I'm running this in a Linux cluster using python 3.8. If that's of any help.

Thanks in advance for your help.

@Paulina-GM
Copy link
Author

Hi again,

Just a follow up. I was able to solve that issue by removing the tabs in the config file. but now I get the following error:

endosome/work/radiology/s187304/aizynth/aizynthfinder/aizynthfinder/context/policy/policies.py in load_from_config(self, **config)
109 files_spec = config.get("files", config.get("template-based", {}))
110 for key, policy_spec in files_spec.items():
--> 111 modelfile, templatefile = policy_spec
112 strategy = TemplateBasedExpansionStrategy(
113 key, self._config, source=modelfile, templatefile=templatefile

ValueError: too many values to unpack (expected 2)

Thanks again in advance for your help.

@SGenheden
Copy link
Contributor

Hello
Could you paste your config-file here? I don't understand how the tabs entered into your file, but the latest exceptions comes from a mal-formated config file. You should specify a policy using something like this

policy:
  files:
    my_policy:
      - path_to_model_file
      - path_to_template_file

@Paulina-GM
Copy link
Author

Paulina-GM commented May 5, 2022 via email

@Paulina-GM
Copy link
Author

Paulina-GM commented May 5, 2022 via email

@SGenheden
Copy link
Contributor

Glad you could sort it out. I will close this ticket now.
Do not hesitate to return with more questions, even if you think they are basic.
I am glad it found its way to a chemists, and appreciate that you and other chemists are no computer specialists.

@Paulina-GM
Copy link
Author

Paulina-GM commented Oct 11, 2022 via email

@aa0929
Copy link

aa0929 commented Jul 24, 2023

#I was very excited to try it and the previous error is gone, but a new one appeared
image
image
image
image

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

3 participants