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: ENOTDIR: not a directory #218

Closed
arsoni20 opened this issue Sep 11, 2022 · 2 comments
Closed

Error: ENOTDIR: not a directory #218

arsoni20 opened this issue Sep 11, 2022 · 2 comments

Comments

@arsoni20
Copy link

Hi,

I am following this example - https://www.serverless.com/plugins/serverless-wsgi and I am getting an error while deploying my simple flask app to aws

Error stack -
(venv) user sls-flask-x % sls deploy
Running "serverless" from node_modules

Deploying example to stage dev (us-east-1)
Using Python specified in "runtime": python3.8
Packaging Python WSGI handler...
Packaging required Python packages...
Linking required Python packages...

✖ Stack example-dev failed to deploy (7s)
Environment: darwin, node 16.14.2, framework 3.22.0 (local) 3.19.0v (global), plugin 6.2.2, SDK 4.3.2
Credentials: Local, environment variables
Docs: docs.serverless.com
Support: forum.serverless.com
Bugs: github.com/serverless/serverless/issues

Error:
Error: ENOTDIR: not a directory, scandir '/Users/username/repo/sls-flask-x/distutils-precedence.pth'

Please suggest to resolve this issue.

@logandk
Copy link
Owner

logandk commented Sep 12, 2022

I think distutils-precedence.pth needs to be added here: https://github.com/logandk/serverless-wsgi/blob/master/requirements.py#L85

Can you check if that resolves the issue?

@arsoni20
Copy link
Author

Hi @logandk your suggestion worked, added 2 more such files in the blacklist list and it worked like a charm.

raised a PR, please check #219

@logandk logandk closed this as completed Sep 13, 2022
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