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

macOS 下安装后执行报 AttributeError: 'NoneType' object has no attribute 'startswith' 错误 #6

Open
mintisan opened this issue Mar 25, 2024 · 1 comment

Comments

@mintisan
Copy link

mintisan commented Mar 25, 2024

完全按照如下顺序安装:

conda create --name autocoder python==3.10.11
conda activate autocoder
pip install -U auto-coder
ray start --head

然后执行

(autocoder) ➜  ~ pip list | grep auto-coder   
auto-coder                              0.1.18
(autocoder) ➜  ~ auto-coder -h        

/Users/mintisan/miniconda3/envs/autocoder/lib/python3.10/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "model_max_length" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
/Users/mintisan/miniconda3/envs/autocoder/lib/python3.10/site-packages/pydantic/_internal/_fields.py:151: UserWarning: Field "model_max_input_length" has conflict with protected namespace "model_".

You may be able to resolve this warning by setting `model_config['protected_namespaces'] = ()`.
  warnings.warn(
/Users/mintisan/miniconda3/envs/autocoder/lib/python3.10/site-packages/langchain/__init__.py:29: UserWarning: Importing PromptTemplate from langchain root module is no longer supported. Please use langchain_core.prompts.PromptTemplate instead.
  warnings.warn(
Traceback (most recent call last):
  File "/Users/mintisan/miniconda3/envs/autocoder/bin/auto-coder", line 8, in <module>
    sys.exit(main())
  File "/Users/mintisan/miniconda3/envs/autocoder/lib/python3.10/site-packages/autocoder/auto_coder.py", line 103, in main
    args = parse_args()
  File "/Users/mintisan/miniconda3/envs/autocoder/lib/python3.10/site-packages/autocoder/auto_coder.py", line 69, in parse_args
    lang = "zh" if system_lang.startswith("zh") else "en"
AttributeError: 'NoneType' object has no attribute 'startswith'
(autocoder) ➜  ~ 

image

@Symbolk
Copy link

Symbolk commented Jul 23, 2024

@allwefantasy 老祝,我这边是直接auto-coder.chat报[1] 90118 segmentation fault auto-coder.chat,运行ray start --head也一样

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

2 participants