You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ubuntu 22.04, Python 3.10.
Had a lot of pip conflicts but resolved them all except for conflict with nicegui being globally installed, but am guessing this shouldn't matter. Attempting to get started with tutorial failed:
(venv) > reflex init
Traceback (most recent call last):
File "/home/martin/.local/bin/reflex", line 5, in <module>
from reflex.reflex import cli
File "/home/martin/.local/lib/python3.10/site-packages/reflex/reflex.py", line 18, in <module>
from reflex.custom_components.custom_components import custom_components_cli
File "/home/martin/.local/lib/python3.10/site-packages/reflex/custom_components/custom_components.py", line 23, in <module>
from reflex.utils.pyi_generator import PyiGenerator
File "/home/martin/.local/lib/python3.10/site-packages/reflex/utils/pyi_generator.py", line 26, in <module>
from reflex.components.component import Component
File "/home/martin/.local/lib/python3.10/site-packages/reflex/components/__init__.py", line 4, in <module>
from . import lucide
File "/home/martin/.local/lib/python3.10/site-packages/reflex/components/lucide/__init__.py", line 3, in <module>
from .icon import Icon
File "/home/martin/.local/lib/python3.10/site-packages/reflex/components/lucide/icon.py", line 3, in <module>
from reflex.components.component import Component
File "/home/martin/.local/lib/python3.10/site-packages/reflex/components/component.py", line 24, in <module>
import reflex.state
File "/home/martin/.local/lib/python3.10/site-packages/reflex/state.py", line 56, in <module>
from reflex.utils import console, format, prerequisites, types
File "/home/martin/.local/lib/python3.10/site-packages/reflex/utils/prerequisites.py", line 32, in <module>
from reflex import constants, model
File "<frozen importlib._bootstrap>", line 1075, in _handle_fromlist
File "/home/martin/.local/lib/python3.10/site-packages/reflex/__init__.py", line 224, in __getattr__
module = importlib.import_module(_MAPPING[name])
File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "/home/martin/.local/lib/python3.10/site-packages/reflex/model.py", line 136, in <module>
class Model(Base, sqlmodel.SQLModel):
TypeError: metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
(venv) >
Spent some time looking up metaclasses, and inheritance conflicts, but it appears I would have to define a new metaclass in the library to resolve the conflict with sqlmodel, and this can't be the best way to proceed to just getting started with reflex. Any suggestions? Thanks.
The text was updated successfully, but these errors were encountered:
Ubuntu 22.04, Python 3.10.
Had a lot of pip conflicts but resolved them all except for conflict with nicegui being globally installed, but am guessing this shouldn't matter. Attempting to get started with tutorial failed:
Spent some time looking up metaclasses, and inheritance conflicts, but it appears I would have to define a new metaclass in the library to resolve the conflict with sqlmodel, and this can't be the best way to proceed to just getting started with reflex. Any suggestions? Thanks.
The text was updated successfully, but these errors were encountered: