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

Trello clone example #2486

Closed
ronnydemeyerAM opened this issue Jan 25, 2024 · 3 comments
Closed

Trello clone example #2486

ronnydemeyerAM opened this issue Jan 25, 2024 · 3 comments
Labels
status: awaiting response Further information is requested

Comments

@ronnydemeyerAM
Copy link

Trello clone example not working

I'm learning python in evening school and i wanted to follow your Trello clone example
I copied the codes for the first 4 files and already have trouble.

In main.py "TrelloApp" is unknown, i added:

from app_bar import TrelloApp

Running this already gives an error:

"""
C:\Users\SIDDMRO.conda\envs\am2311_serverx\python.exe \ampythonbelgium\Jobs\COO\apps\trello_clone\src\main.py
Unhandled error processing page session e5c7dd52-f539-49c5-9706-215777c8e5f0: Traceback (most recent call last):
File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_runtime\app.py", line 359, in on_session_created
session_handler(page)
File "\ampythonbelgium\Jobs\COO\apps\trello_clone\src\main.py", line 15, in main
page.add(app)
File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\page.py", line 300, in add
r = self.__update(self)
^^^^^^^^^^^^^^^^^^^
File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\page.py", line 411, in __update
commands, added_controls, removed_controls = self.__prepare_update(*controls)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\page.py", line 433, in __prepare_update
control.build_update_commands(
File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\control.py", line 374, in build_update_commands
ctrl.build_update_commands(
File "C:\Users\SIDDMRO.conda\envs\am2311_serverx\Lib\site-packages\flet_core\control.py", line 386, in build_update_commands
innerCmds = ctrl._build_add_commands(
^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'TrelloApp' object has no attribute '_build_add_commands'
"""

Operating system = Windows 11

@Joerki
Copy link

Joerki commented Apr 27, 2024

Hi @RonnyDeMeyer,

I also looked for that and found the example here:

https://github.com/flet-dev/examples

But also that code is deprecated. Let's hope that the example gets a fix for stable release 1.0:

flet-dev/examples#115

@abdulkuddusa4
Copy link

when will 1.0 release

@ndonkoHenri
Copy link
Collaborator

Can you please give the code another try? It has been updated.

@ndonkoHenri ndonkoHenri added the status: awaiting response Further information is requested label Jun 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: awaiting response Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants