reflex-dev / reflex

πŸ•ΈοΈ Web apps in pure Python 🐍
https://reflex.dev
Apache License 2.0
19.98k stars 1.15k forks source link

[REF-1944] reflex init not working #1749

Open cap-102 opened 1 year ago

cap-102 commented 1 year ago

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

(venv) C:\Users\speed\OneDrive\Desktop\projects\eduRoll>pip install reflex
Collecting reflex
  Obtaining dependency information for reflex from https://files.pythonhosted.org/packages/83/13/6262381216dfe94e0d48ac4a003ffed6835e8770b43ee0401b4f7a85a088/reflex-0.2.6-py3-none-any.whl.metadata
  Using cached reflex-0.2.6-py3-none-any.whl.metadata (10 kB)
Collecting alembic<2.0.0,>=1.11.1 (from reflex)
  Obtaining dependency information for alembic<2.0.0,>=1.11.1 from https://files.pythonhosted.org/packages/a2/8b/46919127496036c8e990b2b236454a0d8655fd46e1df2fd35610a9cbc842/alembic-1.12.0-py3-none-any.whl.metadata
  Using cached alembic-1.12.0-py3-none-any.whl.metadata (7.2 kB)
Collecting cloudpickle<3.0.0,>=2.2.1 (from reflex)
  Using cached cloudpickle-2.2.1-py3-none-any.whl (25 kB)
Collecting fastapi<0.97.0,>=0.96.0 (from reflex)
  Obtaining dependency information for fastapi<0.97.0,>=0.96.0 from https://files.pythonhosted.org/packages/f4/74/1c0c87dcf7ee0d69d383448182ca8b675d230f7329411f88067cba874ecd/fastapi-0.96.1-py3-none-any.whl.metadata
  Using cached fastapi-0.96.1-py3-none-any.whl.metadata (24 kB)
Collecting gunicorn<21.0.0,>=20.1.0 (from reflex)
  Using cached gunicorn-20.1.0-py3-none-any.whl (79 kB)
Collecting httpx<0.25.0,>=0.24.0 (from reflex)
  Obtaining dependency information for httpx<0.25.0,>=0.24.0 from https://files.pythonhosted.org/packages/ec/91/e41f64f03d2a13aee7e8c819d82ee3aa7cdc484d18c0ae859742597d5aa0/httpx-0.24.1-py3-none-any.whl.metadata
  Using cached httpx-0.24.1-py3-none-any.whl.metadata (7.4 kB)
Collecting jinja2<4.0.0,>=3.1.2 (from reflex)
  Using cached Jinja2-3.1.2-py3-none-any.whl (133 kB)
Collecting platformdirs<4.0.0,>=3.10.0 (from reflex)
  Obtaining dependency information for platformdirs<4.0.0,>=3.10.0 from https://files.pythonhosted.org/packages/14/51/fe5a0d6ea589f0d4a1b97824fb518962ad48b27cd346dcdfa2405187997a/platformdirs-3.10.0-py3-none-any.whl.metadata
  Using cached platformdirs-3.10.0-py3-none-any.whl.metadata (11 kB)
Collecting plotly<6.0.0,>=5.13.0 (from reflex)
  Obtaining dependency information for plotly<6.0.0,>=5.13.0 from https://files.pythonhosted.org/packages/26/5d/1e13b597ed8e54803e9ac6ded18c04cd35d8cbc49016778ec50c4ca9e9d5/plotly-5.16.1-py2.py3-none-any.whl.metadata
  Using cached plotly-5.16.1-py2.py3-none-any.whl.metadata (7.0 kB)
Collecting psutil<6.0.0,>=5.9.4 (from reflex)
  Using cached psutil-5.9.5-cp36-abi3-win_amd64.whl (255 kB)
Collecting pydantic<2.0.0,>=1.10.2 (from reflex)
  Obtaining dependency information for pydantic<2.0.0,>=1.10.2 from https://files.pythonhosted.org/packages/e1/6b/6a68bd4f0837accdb78cf07e8590f2c9f00334003681b94d4957424248f2/pydantic-1.10.12-cp311-cp311-win_amd64.whl.metadata
  Using cached pydantic-1.10.12-cp311-cp311-win_amd64.whl.metadata (150 kB)
Collecting python-engineio!=4.6.0 (from reflex)
  Obtaining dependency information for python-engineio!=4.6.0 from https://files.pythonhosted.org/packages/a7/66/039c705061d2f501fb837e7a0ee7bb1987560c3a14025d23c7ec7425de7b/python_engineio-4.7.0-py3-none-any.whl.metadata
  Using cached python_engineio-4.7.0-py3-none-any.whl.metadata (2.2 kB)
Collecting python-multipart<0.0.6,>=0.0.5 (from reflex)
  Using cached python_multipart-0.0.5-py3-none-any.whl
Collecting python-socketio<6.0.0,>=5.7.0 (from reflex)
  Obtaining dependency information for python-socketio<6.0.0,>=5.7.0 from https://files.pythonhosted.org/packages/2b/31/fd41960cf365177f323d8c10d774a0b017336556c6f0ba0a38403240914d/python_socketio-5.9.0-py3-none-any.whl.metadata
  Using cached python_socketio-5.9.0-py3-none-any.whl.metadata (3.2 kB)
Collecting redis<5.0.0,>=4.3.5 (from reflex)
  Obtaining dependency information for redis<5.0.0,>=4.3.5 from https://files.pythonhosted.org/packages/20/2e/409703d645363352a20c944f5d119bdae3eb3034051a53724a7c5fee12b8/redis-4.6.0-py3-none-any.whl.metadata
  Using cached redis-4.6.0-py3-none-any.whl.metadata (8.3 kB)
Collecting rich<14.0.0,>=13.0.0 (from reflex)
  Obtaining dependency information for rich<14.0.0,>=13.0.0 from https://files.pythonhosted.org/packages/8d/5f/21a93b2ec205f4b79853ff6e838e3c99064d5dbe85ec6b05967506f14af0/rich-13.5.2-py3-none-any.whl.metadata
  Using cached rich-13.5.2-py3-none-any.whl.metadata (18 kB)
Collecting sqlmodel<0.0.9,>=0.0.8 (from reflex)
  Using cached sqlmodel-0.0.8-py3-none-any.whl (21 kB)
Collecting starlette-admin<0.10.0,>=0.9.0 (from reflex)
  Obtaining dependency information for starlette-admin<0.10.0,>=0.9.0 from https://files.pythonhosted.org/packages/b3/9d/54ef790ff47b630f7173522eea7729b58e93fa56371ed5e1f3a4c22954e1/starlette_admin-0.9.0-py3-none-any.whl.metadata
  Using cached starlette_admin-0.9.0-py3-none-any.whl.metadata (7.3 kB)
Collecting typer==0.4.2 (from reflex)
  Using cached typer-0.4.2-py3-none-any.whl (27 kB)
Collecting uvicorn<0.21.0,>=0.20.0 (from reflex)
  Using cached uvicorn-0.20.0-py3-none-any.whl (56 kB)
Collecting watchdog<3.0.0,>=2.3.1 (from reflex)
  Using cached watchdog-2.3.1-py3-none-win_amd64.whl (80 kB)
Collecting watchfiles<0.20.0,>=0.19.0 (from reflex)
  Using cached watchfiles-0.19.0-cp37-abi3-win_amd64.whl (270 kB)
Collecting websockets<11.0,>=10.4 (from reflex)
  Using cached websockets-10.4-cp311-cp311-win_amd64.whl (101 kB)
Collecting click<9.0.0,>=7.1.1 (from typer==0.4.2->reflex)
  Obtaining dependency information for click<9.0.0,>=7.1.1 from https://files.pythonhosted.org/packages/00/2e/d53fa4befbf2cfa713304affc7ca780ce4fc1fd8710527771b58311a3229/click-8.1.7-py3-none-any.whl.metadata
  Using cached click-8.1.7-py3-none-any.whl.metadata (3.0 kB)
Collecting SQLAlchemy>=1.3.0 (from alembic<2.0.0,>=1.11.1->reflex)
  Obtaining dependency information for SQLAlchemy>=1.3.0 from https://files.pythonhosted.org/packages/10/81/230bec5713913a472003b71c8dd7e3572de44499e741df576fd6b39d82c8/SQLAlchemy-2.0.20-cp311-cp311-win_amd64.whl.metadata
  Using cached SQLAlchemy-2.0.20-cp311-cp311-win_amd64.whl.metadata (9.7 kB)
Collecting Mako (from alembic<2.0.0,>=1.11.1->reflex)
  Using cached Mako-1.2.4-py3-none-any.whl (78 kB)
Collecting typing-extensions>=4 (from alembic<2.0.0,>=1.11.1->reflex)
  Obtaining dependency information for typing-extensions>=4 from https://files.pythonhosted.org/packages/ec/6b/63cc3df74987c36fe26157ee12e09e8f9db4de771e0f3404263117e75b95/typing_extensions-4.7.1-py3-none-any.whl.metadata
  Downloading typing_extensions-4.7.1-py3-none-any.whl.metadata (3.1 kB)
Collecting starlette<0.28.0,>=0.27.0 (from fastapi<0.97.0,>=0.96.0->reflex)
  Obtaining dependency information for starlette<0.28.0,>=0.27.0 from https://files.pythonhosted.org/packages/58/f8/e2cca22387965584a409795913b774235752be4176d276714e15e1a58884/starlette-0.27.0-py3-none-any.whl.metadata
  Using cached starlette-0.27.0-py3-none-any.whl.metadata (5.8 kB)
Requirement already satisfied: setuptools>=3.0 in c:\users\speed\onedrive\desktop\projects\eduroll\venv\lib\site-packages (from gunicorn<21.0.0,>=20.1.0->reflex) (65.5.0)
Collecting certifi (from httpx<0.25.0,>=0.24.0->reflex)
  Obtaining dependency information for certifi from https://files.pythonhosted.org/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.whl.metadata
  Downloading certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
Collecting httpcore<0.18.0,>=0.15.0 (from httpx<0.25.0,>=0.24.0->reflex)
  Obtaining dependency information for httpcore<0.18.0,>=0.15.0 from https://files.pythonhosted.org/packages/94/2c/2bde7ff8dd2064395555220cbf7cba79991172bf5315a07eb3ac7688d9f1/httpcore-0.17.3-py3-none-any.whl.metadata
  Using cached httpcore-0.17.3-py3-none-any.whl.metadata (18 kB)
Collecting idna (from httpx<0.25.0,>=0.24.0->reflex)
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting sniffio (from httpx<0.25.0,>=0.24.0->reflex)
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting MarkupSafe>=2.0 (from jinja2<4.0.0,>=3.1.2->reflex)
  Obtaining dependency information for MarkupSafe>=2.0 from https://files.pythonhosted.org/packages/be/bb/08b85bc194034efbf572e70c3951549c8eca0ada25363afc154386b5390a/MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl.metadata
  Downloading MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl.metadata (3.1 kB)
Collecting tenacity>=6.2.0 (from plotly<6.0.0,>=5.13.0->reflex)
  Obtaining dependency information for tenacity>=6.2.0 from https://files.pythonhosted.org/packages/f4/f1/990741d5bb2487d529d20a433210ffa136a367751e454214013b441c4575/tenacity-8.2.3-py3-none-any.whl.metadata
  Using cached tenacity-8.2.3-py3-none-any.whl.metadata (1.0 kB)
Collecting packaging (from plotly<6.0.0,>=5.13.0->reflex)
  Using cached packaging-23.1-py3-none-any.whl (48 kB)
Collecting six>=1.4.0 (from python-multipart<0.0.6,>=0.0.5->reflex)
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting bidict>=0.21.0 (from python-socketio<6.0.0,>=5.7.0->reflex)
  Using cached bidict-0.22.1-py3-none-any.whl (35 kB)
Collecting markdown-it-py>=2.2.0 (from rich<14.0.0,>=13.0.0->reflex)
  Obtaining dependency information for markdown-it-py>=2.2.0 from https://files.pythonhosted.org/packages/42/d7/1ec15b46af6af88f19b8e5ffea08fa375d433c998b8a7639e76935c14f1f/markdown_it_py-3.0.0-py3-none-any.whl.metadata
  Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
Collecting pygments<3.0.0,>=2.13.0 (from rich<14.0.0,>=13.0.0->reflex)
  Obtaining dependency information for pygments<3.0.0,>=2.13.0 from https://files.pythonhosted.org/packages/43/88/29adf0b44ba6ac85045e63734ae0997d3c58d8b1a91c914d240828d0d73d/Pygments-2.16.1-py3-none-any.whl.metadata
  Using cached Pygments-2.16.1-py3-none-any.whl.metadata (2.5 kB)
Collecting SQLAlchemy>=1.3.0 (from alembic<2.0.0,>=1.11.1->reflex)
  Using cached SQLAlchemy-1.4.41-cp311-cp311-win_amd64.whl (1.6 MB)
Collecting sqlalchemy2-stubs (from sqlmodel<0.0.9,>=0.0.8->reflex)
  Obtaining dependency information for sqlalchemy2-stubs from https://files.pythonhosted.org/packages/bd/a6/289f42af833bf4e6d14e416f79cdeada07d2e5a37fcdd8e469b535fd8fd6/sqlalchemy2_stubs-0.0.2a35-py3-none-any.whl.metadata
  Using cached sqlalchemy2_stubs-0.0.2a35-py3-none-any.whl.metadata (3.0 kB)
Collecting h11>=0.8 (from uvicorn<0.21.0,>=0.20.0->reflex)
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Collecting anyio>=3.0.0 (from watchfiles<0.20.0,>=0.19.0->reflex)
  Obtaining dependency information for anyio>=3.0.0 from https://files.pythonhosted.org/packages/36/55/ad4de788d84a630656ece71059665e01ca793c04294c463fd84132f40fe6/anyio-4.0.0-py3-none-any.whl.metadata
  Using cached anyio-4.0.0-py3-none-any.whl.metadata (4.5 kB)
Collecting colorama (from click<9.0.0,>=7.1.1->typer==0.4.2->reflex)
  Using cached colorama-0.4.6-py2.py3-none-any.whl (25 kB)
Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich<14.0.0,>=13.0.0->reflex)
  Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
Collecting greenlet!=0.4.17 (from SQLAlchemy>=1.3.0->alembic<2.0.0,>=1.11.1->reflex)
  Using cached greenlet-2.0.2-cp311-cp311-win_amd64.whl (192 kB)
Using cached reflex-0.2.6-py3-none-any.whl (330 kB)
Using cached alembic-1.12.0-py3-none-any.whl (226 kB)
Using cached fastapi-0.96.1-py3-none-any.whl (57 kB)
Using cached httpx-0.24.1-py3-none-any.whl (75 kB)
Using cached platformdirs-3.10.0-py3-none-any.whl (17 kB)
Using cached plotly-5.16.1-py2.py3-none-any.whl (15.6 MB)
Using cached pydantic-1.10.12-cp311-cp311-win_amd64.whl (2.1 MB)
Using cached python_engineio-4.7.0-py3-none-any.whl (54 kB)
Using cached python_socketio-5.9.0-py3-none-any.whl (57 kB)
Using cached redis-4.6.0-py3-none-any.whl (241 kB)
Using cached rich-13.5.2-py3-none-any.whl (239 kB)
Using cached starlette_admin-0.9.0-py3-none-any.whl (2.1 MB)
Using cached anyio-4.0.0-py3-none-any.whl (83 kB)
Using cached click-8.1.7-py3-none-any.whl (97 kB)
Using cached httpcore-0.17.3-py3-none-any.whl (74 kB)
Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
Using cached MarkupSafe-2.1.3-cp311-cp311-win_amd64.whl (17 kB)
Using cached Pygments-2.16.1-py3-none-any.whl (1.2 MB)
Using cached starlette-0.27.0-py3-none-any.whl (66 kB)
Using cached tenacity-8.2.3-py3-none-any.whl (24 kB)
Using cached typing_extensions-4.7.1-py3-none-any.whl (33 kB)
Using cached certifi-2023.7.22-py3-none-any.whl (158 kB)
Using cached sqlalchemy2_stubs-0.0.2a35-py3-none-any.whl (191 kB)
Installing collected packages: websockets, watchdog, typing-extensions, tenacity, sniffio, six, redis, python-engineio, pygments, psutil, platformdirs, packaging, mdurl, MarkupSafe, idna, h11, gunicorn, greenlet, colorama, cloudpickle, certifi, bidict, sqlalchemy2-stubs, SQLAlchemy, python-socketio, python-multipart, pydantic, plotly, markdown-it-py, Mako, jinja2, click, anyio, watchfiles, uvicorn, typer, starlette, sqlmodel, rich, httpcore, alembic, starlette-admin, httpx, fastapi, reflex
Successfully installed Mako-1.2.4 MarkupSafe-2.1.3 SQLAlchemy-1.4.41 alembic-1.12.0 anyio-4.0.0 bidict-0.22.1 certifi-2023.7.22 click-8.1.7 cloudpickle-2.2.1 colorama-0.4.6 fastapi-0.96.1 greenlet-2.0.2 gunicorn-20.1.0 h11-0.14.0 httpcore-0.17.3 httpx-0.24.1 idna-3.4 jinja2-3.1.2 markdown-it-py-3.0.0 mdurl-0.1.2 packaging-23.1 platformdirs-3.10.0 plotly-5.16.1 psutil-5.9.5 pydantic-1.10.12 pygments-2.16.1 python-engineio-4.7.0 python-multipart-0.0.5 python-socketio-5.9.0 redis-4.6.0 reflex-0.2.6 rich-13.5.2 six-1.16.0 sniffio-1.3.0 sqlalchemy2-stubs-0.0.2a35 sqlmodel-0.0.8 starlette-0.27.0 starlette-admin-0.9.0 tenacity-8.2.3 typer-0.4.2 typing-extensions-4.7.1 uvicorn-0.20.0 watchdog-2.3.1 watchfiles-0.19.0 websockets-10.4

(venv) C:\Users\speed\OneDrive\Desktop\projects\eduRoll>reflex init
Info: Overriding config value username with env var USERNAME=speed
──────────────────────────────────────────────── Initializing eduRoll ────────────────────────────────────────────────
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] НС удаСтся Π½Π°ΠΉΡ‚ΠΈ ΡƒΠΊΠ°Π·Π°Π½Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ»

REF-1944

ElijahAhianyo commented 1 year ago

can you show the logs for when you run reflex init --loglevel debug?

cap-102 commented 1 year ago

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)
ElijahAhianyo commented 1 year ago

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

cap-102 commented 1 year ago

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

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] НС удаСтся Π½Π°ΠΉΡ‚ΠΈ ΡƒΠΊΠ°Π·Π°Π½Π½Ρ‹ΠΉ Ρ„Π°ΠΉΠ»
picklelo commented 1 year ago

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?

cap-102 commented 1 year ago

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().
wAndresFlores commented 8 months ago

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
ElijahAhianyo commented 8 months ago

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 )?

wAndresFlores commented 8 months ago

Hi, nope, I first tried it using venv but I got that error, then I tried using Anaconda

danik292 commented 7 months ago

so ok where is init script located i look on this @picklelo

picklelo commented 7 months ago

@danik292 It's within the reflex.py in the _init function here: https://github.com/reflex-dev/reflex/blob/main/reflex/reflex.py#L64

danik292 commented 7 months ago

@picklelo thx