-
-
Notifications
You must be signed in to change notification settings - Fork 783
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
ERROR : Frame not found (BUT FRAME IS THERE) #377
Comments
I had the same issue, but i resolved the issue. |
I am having the same issue and only downloaded yesterday 12/3/24. Creating Element { name: image, type: rectangle } During handling of the above exception, another exception occurred: Traceback (most recent call last): |
I am Having the Same Error
like this, Please tell me if there's any solutions |
I have created a Design file in Figma, following the steps of the Element Guide as described in https://github.com/ParthJadhav/Tkinter-Designer/blob/master/docs/instructions.md
The created page (File URL) is https://www.figma.com/file/dL344FdpJakjdUg4kEHz6X/iMagine?type=design&node-id=0%3A1&mode=design&t=OpdSedRuJcmGgr19-1
I give this and my Token ID in 'gui.py' AND IT STARTS TO CREATE THE ELEMENTS BUT it gives this error : Frame not found in figma file or is empty
Here is the full error:
`PS D:\Tkinter-Designer-master> & "D:/Users/Computer Hub/AppData/Local/Programs/Python/Python312/python.exe" d:/Tkinter-Designer-master/gui/gui.py
Creating Element { name: button, type: rectangle }
Exception in Tkinter callback
Traceback (most recent call last):
File "D:\Tkinter-Designer-master\tkdesigner\designer.py", line 21, in to_code
frame = Frame(f, self.figma_file, self.output_path, self.frameCounter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Tkinter-Designer-master\tkdesigner\figma\frame.py", line 30, in init
self.create_element(child)
File "D:\Tkinter-Designer-master\tkdesigner\figma\frame.py", line 51, in create_element
download_image(image_url, image_path)
File "D:\Tkinter-Designer-master\tkdesigner\utils.py", line 23, in download_image
im = im.resize((im.size[0] // 2, im.size[1] // 2), Image.ANTIALIAS)
^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\Users\Computer Hub\AppData\Local\Programs\Python\Python312\Lib\tkinter_init_.py", line 1948, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "d:\Tkinter-Designer-master\gui\gui.py", line 72, in btn_clicked
designer.design()
File "D:\Tkinter-Designer-master\tkdesigner\designer.py", line 32, in design
code = self.to_code()
^^^^^^^^^^^^^^
File "D:\Tkinter-Designer-master\tkdesigner\designer.py", line 23, in to_code
raise Exception("Frame not found in figma file or is empty")
Exception: Frame not found in figma file or is empty`
Please help me.
The text was updated successfully, but these errors were encountered: