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

Pr alpha test 0.1.33a1 #94

Closed

Conversation

milochen0418
Copy link
Contributor

@milochen0418 milochen0418 commented Jun 6, 2023

(Just for testing and put testing result on this pr page, plz don't merge)

It's still in the testing for every example code
According to the issue #55
Update requriement.txt for latest version pynecone==0.1.33a1 on PyPI

The testing task is the following.

  • chatroom --critical bug
  • clock
  • counter
  • crm
  • dalle
  • fragments
  • gpt
  • nba
  • quiz
  • sales
  • snakegame
  • todo
  • translator
  • traversal
  • twitter
  • upload

In this Alpha-testing, there are new critical bug on chatroom, clock, crm, fragments, gpt, nba, sales, snakegame , translator(See the comment), twitter

The box with the check icon is the code we have done the testing for pynecone==0.1.33a1

**We have the bugs on these example: ... **

Notes

0.1.33a1

New bugs

Old bugs

Bug solved
...

My Testing Environment

I run all example codes by the following one-line command. one-line cmd ?? doc --help

pip install -r requirements.txt && rm -f pynecone.db && rm -rf .web && for i in $(find ./ | grep __pycache__$); do rm -rf $i; done && echo -e "\033[1;92mMy Testing Environment\033[0m" && echo -e "\t"OS $(uname) $(uname -r) && echo -e "\t"Pynecone $(pc version) && echo -e "\t"$(python --version) && echo -e "\t"Node $(node --version) && echo -e "\t"Bun $(~/.bun/bin/bun --version) && pc init && pc run --loglevel=debug

And the test environment is

My Testing Environment
        OS Darwin 22.4.0
        Pynecone 0.1.33a1
        Python 3.11.3
        Node v16.8.0
        Bun 0.5.9

On my computer, my Python version is 3.11.3.
If some examples here cannot run well, you can use python 3.11.3

The related issues that have been close from these PR updating

None

@milochen0418
Copy link
Contributor Author

milochen0418 commented Jun 6, 2023

chatroom example

New Bug It cannot change nick name and cannot edit message.
The log is the following

Traceback (most recent call last):
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/state.py", line 693, in _process_event
    events = await fn(**payload)
             ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/git/py-webapp/chatroom/chatroom/chatroom.py", line 33, in nick_change
    await broadcast_nicks()
  File "/Users/milochen/git/py-webapp/chatroom/chatroom/chatroom.py", line 117, in broadcast_nicks
    await broadcast_event("state.set_nicks", payload=dict(nicks=nicks))
  File "/Users/milochen/git/py-webapp/chatroom/chatroom/chatroom.py", line 94, in broadcast_event
    update = await state._process(
             ^^^^^^^^^^^^^^^^^^^^^
TypeError: object async_generator can't be used in 'await' expression

clock example

New Bug
When the switch is not turn on, change pc.select cannot change the time on the layout
Old Bug

@picklelo
Copy link
Contributor

picklelo commented Jun 6, 2023

Got it, this feature has the yield feature to allow for multiple event returns - it changes the API of the state._process function so this is expected. We will have to update the chatroom example.

@milochen0418
Copy link
Contributor Author

CRM example

New Bug
pc run failed with the following error message

Traceback (most recent call last):
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/bin/pc", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/typer/main.py", line 532, in wrapper
    return callback(**use_params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/pc.py", line 126, in run
    app = prerequisites.get_app()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/utils/prerequisites.py", line 104, in get_app
    return __import__(module, fromlist=(constants.APP_VAR,))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/git/py-webapp/crm/crm/crm.py", line 11, in <module>
    app.compile()
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/app.py", line 417, in compile
    compiler.compile_page(
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 149, in wrapper
    path, code = fn(*args)
                 ^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 220, in compile_page
    code = _compile_page(component, state, connect_error_component)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 84, in _compile_page
    imports = utils.merge_imports(DEFAULT_IMPORTS, component.get_imports())
                                                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
    ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/navigation/link.py", line 30, in _get_imports
    return {**super()._get_imports(), **NextLink(href=self.href)._get_imports()}
                                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 157, in __init__
    raise TypeError(
TypeError: Invalid var passed for prop href, expected type pynecone.vars.Var[str], got value None of type <class 'NoneType'>.

@milochen0418
Copy link
Contributor Author

milochen0418 commented Jun 6, 2023

fragments example

New Bug
pc run failed with the following error message

Traceback (most recent call last):
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/bin/pc", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/typer/main.py", line 532, in wrapper
    return callback(**use_params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/pc.py", line 126, in run
    app = prerequisites.get_app()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/utils/prerequisites.py", line 104, in get_app
    return __import__(module, fromlist=(constants.APP_VAR,))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/git/py-webapp/fragments/fragments/fragments.py", line 60, in <module>
    app.compile()
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/app.py", line 417, in compile
    compiler.compile_page(
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 149, in wrapper
    path, code = fn(*args)
                 ^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 220, in compile_page
    code = _compile_page(component, state, connect_error_component)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 84, in _compile_page
    imports = utils.merge_imports(DEFAULT_IMPORTS, component.get_imports())
                                                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
    ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/navigation/link.py", line 30, in _get_imports
    return {**super()._get_imports(), **NextLink(href=self.href)._get_imports()}
                                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 157, in __init__
    raise TypeError(
TypeError: Invalid var passed for prop href, expected type pynecone.vars.Var[str], got value None of type <class 'NoneType'>.

@milochen0418
Copy link
Contributor Author

gpt example

New Bug
pc run failed with the following message

Traceback (most recent call last):
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/bin/pc", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/typer/main.py", line 214, in __call__
    return get_command(self)(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
         ^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1657, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/typer/main.py", line 532, in wrapper
    return callback(**use_params)  # type: ignore
           ^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/pc.py", line 126, in run
    app = prerequisites.get_app()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/utils/prerequisites.py", line 104, in get_app
    return __import__(module, fromlist=(constants.APP_VAR,))
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/git/py-webapp/gpt/gpt/gpt.py", line 245, in <module>
    app.compile()
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/app.py", line 417, in compile
    compiler.compile_page(
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 149, in wrapper
    path, code = fn(*args)
                 ^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 220, in compile_page
    code = _compile_page(component, state, connect_error_component)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/compiler/compiler.py", line 84, in _compile_page
    imports = utils.merge_imports(DEFAULT_IMPORTS, component.get_imports())
                                                   ^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in <listcomp>
    self._get_imports(), *[child.get_imports() for child in self.children]
                           ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 516, in get_imports
    self._get_imports(), *[child.get_imports() for child in self.children]
    ^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/navigation/link.py", line 30, in _get_imports
    return {**super()._get_imports(), **NextLink(href=self.href)._get_imports()}
                                        ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/Users/milochen/anaconda3/envs/pynecone-alpha-test-0-1-33a1/lib/python3.11/site-packages/pynecone/components/component.py", line 157, in __init__
    raise TypeError(
TypeError: Invalid var passed for prop href, expected type pynecone.vars.Var[str], got value None of type <class 'NoneType'>.

@milochen0418
Copy link
Contributor Author

milochen0418 commented Jun 6, 2023

nba example

New Bug
Maybe old version have the same bug too ( I still not test this bug in pc old version)

  1. nba example is halting very long time for unknown reason. but sometimes is fast
Screenshot 2023-06-06 at 11 43 43 PM
  1. Menu -> download 2D make the function of pc.select failed. the graph will not change after you change the option.
Screenshot 2023-06-06 at 11 51 44 PM

pc.select function works correctly in the normal way, but it will not work after you find Menu and click 20Dataset
What

@milochen0418
Copy link
Contributor Author

sales example

New Bug
The bottom two buttons of the onboarding page doesn't work after click.
Screenshot 2023-06-07 at 12 38 47 AM
So we cannot Submit customer and cannot go back to the home page by click the 2-lines button

But we can click the right-top to switch page.

@milochen0418
Copy link
Contributor Author

snakegame example

New Bug
Screenshot 2023-06-07 at 12 43 54 AM
When we play snakegame...
It will stop by some unknown reason. then we cannot use the page to change UI anymore.
But we can refresh page and play it again.

But you can play it to stop again soon.

@milochen0418
Copy link
Contributor Author

translator example

New Bug
The basic form cannot be used well.
Just post to translate first time.
Try to change option on pc.select but failed.
Because no any GUI change happened on pc.select component if you select another option.

I record the bug on this youtube
https://youtube.com/shorts/1_ICvEpEI44?feature=share

@milochen0418
Copy link
Contributor Author

milochen0418 commented Jun 6, 2023

twitter example

New Bug
The first time to run the app and open its URL
It show this page.
Screenshot 2023-06-07 at 1 38 32 AM
In this page, we cannot show anything when click button.

But after checking pc 0.1.32, the twitter app should go to login page in the first. I don't know why pc 0.1.33a1 cannot go to login page.
Maybe it is the only bug (in the lucky case)

@milochen0418 milochen0418 mentioned this pull request Jun 7, 2023
15 tasks
@milochen0418
Copy link
Contributor Author

Close this PR because it has upgraded to 0.1.33

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

Successfully merging this pull request may close these issues.

2 participants