-
Notifications
You must be signed in to change notification settings - Fork 1.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
kaggle datasets download not working #484
Comments
Thanks for the reply. I have investigated a bit more. The error occurs at:
in The problem is that the code depends on locale or other settings for the datetime. In my environment. '%X' requires AM/PM: from datetime import datetime
import locale
datetime.strptime('10:54:39', '%X') # => Error
datetime.strptime('10:54:39 AM', '%X') # => OK
locale.getlocale() # => ('en_US', 'UTF-8')
datetime.now().strftime('%X') # => '05:16:31 PM'
My other computer MacOS Ventura, getlocal() returns (None, None) and the kaggle download works with no error. Weekday and month might also fail in other languages. from datetime import datetime
import locale
remote_date = datetime.strptime('04 Jul', '%d %b') # OK for me
locale.setlocale(locale.LC_ALL, 'it_IT.UTF-8')
remote_date = datetime.strptime('04 Jul', '%d %b') # Error July is luglio in Italian Since I am not familiar with locales, I'll leave the proper locale-independent solution to the professionals. Thanks. |
Internal bug: http://b/291578234 |
It should be fixed in https://github.com/Kaggle/kaggle-api/releases/tag/1.5.16. Let me know if that works for you now. |
Thanks! Yes, datasets download worked with 1.5.16. |
Up because this error is now back for me. |
Thanks. Nice to see someone else other than me is experiencing this error. I've opened an another issue. |
There seems to be a simple bug for
kaggle datasets download
in version 1.5.15. It worked with 1.5.13, and broken in 1.5.14 and 1.5.15.The command is given by the
Copy API Command
menu in the right top corner of the data page.The command works with 1.5.13.
Version 1.5.14 had an addition bug that does not recognize -d option, but without -d it also has the same time data error.
This does not depend on the data. I tried one more data path and get the same error.
The text was updated successfully, but these errors were encountered: