msdl运行报错SyntaxError: f-string: unterminated string

Open
#282 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
42/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
python
Domain
cli

Research direction

Start with docker/msdl/user_interaction.py around line 187, where the traceback identifies the unterminated f-string during msdl startup. Reinstall the package in the documented conda environment and run msdl to verify that the SyntaxError no longer occurs.

Written by the indexing model from the issue text.

Description

使用conda24创建虚拟环境
conda create -n myenv python=3.11
随后进入环境myenv
cd MindSearch/docker
pip install -e .
msdl
报错如下
(myenv ) [root@localhost MindSearch-main]# msdl
Traceback (most recent call last):
File "/home/software/anaconda3/anaconda/envs/mind/bin/msdl", line 33, in
sys.exit(load_entry_point('msdl', 'console_scripts', 'msdl')())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/software/anaconda3/anaconda/envs/mind/bin/msdl", line 25, in importlib_load_entry_point
return next(matches).load()
^^^^^^^^^^^^^^^^^^^^
File "/home/software/anaconda3/anaconda/envs/mind/lib/python3.11/importlib/metadata/init.py", line 202, in load
module = import_module(match.group('module'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/software/anaconda3/anaconda/envs/mind/lib/python3.11/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "/home/LLM/mindsearch/MindSearch-main/docker/msdl/main.py", line 33, in
from msdl.user_interaction import get_user_choices
File "/home/LLM/mindsearch/MindSearch-main/docker/msdl/user_interaction.py", line 187
"name": f"{t(f'SEARCH_ENGINE
{info["key"]}')} ({t('NO_API_KEY_NEEDED') if not info['requires_key'] else t('API_KEY_REQUIRED')})",
^^^
SyntaxError: f-string: unterminated string

Dominant language
JavaScript
Stars
7k
Forks
684
PR merge metrics
No merged PRs in 30d

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from InternLM/MindSearch

All issues in InternLM/MindSearch

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.