Skip to content

pc run fails with Python 3.11 (but works with previous versions of python) #162

@matt-grain

Description

@matt-grain

On WSL/Ubuntu 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

Originally posted by @matt-grain in #156 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions