-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
CI: Catch importwarning _SixMetaPathImporter.find_spec #48278
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wouldn't be opposed to just adding this to filterwarnings
in pyproject.toml since pandas doesn't explicitly use six
so it should be from one of the dependencies: benjaminp/six#341
Yes, definitely. Its a bit hard to find out from which one though. Just want to see if this helps. Can add to pyproject.toml afterwards |
Added to pyproject.toml, lets see if it works. Can not reproduce the warning locally |
It looks like filterwarnings does not work well together with assert_produces_warning. Could not get tests to pass locally when filtering the warning with pytest and checking for no warning |
cc @mroeschke This is greenish now. Check is ugly though |
So I did a little debugging, and the warning is coming from botocore(they vendor six), and it looks like the pinning downgraded botocore, cuasing this warning to come back. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a symptom of pinning aiobotocore(see comments in #48272)
Yeah but this is necessary, see #48272 (comment) |
I would be okay with this PR as is as a temporary fix if pinning botocore doesn't work #48291 (comment). (It is really strange behavior that a s3fs code path is being hit when it should have nothing to do with it?) I would prefer not to pin s3fs higher than our minimum version if possible (and generally not have our dep files have different pins in general). |
The thing is, this does have to do with it. The way I understand it is s3fs pins aiobotocore which pins down botocore. As I mentioned, pinning aiobotocore in the other PR is pinning down botocore to an old version that vendors an old six doesn't address the warning. So I would be -1 on this, since this ImportWarning is telling us that pinning aiobotocore was not the right move. |
S3fs is not pinning aiobotocore, but we have to pin since the old s3fs is not compatible with aiobotocore > 2.0. pinning botocore will most likely cause non solvable environments i think pinning aiobotocore is the right move here in a sense, not having a higher s3fs minimum requirement is the actual issue. The old s3fs is not compatible with 3.10 can we bump this in the rc? Or do we have to follow a certain version Schema there? |
As mentioned in #48291, I would be +1 to simply bumping |
Thx, closing in favour of #48299 |
Lets see if this helps somehow
I can't see how this could be related to our s3fs and aiobotocore pins. The following is the version diff from before and after the pin: