I'm having a similar problem mentioned in the duplicate. The only difference is, the solution mentioned is not working. I've put hours to debug it but nothing successful. Kindly help in this regard.
Error
Traceback (most recent call last):
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/cli.py", line 3422, in handle
sys.exit(cli.handle())
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/cli.py", line 588, in handle
self.dispatch_command(self.command, stage)
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/cli.py", line 641, in dispatch_command
self.update(
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/cli.py", line 1088, in update
self.create_package()
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/cli.py", line 2743, in create_package
self.zip_path = self.zappa.create_lambda_zip(
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/core.py", line 632, in create_lambda_zip
copytree(
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/utilities.py", line 69, in copytree
copy_file(src, dst, item)
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/utilities.py", line 50, in copy_file
copytree(s, d, metadata, symlinks, ignore)
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/utilities.py", line 69, in copytree
copy_file(src, dst, item)
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/utilities.py", line 50, in copy_file
copytree(s, d, metadata, symlinks, ignore)
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/utilities.py", line 69, in copytree
copy_file(src, dst, item)
File "/home/khizar/.local/lib/python3.8/site-packages/zappa/utilities.py", line 52, in copy_file
shutil.copy2(s, d) if metadata else shutil.copy(s, d)
File "/usr/lib/python3.8/shutil.py", line 418, in copy
copyfile(src, dst, follow_symlinks=follow_symlinks)
File "/usr/lib/python3.8/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc, open(dst, 'wb') as fdst:
FileNotFoundError: [Errno 2] No such file or directory: '/home/khizar/Repositories/comradly/lambda/.serverless/requirements'
Hey,
I'm having a similar problem mentioned in the duplicate. The only difference is, the solution mentioned is not working. I've put hours to debug it but nothing successful. Kindly help in this regard.
Error
Contents of pip list
I've no idea why it's going in the
lambda/.serverless
directory for finding a fileDup link: https://github.com/Miserlou/Zappa/issues/1232