reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Pynecone test page doesn't work (404 page) on Firefox for Linux Mint

Open EugeneSandford opened this issue 3 years ago • 9 comments

Describe the bug A clear and concise description of what the bug is.

The page is blank

To Reproduce Steps to reproduce the behavior:

  • Code/Link to Repo:

pip install pynecone-io mkdir toto_app cd toto_app pc init pc run

Expected behavior A clear and concise description of what you expected to happen.

The first html page for Pynecone

Screenshots If applicable, add screenshots to help explain your problem.

Capture d’écran du 2022-12-21 09-59-27

** Specifics (please complete the following information):**

  • Python Version: Python 3.11.0

  • Pynecone Version: 0.1.10

  • OS: Results of 'uname -a' : Linux Linux-IdeaPad 5.4.0-135-generic #152-Ubuntu SMP Wed Nov 23 20:19:22 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

  • Browser (Optional): Mozilla Firefox for Linux Mint version 107.0.1 (64 bits)

Additional context Add any other context about the problem here. Created one environement via Conda in wihich I install pynecone-io via pip 'pip install pynecone-io'

pip -- version pip 22.3.1 from /home/tif/anaconda3/envs/Pyne/lib/python3.11/site-packages/pip (python 3.11)

EugeneSandford avatar Dec 21 '22 20:12 EugeneSandford

Thanks for reporting, we will investigate. Does it work on any other browser?

Also, was there any error output on the terminal?

picklelo avatar Dec 21 '22 21:12 picklelo

Got it we mostly were testing on Ubuntu Ill have to see if I can recreate in linux mint

Alek99 avatar Dec 21 '22 22:12 Alek99

Were you getting any node/bun error aswell?

Alek99 avatar Dec 21 '22 22:12 Alek99

I don't know if this is the same issue but may be, on Ubutnu and macOS I could not use python 3.11, I needed to revert to 3.8

 File ".venv/lib/python3.11/site-packages/pynecone/state.py", line 120, in __init_subclass__
    cls._set_default_value(prop)
  File ".venv/lib/python3.11/site-packages/pynecone/state.py", line 255, in _set_default_value
    default_value = prop.get_default_value()
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/pynecone/var.py", line 626, in get_default_value
    if issubclass(type_, str):
       ^^^^^^^^^^^^^^^^^^^^^^
TypeError: issubclass() arg 1 must be a class

matt-grain avatar Dec 22 '22 00:12 matt-grain

I don't know if this is the same issue but may be, on Ubutnu and macOS I could not use python 3.11, I needed to revert to 3.8

 File ".venv/lib/python3.11/site-packages/pynecone/state.py", line 120, in __init_subclass__
    cls._set_default_value(prop)
  File ".venv/lib/python3.11/site-packages/pynecone/state.py", line 255, in _set_default_value
    default_value = prop.get_default_value()
                    ^^^^^^^^^^^^^^^^^^^^^^^^
  File ".venv/lib/python3.11/site-packages/pynecone/var.py", line 626, in get_default_value
    if issubclass(type_, str):
       ^^^^^^^^^^^^^^^^^^^^^^
TypeError: issubclass() arg 1 must be a class

Hm what's the code that causes this I can take a look

Alek99 avatar Dec 22 '22 01:12 Alek99

Thanks for reporting, we will investigate. Does it work on any other browser?

Also, was there any error output on the terminal?

Hi,

I have tested with Brave and with Google Chrome, and it works. image

It doesn't work only for Firefox.

If you want to investigate further, you will find blow a screen of my terminal.

Thanks for replying me

EugeneSandford avatar Dec 23 '22 04:12 EugeneSandford

Here is the screen : image

EugeneSandford avatar Dec 23 '22 04:12 EugeneSandford

Hi again,

For me, Python 3.11 works, at least for Google Chrome and Brave, as they have shown the default page. If it can help you.

Regards

EugeneSandford avatar Dec 23 '22 04:12 EugeneSandford

I have updated my title to 'Firefox for Linux Mint'

EugeneSandford avatar Dec 23 '22 05:12 EugeneSandford