Numpy unicode data type removal impacts pandavro library

Hi Everyone,

I am working on python Version upgrade project from 3.7 to 3.11
In most of the python scripts i am using numpy and pandavro libraries. when i upgrade numpy version to 2.0.0 and pandavro 1.8.0 i am getting np.unicode_ deprecated use np.str_ error in the import statement.
If i downgrade numpy version to 1.26.4 I don’t get this error while importing pandavro.
This is because pandavro__init__.py script uses np.unicode_ type for avro data type conversion.
Any suggestion when unicode data type will be replaced with str in pandavro init script?
Any suggestion on how to fix this rather than downgrading numpy Verison

numpy 2.0 was a major release that came out fairly recently–it can take some time until libraries have adapted to it. It looks like pandavro has an open issue for this, created a month ago: Add support for numpy 2.0 #56

1 Like

ok thank you @jamestwebber for sharing the issue link. I will watch for this fix.