-
Notifications
You must be signed in to change notification settings - Fork 60
update wrapt version #882
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
update wrapt version #882
Conversation
running into an error importing `numpy.core.multiarray` in the python 3.9 tests, so hoping this will resolve it (without breaking other things...)
Looks like numpy 1.22 loses python 3.7 support, so let's give the minor version bump a try instead 🤷
|
@tweddielin -- seems like good news/bad news... apparently bumping the numpy version up to 1.22.1 fixes the python 3.9 error we've been getting here but at the expense of losing python 3.7 support. That's not ideal since I think many of our current projects have been using python 3.7, but we certainly want to be able to work with newer postgres versions. I guess the other potential direction here is to remove the wrapt dependency entirely and try to implement the BTW, converting the PR to a draft for the time being since I've been playing with the python version support... |
|
Ok -- here's another option: using environment markers to specify different numpy versions for different python versions. I don't think this is a great long-term solution, but maybe a reasonable bandaid to get things working until we're ready to let go of python 3.7 support? |
|
@shaycrk looks like all tests pass with matplotlib removal from conftest.py |
|
Thanks @tweddielin -- makes sense. Should we try switching back to the single version of numpy in that case? |
|
Hmmm... looks like with the uniform version of numpy, we still get the same error, even with removing the matplotlib import in conftest.py: Looks like it's now running into a matplotlib import issue in |
|
@shaycrk looks like updating matplotlib to 3.3.4 works |
|
Interesting -- thanks @tweddielin! Strange that it was causing that problem, but glad that works and can avoid the divergent numpy versions! |
|
Just tested with a fresh ec2 instance and appears to work with both python 3.7 and 3.8 across postgres 11, 12, and 13. What's confusing is that I'm now getting the pickling error with triage 5.0.0 (wrapt 1.12.1) and postgres 11.12 (the same version as our main database), which wasn't happening before in this testing and we haven't seen with other projects... Regardless, the wrapt update seems like it solves this problem, so we should probably go ahead and pull it in and tag a bugfix version. Changing back to a standard PR for review. |
|
@shaycrk When you assigned it to me did you intend for me to merge it once I approve? |
|
Thanks @thcrock! Either way is fine with me -- I'll go ahead and merge it now and tag a version for pypi. |
Upgrade
wraptpackage to 1.13.3 to fix the issue #863.