-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support pandas version 2 #169
Comments
Aaand of course this is tied to #113... Trial run of our flu_upload with Python 3.10 runs into error:
|
I was able to install packages without any issues because Upgrading diff --git a/requirements.txt b/requirements.txt
index 5694eed..5964ad0 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,8 +1,10 @@
biopython >=1.73, ==1.*
boto >=2.38, ==2.*
certifi
-pandas >=1.1.5, ==1.*
+pandas[excel] >=2.0.0, <3; python_version>="3.8"
rethinkdb >=2.4.8, ==2.4.*, !=2.4.10
requests >=2.20.0, ==2.*
unidecode >=1.0.22, ==1.*
-xlrd >=1.0.0, ==1.*
+# Use Python 3.7 for tbd uploading scripts
+pandas >=1.1.5, ==1.*; python_version<"3.8"
+xlrd >=1.0.0, ==1.*; python_version<"3.8" Depending on how many issues we run into with replacing use of diff --git a/requirements.txt b/requirements.txt
index 5694eed..7cc1d7d 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1,8 +1,8 @@
biopython >=1.73, ==1.*
boto >=2.38, ==2.*
certifi
-pandas >=1.1.5, ==1.*
+pandas[excel] >=2.0.0, <3
rethinkdb >=2.4.8, ==2.4.*, !=2.4.10
requests >=2.20.0, ==2.*
unidecode >=1.0.22, ==1.*
-xlrd >=1.0.0, ==1.*
+excelrd >=3.0.0, <4 |
Thanks for digging into this @joverlee521! Stepping back a bit, a couple points:
|
Gotcha! Didn't want fauna to be a blocker here...
Yes! It might makes sense to move it out of base image since it is only used by seasonal-flu and avian-flu. It should be straightforward to point the automated GH Action workflows to use the extended image. However, it might be extra burden on users to remember to use the correct image when running things manually. |
Decoupling seems like the better option, I will write up a separate issue and link it soon. Feel free to close this one as not planned. |
In the process of nextstrain/public#12, it was noticed that pandas dependency version constraint in this repo is preventing Nextstrain runtimes from resolving to pandas version 2.
fauna/requirements.txt
Line 4 in d632af0
It's possible that the code is already compatible with pandas v2, in which case the fix is as simple as changing that line to
pandas >=1.1.5, <3
(also mentioned in nextstrain/public#12).Here are some resources for the migration:
The text was updated successfully, but these errors were encountered: