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

Error: Parse error on line 42:...Handler --> selenium.webdriver #1611

Open
happytravelingskysheep opened this issue Nov 22, 2024 · 2 comments
Labels

Comments

@happytravelingskysheep
Copy link

Bug description
Another bug with playwright.
Error: Parse error on line 42:...Handler --> selenium.webdriver
Bug solved method

Environment information

  • LLM type and model name:
  • System version: ubuntu 22.04
  • Python version: 3.11
  • MetaGPT version or branch: main
  • packages version: 0.8.1
  • installation method: pip

Screenshots or logs
2024-11-22 17:03:13.898 | INFO | metagpt.utils.file_repository:save:57 - save to: /root/workspace/workspace/design_pattern_simulation/docs/system_design/20241122170240.json
2024-11-22 17:03:13.899 | INFO | metagpt.utils.file_repository:save:62 - update dependency: /root/workspace/workspace/design_pattern_simulation/docs/system_design/20241122170240.json:{'docs/prd/20241122170240.json'}
2024-11-22 17:03:14.997 | ERROR | metagpt.utils.mmdc_playwright:mermaid_to_file:121 - Page.evaluate: Error: Parse error on line 42:...Handler --> selenium.webdriver Docum-----------------------^Expecting 'NEWLINE', 'EOF', 'SQS', 'STR', 'GENERICTYPE', 'LABEL', 'STRUCT_START', 'STRUCT_STOP', 'STYLE_SEPARATOR', 'ANNOTATION_END', 'AGGREGATION', 'EXTENSION', 'COMPOSITION', 'DEPENDENCY', 'LOLLIPOP', 'LINE', 'DOTTED_LINE', 'CALLBACK_NAME', 'HREF', 'MINUS', 'UNICODE_TEXT', 'NUM', 'ALPHA', 'BQUOTE_STR', got 'DOT'
at WA.parseError (file:///root/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt/utils/index.html:1:894276)
at WA.parse (file:///root/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt/utils/index.html:1:895563)
at CUe.parser.parse (file:///root/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt/utils/index.html:1:276633)
at CUe.parse (file:///root/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt/utils/index.html:1:276867)
at new CUe (file:///root/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt/utils/index.html:1:276708)
at YjA (file:///root/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt/utils/index.html:1:277173)
at async Object.eDt [as render] (file:///root/anaconda3/envs/metagpt/lib/python3.11/site-packages/metagpt/utils/index.html:1:281122)

@voidking
Copy link
Collaborator

This error indicates that the mermaid file generated by llm is not standardized. Therefore, the parsing error occurs.
It is recommended to rerun or replace it with a better llm model.

Copy link

This issue has no activity in the past 30 days. Please comment on the issue if you have anything to add.

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

No branches or pull requests

2 participants