-
Notifications
You must be signed in to change notification settings - Fork 3
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
Could not find package in your path #10
Comments
Thanks for the bug report @Kraymer. I'm afraid Layer Linter doesn't support Python 2; it's possibly a consequence of that. Are you able to reproduce the issue with Python 3? |
P.S. Good suggestion about |
but I have no idea where is lcoated this |
PS: trying to make it work on a django project |
Layer Linter looks at packages in the Python path, rather than in the filesystem. So you could in theory run it on any package that is installed and importable from your Python prompt. In this case it's linting the built in test module. Could you try running the Python prompt and then typing One other thing: your layers file should be called
Does that make sense? |
The import works ok in the interpreter. |
I can somehow make it work if I add a breakpoint in the code (sigh)
|
Hmm, I'm not sure what's going on here and it's difficult to troubleshoot without your package / setup. Try doing this:
If it still doesn't work, you could try removing the exception handling for the ImportError in Alternatively if you're able to share with me with an example project that triggers the error, I could see if I can reproduce it. Thanks so much for your patience! |
Hi @Kraymer, I've just released an update (0.5.0) which fixes some problems with importing certain packages. It may fix your problem, if you would like to try it. If you still have issues, could you run the program including the |
I'm going to close this issue, as I believe it will have been addressed, if not in earlier updates, by the rewrite of the static analysis in the latest version. Feel free to open a new bug report if you still find you have issues. Thanks again for the bug report. |
layer-lint --version
does not work)Description
Running the program
What I Did
I expect to have more infos in the doc to make this first
__import__
worksThe text was updated successfully, but these errors were encountered: