Skip to content
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

Exception: Frame not found in figma file or is empty #448

Open
Sudo-modedd opened this issue Oct 16, 2024 · 0 comments
Open

Exception: Frame not found in figma file or is empty #448

Sudo-modedd opened this issue Oct 16, 2024 · 0 comments

Comments

@Sudo-modedd
Copy link

I got this error. But i am actually have Frame, what i need to do

Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\tkdesigner\designer.py", line 21, in to_code
frame = Frame(f, self.figma_file, self.output_path, self.frameCounter)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\tkdesigner\figma\frame.py", line 29, in init
self.elements = [
^
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\tkdesigner\figma\frame.py", line 30, in
self.create_element(child)
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\tkdesigner\figma\frame.py", line 51, in create_element
download_image(image_url, image_path)
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\tkdesigner\utils.py", line 20, in download_image
response = requests.get(url)
^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\sessions.py", line 528, in request
prep = self.prepare_request(req)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\sessions.py", line 456, in prepare_request
p.prepare(
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\models.py", line 316, in prepare
self.prepare_url(url, params)
File "C:\Users\Admin\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\requests\models.py", line 390, in prepare_url
raise MissingSchema(error)
requests.exceptions.MissingSchema: Invalid URL 'None': No schema supplied. Perhaps you meant http://None?

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\tkinter_init_.py", line 1967, in call
return self.func(*args)
^^^^^^^^^^^^^^^^
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\gui\gui.py", line 72, in btn_clicked
designer.design()
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\tkdesigner\designer.py", line 32, in design
code = self.to_code()
^^^^^^^^^^^^^^
File "C:\Users\Admin\Desktop\Tkinter-Designer-1.0.7\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
1311231313

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant