prabhakar267 / WA-Reader

:speech_balloon: WA Reader is a platform to read WhatsApp conversations from email text backups in a easy-to-read UI.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Python int too large to convert to C long

Sogl opened this issue · comments

Trying to load 4 mb txt export file...

Error:
image

Conversation example from file:

17.02.19, 12:28 - +7 982 111-11-11: Пётр,  ждём! Развязки
17.02.19, 12:44 - +7 905 222-22-22: Так ночью ж😂
17.02.19, 17:21 - +7 987 333-33-33: https://www.ozon.ru/context/detail/id/3562175/
17.02.19, 18:01 - +7 903 444-44-44: Она там не продается, к сожалению.
17.02.19, 18:01 - +7 903 444-44-44: Но книга та, да.
17.02.19, 18:01 - +7 903 444-44-44: Так ее и не нашли нигде полностью на русском.
17.02.19, 19:19 - ‎Ольга Р Х (МСК) добавил(-а) контакт +7 909 555-55-55
17.02.19, 19:39 - +7 909 555-55-55: Всем привет 👋🏻
17.02.19, 19:39 - Петр П (И В): Много нас
17.02.19, 19:40 - +7 910 666-66-66: 🙌
17.02.19, 19:42 - Петр П (И В): Новые люди! Напишите несколько слов о себе. Кто недавно присоединился. Кто вы и откуда вы.
17.02.19, 19:50 - +7 921 777-77-77: Здравствуйте! Я присоединилась вчера. Т.
17.02.19, 19:50 - +7 926 888-88-88: А, косметолог, мама. 
Искала  рабочие методы по о.... А так же способы лечить... В итоге я на семинаре. На 2-ой день начала з.... Сегодня 6-ой день обучения - у меня осталось... 
Счастлива оказаться в вашем пространстве 🙏🏼🙏🏼🙏🏼🌈

Same error in demo and in local server. How to fix?

I use Windows 10.

p.s. What I found in SO:
https://stackoverflow.com/questions/38314118/overflowerror-python-int-too-large-to-convert-to-c-long-on-windows-but-not-ma

953 kb text export works fine. I think this error depends on filesize (symbols/lines count or something).

@Sogl I will look into the problem, I would create a large file and see the problem is due to file size or if there is some random character in your text file that is failing.
Thanks for reporting.