-
Notifications
You must be signed in to change notification settings - Fork 54
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
With latest numpy update, generates an error on initialization #53
Comments
+1 |
Maybe as simple as this? #58 |
ValueError on numpy==1.24.1
|
Same thing here :( |
Same thing (tzwhere 3.0.3, numpy 3.24). When trying to downgrade numpy, it fails because it doesn't support Python 3.10 :( |
hi @ostapkostyk , check the #58 |
If you're like me, and you're disappointed by a fundamental issue not being solve in three years, just use the alternative: https://github.com/jannikmi/timezonefinder Note: I'm not affiliated with |
Using numpy 1.19.2 (I don't believe this occurred with 1.17.*), tzwhere 3.0.3, on initialization get the following error:
/usr/local/lib/python3.8/dist-packages/numpy/core/_asarray.py:83: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
return array(a, dtype, copy=False, order=order)
This obviously happens on the "WRAP(polys)" calls on lines 62 and 65.
If I comment out the "import numpy" section and declare WRAP and COLLECTION_TYPE as tuples, then quite obviously this error goes away.
The text was updated successfully, but these errors were encountered: