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

AttributeError: 'NoneType' object has no attribute 'go' [Trillo app] #104

Open
Jawangana1 opened this issue Nov 23, 2023 · 1 comment
Open

Comments

@Jawangana1
Copy link

flet 0.12.1
Python 3.11
Windows
IDE vscode

I cloned the repo and run the main file and got the below error.

image

The error:

PS C:\Users\admin\trolli> & C:/Python311/python.exe c:/Users/admin/trolli/trolli/src/main.py
Unhandled error processing page session : Traceback (most recent call last):
  File "C:\Users\admin\AppData\Roaming\Python\Python311\site-packages\flet_runtime\app.py", line 363, in on_session_created
    session_handler(page)
  File "c:\Users\admin\trolli\trolli\src\main.py", line 207, in main
    app.initialize()
  File "c:\Users\admin\trolli\trolli\src\main.py", line 87, in initialize
    self.page.go("/")
    ^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'go'
@Jawangana1 Jawangana1 changed the title AttributeError: 'NoneType' object has no attribute 'go' AttributeError: 'NoneType' object has no attribute 'go' [Trillo app] Nov 23, 2023
@nosinga
Copy link

nosinga commented Dec 12, 2023

Apparently the following line causes this error

    self.page.views.clear()

line 74 in main.py

If you comment that line it works

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