Open cap-102 opened 1 year ago
can you show the logs for when you run reflex init --loglevel debug
?
can you show the logs for when you run
reflex init --loglevel debug
?
E:\myfiles\proj\eduRoll\Base>reflex init --loglevel debug
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Scripts\reflex.exe\__main__.py", line 4, in <module>
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\__init__.py", line 8, in <module>
from . import el as el
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\el\__init__.py", line 3, in <module>
from .elements import *
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\el\elements\__init__.py", line 4, in <module>
from reflex.el.element import Element
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\el\element.py", line 5, in <module>
from reflex.components.component import Component
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\__init__.py", line 4, in <module>
from .base import Script
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\base\__init__.py", line 3, in <module>
from .body import Body
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\base\body.py", line 3, in <module>
from reflex.components.component import Component
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\component.py", line 11, in <module>
from reflex.base import Base
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\base.py", line 7, in <module>
from pydantic.fields import ModelField
ImportError: cannot import name 'ModelField' from 'pydantic.fields' (C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\fields.py)
mm, can you show the version of pydantic youre running?
(pip freeze | findstr "pydantic"
with command prompt or pip freeze | Select-String "pydantic"
with powershell), I suspect you may be running a version that's incompatible with reflex.
Its highly recommended to run reflex in a virtual env, which should resolve cases like this, where there may be conflicting dependencies
mm, can you show the version of pydantic youre running? (
pip freeze | findstr "pydantic"
with command prompt orpip freeze | Select-String "pydantic"
with powershell), I suspect you may be running a version that's incompatible with reflex. Its highly recommended to run reflex in a virtual env, which should resolve cases like this, where there may be conflicting dependencies
PS C:\Windows\system32> pip freeze | Select-String "pydantic"
pydantic==2.3.0
pydantic_core==2.6.3
also, I've tryed using venv before, but its also don't worked. Output:
(venv) E:\myfiles\proj\eduRoll\Base>reflex init --loglevel debug
Info: Overriding config value username with env var USERNAME=speed
βββββββββββββββββββββββββββββββββββββββββββββββββββββ System Info ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Debug: Config file:
'C:\\Users\\speed\\OneDrive\\Desktop\\projects\\eduRoll\\venv\\Lib\\site-packages\\reflex\\config.py'
Debug: Config: app_name='eduRoll' loglevel=<LogLevel.INFO: 'info'> frontend_port=3000 backend_port=8000
api_url='http://localhost:8000' deploy_url='http://localhost:3000' backend_host='0.0.0.0' db_url='sqlite:///reflex.db'
redis_url=None telemetry_enabled=True bun_path='C:\\Users\\speed\\AppData\\Local\\reflex\\.bun\\bin\\bun'
cors_allowed_origins=['*'] tailwind=None timeout=120 next_compression=True event_namespace=None frontend_packages=[]
rxdeploy_url=None username='speed'
Debug: Running command:
['C:\\Users\\speed\\AppData\\Local\\reflex\\fnm\\node-versions\\v18.17.0\\installation\\node.exe', '-v']
Debug: [Reflex 0.2.6 with Python 3.11.5 (PATH:
C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Scripts\python.exe)]
Debug: [Node None (Expected: 18.17.0)
(PATH:C:\Users\speed\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\node.exe)]
Debug: [FNM 1.35.1 (Expected: 1.35.1) (PATH: C:\Users\speed\AppData\Local\reflex\fnm\fnm.exe)]
Debug: [OS Windows 10.0.22621]
Debug: Using package installer at: C:\Users\speed\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\npm
Debug: Using package executer at: C:\Users\speed\AppData\Local\reflex\fnm\node-versions\v18.17.0\installation\npm
ββββββββββββββββββββββββββββββββββββββββββββββββββ Initializing Base βββββββββββββββββββββββββββββββββββββββββββββββββββ
Debug: Skipping bun installation on Windows.
Debug: Running command: ['powershell', '-Command', '& "C:\\Users\\speed\\AppData\\Local\\reflex\\fnm\\fnm.exe" install
18.17.0 --fnm-dir "C:\\Users\\speed\\AppData\\Local\\reflex\\fnm"']
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Scripts\reflex.exe\__main__.py", line 7, in <module>
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\typer\main.py", line 214, in __call__
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\click\core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\typer\main.py", line 532, in wrapper
return callback(**use_params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\reflex\reflex.py", line 75, in init
prerequisites.initialize_frontend_dependencies()
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\reflex\utils\prerequisites.py", line 478, in initialize_frontend_dependencies
processes.run_concurrently(install_node, install_bun)
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\reflex\utils\processes.py", line 165, in run_concurrently
task.result()
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\_base.py", line 401, in __get_result
raise self._exception
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\reflex\utils\prerequisites.py", line 314, in install_node
process = processes.new_process(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\OneDrive\Desktop\projects\eduRoll\venv\Lib\site-packages\reflex\utils\processes.py", line 145, in new_process
return fn(args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] ΠΠ΅ ΡΠ΄Π°Π΅ΡΡΡ Π½Π°ΠΉΡΠΈ ΡΠΊΠ°Π·Π°Π½Π½ΡΠΉ ΡΠ°ΠΉΠ»
We don't support Pydantic v2.0 yet - we have an issue to add this: https://github.com/reflex-dev/reflex/issues/1539
Can you try downgrading for now?
with pydantic 1.10 I got same error, and with pydantic 1.8 got this:
C:\Users\speed\OneDrive\Desktop\projects\eduRoll>reflex init
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Scripts\reflex.exe\__main__.py", line 4, in <module>
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\__init__.py", line 8, in <module>
from . import el as el
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\el\__init__.py", line 3, in <module>
from .elements import *
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\el\elements\__init__.py", line 4, in <module>
from reflex.el.element import Element
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\el\element.py", line 5, in <module>
from reflex.components.component import Component
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\__init__.py", line 7, in <module>
from .datadisplay import *
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\datadisplay\__init__.py", line 4, in <module>
from .code import Code, CodeBlock
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\datadisplay\code.py", line 6, in <module>
from reflex.components.forms import Button
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\forms\__init__.py", line 5, in <module>
from .colormodeswitch import (
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\forms\colormodeswitch.py", line 22, in <module>
from reflex.components.layout.cond import Cond, cond
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\layout\__init__.py", line 7, in <module>
from .cond import Cond, cond
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\layout\cond.py", line 13, in <module>
class Cond(Component):
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\layout\cond.py", line 20, in Cond
comp1: Component = Fragment.create()
^^^^^^^^^^^^^^^^^
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\component.py", line 384, in create
return cls(children=children, **props)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\reflex\components\component.py", line 115, in __init__
super().__init__(**initial_kwargs)
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\main.py", line 404, in __init__
values, fields_set, validation_error = validate_model(__pydantic_self__.__class__, data)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\main.py", line 1040, in validate_model
v_, errors_ = field.validate(value, values, loc=field.alias, cls=cls_)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\speed\AppData\Local\Programs\Python\Python311\Lib\site-packages\pydantic\fields.py", line 699, in validate
raise ConfigError(
pydantic.errors.ConfigError: field "children" not yet prepared so type is still a ForwardRef, you might need to call Fragment.update_forward_refs().
Hi, same issue here. I'm trying to run reflex on my Windows 10 x64. I'm using Anaconda for the virtual environment. Here's the bug I got from the log:
(web_LL) C:\Users\USUARIO\python_web\python_web>reflex init --loglevel debug
ββββββββββββββββββββββββββββββββββββ System Info βββββββββββββββββββββββββββββββββββββ
Debug: Config file:
'C:\\Users\\USUARIO\\anaconda3\\envs\\web_LL\\Lib\\site-packages\\reflex\\config.py'
Debug: Config: app_name='python_web' loglevel=<LogLevel.INFO: 'info'>
frontend_port=3000 frontend_path='' backend_port=8000 api_url='http://localhost:8000'
deploy_url='http://localhost:3000' backend_host='0.0.0.0' db_url='sqlite:///reflex.db'
redis_url=None telemetry_enabled=True
bun_path='C:\\Users\\USUARIO\\AppData\\Local\\reflex\\bun\\bin\\bun'
cors_allowed_origins=['*'] tailwind={} timeout=120 next_compression=True
event_namespace=None frontend_packages=[]
cp_backend_url='https://rxcp-prod-control-plane.fly.dev'
cp_web_url='https://control-plane.reflex.run'
gunicorn_worker_class='uvicorn.workers.UvicornH11Worker'
Debug: Running command: ['C:\\Users\\USUARIO\\anaconda3\\envs\\web_LL\\node.EXE',
'-v']
Debug: Running command: ['C:\\Users\\USUARIO\\AppData\\Local\\reflex\\fnm\\fnm.exe',
'--version']
Debug: [Reflex 0.3.10 with Python 3.11.7 (PATH:
C:\Users\USUARIO\anaconda3\envs\web_LL\python.exe)]
Debug: [Node 18.18.2 (Expected: 18.17.0)
(PATH:C:\Users\USUARIO\anaconda3\envs\web_LL\node.EXE)]
Debug: [FNM 1.35.1 (Expected: 1.35.1) (PATH:
C:\Users\USUARIO\AppData\Local\reflex\fnm\fnm.exe)]
Debug: [OS Windows 10.0.19045]
Debug: Using package installer at: C:\Users\USUARIO\anaconda3\envs\web_LL\npm.cmd
Debug: Using package executer at: C:\Users\USUARIO\anaconda3\envs\web_LL\npm.cmd
ββββββββββββββββββββββββββββββ Initializing python_web βββββββββββββββββββββββββββββββ
Debug: Skipping bun installation on Windows.
Debug: Running command: ['powershell', '-Command', '&
"C:\\Users\\USUARIO\\AppData\\Local\\reflex\\fnm\\fnm.exe" install 18.17.0 --fnm-dir
"C:\\Users\\USUARIO\\AppData\\Local\\reflex\\fnm"']
Traceback (most recent call last):
File "<frozen runpy>", line 198, in _run_module_as_main
File "<frozen runpy>", line 88, in _run_code
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Scripts\reflex.exe\__main__.py", line 7, in <module>
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\main.py", line 328, in __call__
raise e
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\main.py", line 311, in __call__
return get_command(self)(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\core.py", line 778, in main
return _main(
^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\core.py", line 216, in _main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\main.py", line 683, in wrapper
return callback(**use_params) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\reflex.py", line 127, in init
_init(name, template, loglevel)
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\reflex.py", line 98, in _init
prerequisites.initialize_frontend_dependencies()
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\prerequisites.py", line 872, in initialize_frontend_dependencies
processes.run_concurrently(install_node, install_bun)
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\processes.py", line 199, in run_concurrently
with run_concurrently_context(*fns):
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\contextlib.py", line 144, in __exit__
next(self.gen)
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\processes.py", line 186, in run_concurrently_context
task.result()
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\concurrent\futures\_base.py", line 449, in result
return self.__get_result()
^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\concurrent\futures\_base.py", line 401, in __get_result
raise self._exception
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\concurrent\futures\thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\prerequisites.py", line 562, in install_node
process = processes.new_process(
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\processes.py", line 150, in new_process
return fn(args, **kwargs)
^^^^^^^^^^^^^^^^^^
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\subprocess.py", line 1026, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado
Hi, same issue here. I'm trying to run reflex on my Windows 10 x64. I'm using Anaconda for the virtual environment. Here's the bug I got from the log:
(web_LL) C:\Users\USUARIO\python_web\python_web>reflex init --loglevel debug ββββββββββββββββββββββββββββββββββββ System Info βββββββββββββββββββββββββββββββββββββ Debug: Config file: 'C:\\Users\\USUARIO\\anaconda3\\envs\\web_LL\\Lib\\site-packages\\reflex\\config.py' Debug: Config: app_name='python_web' loglevel=<LogLevel.INFO: 'info'> frontend_port=3000 frontend_path='' backend_port=8000 api_url='http://localhost:8000' deploy_url='http://localhost:3000' backend_host='0.0.0.0' db_url='sqlite:///reflex.db' redis_url=None telemetry_enabled=True bun_path='C:\\Users\\USUARIO\\AppData\\Local\\reflex\\bun\\bin\\bun' cors_allowed_origins=['*'] tailwind={} timeout=120 next_compression=True event_namespace=None frontend_packages=[] cp_backend_url='https://rxcp-prod-control-plane.fly.dev' cp_web_url='https://control-plane.reflex.run' gunicorn_worker_class='uvicorn.workers.UvicornH11Worker' Debug: Running command: ['C:\\Users\\USUARIO\\anaconda3\\envs\\web_LL\\node.EXE', '-v'] Debug: Running command: ['C:\\Users\\USUARIO\\AppData\\Local\\reflex\\fnm\\fnm.exe', '--version'] Debug: [Reflex 0.3.10 with Python 3.11.7 (PATH: C:\Users\USUARIO\anaconda3\envs\web_LL\python.exe)] Debug: [Node 18.18.2 (Expected: 18.17.0) (PATH:C:\Users\USUARIO\anaconda3\envs\web_LL\node.EXE)] Debug: [FNM 1.35.1 (Expected: 1.35.1) (PATH: C:\Users\USUARIO\AppData\Local\reflex\fnm\fnm.exe)] Debug: [OS Windows 10.0.19045] Debug: Using package installer at: C:\Users\USUARIO\anaconda3\envs\web_LL\npm.cmd Debug: Using package executer at: C:\Users\USUARIO\anaconda3\envs\web_LL\npm.cmd ββββββββββββββββββββββββββββββ Initializing python_web βββββββββββββββββββββββββββββββ Debug: Skipping bun installation on Windows. Debug: Running command: ['powershell', '-Command', '& "C:\\Users\\USUARIO\\AppData\\Local\\reflex\\fnm\\fnm.exe" install 18.17.0 --fnm-dir "C:\\Users\\USUARIO\\AppData\\Local\\reflex\\fnm"'] Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\USUARIO\anaconda3\envs\web_LL\Scripts\reflex.exe\__main__.py", line 7, in <module> File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\main.py", line 328, in __call__ raise e File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\main.py", line 311, in __call__ return get_command(self)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\core.py", line 778, in main return _main( ^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\core.py", line 216, in _main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\click\core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\typer\main.py", line 683, in wrapper return callback(**use_params) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\reflex.py", line 127, in init _init(name, template, loglevel) File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\reflex.py", line 98, in _init prerequisites.initialize_frontend_dependencies() File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\prerequisites.py", line 872, in initialize_frontend_dependencies processes.run_concurrently(install_node, install_bun) File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\processes.py", line 199, in run_concurrently with run_concurrently_context(*fns): File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\contextlib.py", line 144, in __exit__ next(self.gen) File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\processes.py", line 186, in run_concurrently_context task.result() File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\concurrent\futures\_base.py", line 449, in result return self.__get_result() ^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\concurrent\futures\_base.py", line 401, in __get_result raise self._exception File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\concurrent\futures\thread.py", line 58, in run result = self.fn(*self.args, **self.kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\prerequisites.py", line 562, in install_node process = processes.new_process( ^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\site-packages\reflex\utils\processes.py", line 150, in new_process return fn(args, **kwargs) ^^^^^^^^^^^^^^^^^^ File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "C:\Users\USUARIO\anaconda3\envs\web_LL\Lib\subprocess.py", line 1538, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado
Does it work if you use a different virtual environment (venv[python -m venv venv
] , pyenv, etc )?
Hi, nope, I first tried it using venv but I got that error, then I tried using Anaconda
so ok where is init script located i look on this @picklelo
@danik292 It's within the reflex.py
in the _init
function here: https://github.com/reflex-dev/reflex/blob/main/reflex/reflex.py#L64
@picklelo thx
Describe the bug Can't run reflex init
To Reproduce Steps to reproduce the behavior:
Expected behavior working reflex init command
Screenshots console log provided
Specifics (please complete the following information):
Additional context
REF-1944