Aws lambda Zappa slim handler PermissionError:[Errno 13]权限被拒绝

Aws lambda Zappa slim handler PermissionError:[Errno 13]权限被拒绝,aws-lambda,windows-subsystem-for-linux,zappa,Aws Lambda,Windows Subsystem For Linux,Zappa,我的aws lambda包大小有点超出限制……所以我尝试使用Zappa的slim_处理程序:true选项 然而,我得到下面的错误 Calling deploy for stage dev.. Downloading and installing dependencies.. - scipy==1.5.2: Using locally cached manylinux wheel - scikit-learn==0.23.2: Downloading 100%|████████████████

我的aws lambda包大小有点超出限制……所以我尝试使用Zappa的slim_处理程序:true选项

然而,我得到下面的错误

Calling deploy for stage dev..
Downloading and installing dependencies..
 - scipy==1.5.2: Using locally cached manylinux wheel
 - scikit-learn==0.23.2: Downloading
100%|██████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 6.83M/6.83M [00:01<00:00, 3.50MB/s] - regex==2020.9.27: Using locally cached manylinux wheel
 - pymongo==3.11.0: Using locally cached manylinux wheel
 - pandas==1.1.2: Using locally cached manylinux wheel
 - numpy==1.19.2: Using locally cached manylinux wheel
 - msgpack==0.6.2: Using locally cached manylinux wheel
Packaging project as gzipped tarball.
Oh no! An error occurred! :(

==============

Traceback (most recent call last):
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/cli.py", line 2778, in handle
    sys.exit(cli.handle())
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/cli.py", line 512, in handle
    self.dispatch_command(self.command, stage)
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/cli.py", line 549, in dispatch_command
    self.deploy(self.vargs['zip'])
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/cli.py", line 723, in deploy
    self.create_package()
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/cli.py", line 2237, in create_package
    venv=self.zappa.create_handler_venv(),
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/core.py", line 421, in create_handler_venv
    copytree(os.path.join(current_site_packages_dir, z), os.path.join(venv_site_packages_dir, z))
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/utilities.py", line 68, in copytree
    copy_file(src, dst, item)
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/utilities.py", line 50, in copy_file
    copytree(s, d, metadata, symlinks, ignore)
  File "/mnt/c/officeworkspace/esg/data-process-function/venv/lib/python3.8/site-packages/zappa/utilities.py", line 58, in copytree
    shutil.copystat(src, dst)
  File "/usr/lib/python3.8/shutil.py", line 376, in copystat
    _copyxattr(src, dst, follow_symlinks=follow)
  File "/usr/lib/python3.8/shutil.py", line 326, in _copyxattr
    os.setxattr(dst, name, value, follow_symlinks=follow_symlinks)
PermissionError: [Errno 13] Permission denied: '/mnt/c/officeworkspace/esg/data-process-function/handler_venv/lib/python3.8/site-packages/zappa/__pycache__'

==============

Need help? Found a bug? Let us know! :D
File bug reports on GitHub here: https://github.com/Miserlou/Zappa
And join our Slack channel here: https://slack.zappa.io
Love!,
 ~ Team Zappa!
任何线索都将不胜感激。谢谢

(venv) myuser@Virtuvious-Mag15:/mnt/c/officeworkspace/esg/data-process-function$ ls -all /mnt/c/officeworkspace/esg/data-process-function/handler_venv/lib/python3.8/site-packages/zappa/
total 348
drwxrwxrwx 1 myuser myuser   4096 Oct  5 09:29 .
drwxrwxrwx 1 myuser myuser   4096 Oct  4 21:42 ..
-rwxrwxrwx 1 myuser myuser    481 Oct  4 20:46 __init__.py
drwxrwxrwx 1 myuser myuser   4096 Oct  4 20:46 __pycache__
-rwxrwxrwx 1 myuser myuser    192 Oct  4 20:46 async.py
-rwxrwxrwx 1 myuser myuser  16390 Oct  4 20:46 asynchronous.py
-rwxrwxrwx 1 myuser myuser 120781 Oct  4 20:46 cli.py
-rwxrwxrwx 1 myuser myuser 134532 Oct  4 20:46 core.py
drwxrwxrwx 1 myuser myuser   4096 Oct  5 09:19 ext
-rwxrwxrwx 1 myuser myuser  26455 Oct  4 20:46 handler.py
-rwxrwxrwx 1 myuser myuser  13059 Oct  4 20:46 letsencrypt.py
-rwxrwxrwx 1 myuser myuser   2066 Oct  4 20:46 middleware.py
-rwxrwxrwx 1 myuser myuser      0 Oct  4 20:46 policies.py
-rwxrwxrwx 1 myuser myuser  18964 Oct  4 20:46 utilities.py
-rwxrwxrwx 1 myuser myuser   7422 Oct  4 20:46 wsgi.py