TelegramTools / TLImporter

📲 Telegram Chat Importer: Import chats from WhatsApp or other services into Telegram
GNU Affero General Public License v3.0
127 stars 11 forks source link

install crashes #13

Closed mahlonzehr closed 4 years ago

mahlonzehr commented 4 years ago

I downloaded the zip file, extracted, and double clicked on the .exe files. A dialogue window briefly opens, then crashes. Any help is appreciated!

ferferga commented 4 years ago

@mahlonzehr Open a cmd window and drag and drop the executable there. Press enter to run it and paste the output.

mahlonzehr commented 4 years ago

Microsoft Windows [Version 6.3.9600] (c) 2013 Microsoft Corporation. All rights reserved.

C:\Windows\system32>\Mac\Home\Downloads\TLImporter-3.0.4\TLImporter.exe Traceback (most recent call last): File "TLImporter.py", line 68, in File "site-packages\telethon\telegram_client.py", line 190, in init File "site-packages\telethon\telegram_bare_client.py", line 94, in init File "site-packages\telethon\sessions\sqlite.py", line 54, in init File "site-packages\telethon\sessions\sqlite.py", line 251, in _cursor sqlite3.OperationalError: unable to open database file [6876] Failed to execute script TLImporter

C:\Windows\system32>

mahlonzehr commented 4 years ago

Thanks for your help! Is that what you needed?

ferferga commented 4 years ago

@mahlonzehr Do you have writing permissions in the directory where you're running it?

mahlonzehr commented 4 years ago

@mahlonzehr Do you have writing permissions in the directory where you're running it?

I'm not exactly sure what you mean… this computer is my personal laptop so can set the permissions however they need to be set...

ferferga commented 4 years ago

@mahlonzehr You aren't because, from the traceback, it seems that you're running this in a Mac using Bootcamp. You need to run the script using the Mac's Python interpreter, instead of the .exe.

Or, use a full Virtual Machine running in VirtualBox instead of a BootCamp system.

Or place the script in a Windows directory inside Bootcamp.

I never used Mac as my daily driver, so I don't know how to help really. You must diagnose this yourself. Basically, the problem is that TLImporter can't write the temporary files it needs.

mahlonzehr commented 4 years ago

Ok I did try to run the Python file in the bin folder… It opens a dialogue box saying the file's encoding is invalid for Python 3.x. I click ok, and it opens another dialogue box, I click ok again, and it opens a third and final dialogue box. I'll attach the screenshots.

Box 1

Box 2

Box 3

mahlonzehr commented 4 years ago

You are correct, this is a Mac running Bootcamp...

mahlonzehr commented 4 years ago

I was able to get the install to go through running directly inside bootcamp. Thanks!

ferferga commented 4 years ago

@mahlonzehr Great news! Closing this!