I m trying to setup chalice hello world as mentioned in the website. I did follow the steps one by one but I am unable to deploy the chalice.
this is the error message I m getting.
Traceback (most recent call last):
File “/opt/anaconda3/lib/python3.11/site-packages/chalice/cli/factory.py”, line 176, in create_config_obj
config_from_disk = self.load_project_config()
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/chalice/cli/factory.py”, line 335, in load_project_config
with open(config_file) as f:
^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: ‘/Users/veerellatarun/Documents/Trading/Challice/bybitchalice/.chalice/config.json’
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/opt/anaconda3/lib/python3.11/site-packages/chalice/cli/init.py”, line 637, in main
return cli(obj={})
^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/click/core.py”, line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/click/core.py”, line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/click/core.py”, line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/click/core.py”, line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/click/core.py”, line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/click/decorators.py”, line 33, in new_func
return f(get_current_context(), *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/chalice/cli/init.py”, line 180, in deploy
config = factory.create_config_obj(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/opt/anaconda3/lib/python3.11/site-packages/chalice/cli/factory.py”, line 178, in create_config_obj
raise RuntimeError(
RuntimeError: Unable to load the project config file. Are you sure this is a chalice project?
Troubleshooting steps:
1.. I did deactivated my virtual env, and activated it
2. deleted the hello world project and created again
3. configured the CLI with access key etc for authentication just to ensure that it must not be authentication config issue.
4. redo the steps again.
but I m still finding this problem. can any body help me ?
Tarun Veerella is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.