qpython-android / qpython3-toolchain

qpython3-toolchain is a tools collection, helping you build QPython3's core from source code.
Do What The F*ck You Want To Public License
2 stars 3 forks source link

datetime.datetime.strptime Returns locale.error: local query fail #5

Open Haptein opened 9 years ago

Haptein commented 9 years ago

Hi, I'm getting an issue with QPython3 (Play 0.9.7) running on a Samsung Galaxy Tab Pro 10.1 Android 4.4.2

u0_a231@picassowifi:/ $ /data/data/com.hipipal.qpy3/files/bin/qpython.sh /storage/emulated/0/com.hipipal.qpyplus/scripts3/rsp.py && exit Traceback (most recent call last): File "/storage/emulated/0/com.hipipal.qpyplus/scripts3/rsp.py", line 185, in if not dt.datetime.strptime(dats[-1],'%Y/%W/%w').date().strftime('%W')==dt.date.today().strftime('%W'): File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 273, in File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 190, in init File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 72, in init File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/_strptime.py", line 31, in _getlang File "/data/data/com.hipipal.qpy3/files/lib/python3.2/python32.zip/locale.py", line 519, in getlocale locale.Error: locale query failed