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

Cant run gui.py #423

Open
VillivnarXD opened this issue Jun 20, 2024 · 2 comments
Open

Cant run gui.py #423

VillivnarXD opened this issue Jun 20, 2024 · 2 comments

Comments

@VillivnarXD
Copy link

VillivnarXD commented Jun 20, 2024

Traceback (most recent call last):
File "c:\ \Tkinter-Designer-1.0.7\gui\gui.py", line 13, in
from tkdesigner.designer import Designer
File "C: \Tkinter-Designer-1.0.7\tkdesigner\designer.py", line 1, in
import tkdesigner.figma.endpoints as endpoints
File "C: \Tkinter-Designer-1.0.7\tkdesigner\figma\endpoints.py", line 3, in
import requests
ModuleNotFoundError: No module named 'requests'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\ \Tkinter-Designer-1.0.7\gui\gui.py", line 15, in
raise RuntimeError("Couldn't add tkdesigner to the PATH.")
RuntimeError: Couldn't add tkdesigner to the PATH.

@VillivnarXD VillivnarXD changed the title Cant run gui Cant run gui.py Jun 20, 2024
@VillivnarXD
Copy link
Author

VillivnarXD commented Jun 21, 2024

I can run it now but this error occurs at the end of making the figma gui

Traceback (most recent call last):
File "C:\Users\ \AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "c:\Users Downloads\Tkinter-Designer-master\gui\gui.py", line 72, in btn_clicked
designer.design()
File "C:\Users\ Downloads\Tkinter-Designer-master\tkdesigner\designer.py", line 32, in design
code = self.to_code()
File "C:\Users\ \Downloads\Tkinter-Designer-master\tkdesigner\designer.py", line 23, in to_code
raise Exception("Frame not found in figma file or is empty")

File "C:\Users\\Downloads\Tkinter-Designer-master\tkdesigner\designer.py", line 21, in to_code
frame = Frame(f, self.figma_file, self.output_path, self.frameCounter)

File "C:\Users\Downloads\Tkinter-Designer-master\tkdesigner\figma\frame.py", line 29, in init
self.elements = [
File "C:\Users\if\Downloads\Tkinter-Designer-master\tkdesigner\figma\frame.py", line 30, in
self.create_element(child)
File "C:\Users\f\Downloads\Tkinter-Designer-master\tkdesigner\figma\frame.py", line 93, in create_element
download_image(image_url, image_path)
File "C:\Users\Kashif\Downloads\Tkinter-Designer-master\tkdesigner\utils.py", line 20, in download_image
response = requests.get(url)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Users\K\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 528, in request
prep = self.prepare_request(req)
File "C:\Users\f\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\sessions.py", line 456, in prepare_request
p.prepare(
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\site-packages\requests\models.py", line 316, in prepare
self.prepare_url(url, params)
File "C:\Users\AppData\Local\Programs\Python\Python310\lib\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:\Users\f\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py", line 1921, in call
return self.func(*args)
File "c:\Users\Downloads\Tkinter-Designer-master\gui\gui.py", line 72, in btn_clicked
designer.design()
File "C:\Users\Downloads\Tkinter-Designer-master\tkdesigner\designer.py", line 32, in design
code = self.to_code()
File "C:\Users\Downloads\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

@MyroslavMay
Copy link

Frame not found in figma file or is empty!

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

2 participants