microsoft / lida

Automatic Generation of Visualizations and Infographics using Large Language Models
https://microsoft.github.io/lida/
MIT License
2.6k stars 266 forks source link

is anyone got error 'not enough values to unpack ' on Mac system? #69

Open nuaabuaa07 opened 7 months ago

nuaabuaa07 commented 7 months ago

I got error in my Mac but run ok in ubantu .has anyone got the same error message?

the error msg is as follow: Backend MacOSX is interactive backend. Turning interactive mode on. Traceback (most recent call last): File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/Users/jinzhiliang/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/main.py", line 39, in cli.main() File "/Users/jinzhiliang/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 430, in main run() File "/Users/jinzhiliang/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/adapter/../../debugpy/launcher/../../debugpy/../debugpy/server/cli.py", line 284, in run_file runpy.run_path(target, run_name="main") File "/Users/jinzhiliang/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 321, in run_path return _run_module_code(code, init_globals, run_name, File "/Users/jinzhiliang/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 135, in _run_module_code _run_code(code, mod_globals, init_globals, File "/Users/jinzhiliang/.vscode/extensions/ms-python.python-2023.20.0/pythonFiles/lib/python/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py", line 124, in _run_code exec(code, run_globals) File "/Users/jinzhiliang/githubRepo/lida/tests/test_modules.py", line 81, in test_summarizer() File "/Users/jinzhiliang/githubRepo/lida/tests/test_modules.py", line 24, in test_summarizer summary_enrich = lida.summarize(cars_data_url, File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/lida/components/manager.py", line 131, in summarize return self.summarizer.summarize( File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/lida/components/summarizer.py", line 141, in summarize data_summary = self.encrich( File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/lida/components/summarizer.py", line 104, in encrich response = text_gen.generate(messages=messages, config=textgen_config) File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/llmx/generators/text/openai_textgen.py", line 52, in generate prompt_tokens = num_tokens_from_messages(messages) File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/llmx/utils.py", line 22, in num_tokens_from_messages encoding = tiktoken.encoding_for_model(model) File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/tiktoken/model.py", line 67, in encoding_for_model return get_encoding(model_encoding_name) File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/tiktoken/registry.py", line 63, in get_encoding enc = Encoding(**constructor()) File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/tiktoken_ext/openai_public.py", line 64, in cl100k_base mergeable_ranks = load_tiktoken_bpe( File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/tiktoken/load.py", line 117, in load_tiktoken_bpe return { File "/Users/jinzhiliang/anaconda3/envs/py10_chatgml/lib/python3.10/site-packages/tiktoken/load.py", line 119, in for token, rank in (line.split() for line in contents.splitlines() if line) ValueError: not enough values to unpack (expected 2, got 1)

it seem like run error in this as following picture.but Why?

image