-
Notifications
You must be signed in to change notification settings - Fork 24
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
AttributeError: 'zipimporter' object has no attribute 'path' #43
Comments
@s0undt3ch Any advice on how to proceed on this issue? |
@s0undt3ch Still looking for guidance on this issue. |
@s0undt3ch This seems to be a Windows-specific issue. Any thoughts? |
@twangboy: Given the last comment, is this something you could provide insight into? |
So what machine is this coming from? Is that your pylint from a local run? |
Yes, this is from running PyLint on my local Windows workstation. |
Im not sure how related it is, but I suppose a few things along with the info in the traceback; We currently support 3.8 for Window's, however we run tests against 3.7 and I personally use 3.6 for many other compatibility issues, so potentially trying another version of Python, which can be pretty quick on Windows. Also, I read through the traceback and it doesn't appear to be going into any Salt code. Was this pylint you're running from our ci pre-commit stuff? Or anything related to salt? |
I have also tested this with Python 3.6 and got the same result. This is not an error with Salt product, it is an error with the salt-pylint (this repository). The Salt product code includes a
|
🤦 of course, apologies. Was too quick to not notice the repo it was pulled under. Okay, with that being said - let me pull this repo down, give it a go and see what I can tinker with. |
@xeacott Any update on this? |
1 similar comment
@xeacott Any update on this? |
Yes! No excuse for not getting back earlier. So I've reproduced this on window's as well as have a fix. I've tested on Ubuntu that is isn't breaking anything either. But before I can consider it fixed I need ask Pedro if the fix is correct.
|
In fact, let me open a PR with the change (its just removing the .path call) and we can take the conversation there. |
This was fixed by #44 |
@s0undt3ch is this change already included in the saltstack/salt repo? I dont think it is. If I'm not mistaken the saltpylint version to be used in saltstack/salt is defined in https://github.com/saltstack/salt/blob/29743902636fcc2b57d67e9e8dde180c550d49f2/requirements/static/ci/lint.in#L1-L6 Since this fix was added after the v2020.9.28 release the error still occurs on windows. Could you bump the version and update the reference in the saltstack/salt repo? |
Thank you for the reminder |
Pylint is failing with a stack trace:
The text was updated successfully, but these errors were encountered: