ParthJadhav / Tkinter-Designer

An easy and fast way to create a Python GUI šŸ
BSD 3-Clause "New" or "Revised" License
8.87k stars 817 forks source link

KeyError: 'document' #208

Closed aditdesai closed 4 months ago

aditdesai commented 2 years ago

Traceback (most recent call last): File "c:\users\adit\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\adit\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Adit\AppData\Local\Programs\Python\Python38-32\Scripts\tkdesigner.exe__main__.py", line 7, in File "c:\users\adit\appdata\local\programs\python\python38-32\lib\site-packages\tkdesigner\cli.py", line 71, in main designer.design() File "c:\users\adit\appdata\local\programs\python\python38-32\lib\site-packages\tkdesigner\designer.py", line 29, in design code = self.to_code() File "c:\users\adit\appdata\local\programs\python\python38-32\lib\site-packages\tkdesigner\designer.py", line 21, in to_code window_data = self.file_data["document"]["children"][0]["children"][0] KeyError: 'document'

This is the error I get when I run tkdesigner FILE_ID TOKEN

File URL: https://www.figma.com/file/1Dd7aygqhMcCRYwtinm6Oi/File-Converter?node-id=2%3A2

image

abdulkadirhuzeifa commented 2 years ago

hey @aditdesai

i see you have python installed but your running in it wrong directory mate.

open a fresh terminal or cmd and run these commands in order:

git clone https://github.com/ParthJadhav/Tkinter-Designer.git cd tkinter-designer pip3 install -r requirements.txt pip3 install tkdesigner cd tkinter-designer (optional: only if u arent still in tkinter-designer directory after the pip3 steps) cd gui python3 gui.py

ParthJadhav commented 2 years ago

@aditdesai did @AbdulkadirH5253 's comment help you? If yes, then you can close this issue.

pshiri commented 2 years ago

Hey, I am seeing this issue as well

allanjonis commented 2 years ago

Same error here.

sam31046 commented 1 year ago

Hi, I've followed those steps that @AbdulkadirH5253 mentioned above. But this error occurs when I run gui.py, not sure why: window_data = self.file_data["document"]["children"][0]["children"][0] KeyError: 'document'

Update I found I entered the wrong token.

abdulkadirhuzeifa commented 4 months ago

you did it?

On Sun, 14 Apr 2024 at 23:31, Adit Desai @.***> wrote:

Closed #208 https://github.com/ParthJadhav/Tkinter-Designer/issues/208 as completed.

ā€” Reply to this email directly, view it on GitHub https://github.com/ParthJadhav/Tkinter-Designer/issues/208#event-12461244352, or unsubscribe https://github.com/notifications/unsubscribe-auth/AX4CHOSUDRTJUWIIZQB56KTY5LRRTAVCNFSM5SLATBG2U5DIOJSWCZC7NNSXTWQAEJEXG43VMVCXMZLOORHG65DJMZUWGYLUNFXW4OZRGI2DMMJSGQ2DGNJS . You are receiving this because you were mentioned.Message ID: @.*** com>