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

Frontend python #2

Open
edusonros opened this issue May 7, 2024 · 1 comment
Open

Frontend python #2

edusonros opened this issue May 7, 2024 · 1 comment

Comments

@edusonros
Copy link

No description provided.

@BryanLitardo312
Copy link

Hola,

Estoy corriendo el código (reflex run) y me aparece el siguiente error al compilar:

Traceback (most recent call last):
File "", line 198, in _run_module_as_main
File "", line 88, in run_code
File "C:\Users\brodriguezl\Documents\Reflex.venv\Scripts\reflex.exe_main
.py", line 7, in
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\typer\main.py", line 326, in call
raise e
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\typer\main.py", line 309, in call
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\click\core.py", line 1157, in call
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\typer\core.py", line 723, in main
return _main(
^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\typer\core.py", line 193, in _main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\typer\main.py", line 692, in wrapper
return callback(**use_params)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\reflex.py", line 256, in run
_run(env, frontend, backend, frontend_port, backend_port, backend_host, loglevel)
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\reflex.py", line 182, in _run
prerequisites.get_compiled_app()
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\utils\prerequisites.py", line 275, in get_compiled_app
app._compile(export=export)
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\app.py", line 938, in _compile
compile_results.append(future.result())
^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\AppData\Local\Programs\Python\Python312\Lib\concurrent\futures_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\AppData\Local\Programs\Python\Python312\Lib\concurrent\futures_base.py", line 401, in __get_result
raise self._exception
File "C:\Users\brodriguezl\AppData\Local\Programs\Python\Python312\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\compiler\compiler.py", line 548, in compile_page
return compile_page(*cls.COMPILE_PAGE_ARGS_BY_ROUTE[route])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\compiler\compiler.py", line 414, in compile_page
code = _compile_page(component, state)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\compiler\compiler.py", line 123, in _compile_page
render=component.render(),
^^^^^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\components\component.py", line 914, in render
children=[child.render() for child in self.children],
^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\components\component.py", line 914, in render
children=[child.render() for child in self.children],
^^^^^^^^^^^^^^
File "C:\Users\brodriguezl\Documents\Reflex.venv\Lib\site-packages\reflex\components\base\meta.py", line 23, in render
assert len(self.children) == 1 and isinstance(
AssertionError: Title must be a single string.

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