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 when startproject: value is not a valid email address (type=value_error.email) #102

Open
yuhengShii opened this issue Jan 4, 2023 · 1 comment

Comments

@yuhengShii
Copy link

version==1.1.1
(caas_app) C:\E\proj>fastapi startproject test_fastapi
Traceback (most recent call last):
File "C:\D\miniconda3\envs\caas_app\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\D\miniconda3\envs\caas_app\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\D\miniconda3\envs\caas_app\Scripts\fastapi.exe_main
.py", line 7, in
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\typer\main.py", line 214, in call
return get_command(self)(*args, **kwargs)
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\click\core.py", line 1130, in call
return self.main(*args, **kwargs)
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\click\core.py", line 1055, in main
rv = self.invoke(ctx)
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\click\core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\click\core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\click\core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\typer\main.py", line 532, in wrapper
return callback(**use_params) # type: ignore
File "C:\D\miniconda3\envs\caas_app\lib\site-packages\manage_fastapi\main.py", line 43, in startproject
context = ProjectContext(
File "pydantic\main.py", line 342, in pydantic.main.BaseModel.init
pydantic.error_wrappers.ValidationError: 1 validation error for ProjectContext
email
value is not a valid email address (type=value_error.email)

@yuyangncg
Copy link

The reason is that the email format configured on Git is incorrect. You can use the git config -- get user. email command to check and use git config -- global user. email "[email protected]" Configuration.

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