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
uv init (project name)
2.cd project name
3.uv add reflex
4.uv run reflex init
uv run reflex run
Actual Behavior:
error
rascencio@ronny-ascencio:~/Dev$ uv init portfolio
Initialized project `portfolio` at `/home/rascencio/Dev/portfolio`
rascencio@ronny-ascencio:~/Dev$ uv add reflex
error: No `pyproject.toml` found in current directory or any parent directory
rascencio@ronny-ascencio:~/Dev$ cd portfolio
rascencio@ronny-ascencio:~/Dev/portfolio$ uv add reflex
Using CPython 3.13.2
Creating virtual environment at: .venv
Resolved 75 packages in 27ms
Installed 72 packages in 18ms
+ alembic==1.14.1
+ annotated-types==0.7.0
+ anyio==4.8.0
+ bidict==0.23.1
+ build==1.2.2.post1
+ certifi==2025.1.31
+ cffi==1.17.1
+ charset-normalizer==3.4.1
+ click==8.1.8
+ cryptography==44.0.2
+ distro==1.9.0
+ docutils==0.21.2
+ fastapi==0.115.11
+ greenlet==3.1.1
+ gunicorn==23.0.0
+ h11==0.14.0
+ httpcore==1.0.7
+ httpx==0.28.1
+ id==1.5.0
+ idna==3.10
+ jaraco-classes==3.4.0
+ jaraco-context==6.0.1
+ jaraco-functools==4.1.0
+ jeepney==0.9.0
+ jinja2==3.1.5
+ keyring==25.6.0
+ lazy-loader==0.4
+ mako==1.3.9
+ markdown-it-py==3.0.0
+ markupsafe==3.0.2
+ mdurl==0.1.2
+ more-itertools==10.6.0
+ nh3==0.2.21
+ packaging==24.2
+ platformdirs==4.3.6
+ psutil==6.1.1
+ pycparser==2.22
+ pydantic==2.10.6
+ pydantic-core==2.27.2
+ pygments==2.19.1
+ pyproject-hooks==1.2.0
+ python-engineio==4.11.2
+ python-multipart==0.0.20
+ python-socketio==5.12.1
+ pyyaml==6.0.2
+ readme-renderer==44.0
+ redis==5.2.1
+ reflex==0.7.1
+ reflex-hosting-cli==0.1.35
+ requests==2.32.3
+ requests-toolbelt==1.0.0
+ rfc3986==2.0.0
+ rich==13.9.4
+ secretstorage==3.3.3
+ setuptools==75.8.2
+ shellingham==1.5.4
+ simple-websocket==1.1.0
+ sniffio==1.3.1
+ sqlalchemy==2.0.38
+ sqlmodel==0.0.23
+ starlette==0.46.0
+ starlette-admin==0.14.1
+ tabulate==0.9.0
+ tomlkit==0.13.2
+ twine==6.1.0
+ typer==0.15.2
+ typing-extensions==4.12.2
+ urllib3==2.3.0
+ uvicorn==0.34.0
+ wheel==0.45.1
+ wrapt==1.17.2
+ wsproto==1.2.0
rascencio@ronny-ascencio:~/Dev/portfolio$ uv run reflex init
Info: Overriding config value loglevel with env var LOGLEVEL=default
───────────────────────────────────────────────────────────────────────────── Initializing portfolio ─────────────────────────────────────────────────────────────────────────────
Info: Using custom Bun path: /home/rascencio/snap/code/184/.local/share/reflex/bun/bin/bun
[15:49:40] Initializing the web directory. console.py:164
Get started with a template:
(0) blank (https://blank-template.reflex.run) - A blank Reflex app.
(1) ai - Generate a template using AI [Experimental]
(2) choose templates - Choose an existing template.
Which template would you like to use? (0): 0
[15:49:44] Initializing the app directory. console.py:164
Success: Initialized portfolio using the blank template
rascencio@ronny-ascencio:~/Dev/portfolio$ uv run reflex run
Info: Overriding config value loglevel with env var LOGLEVEL=default
Info: Overriding config value frontend_port with env var FRONTEND_PORT=3000
Info: Overriding config value backend_port with env var BACKEND_PORT=8000
────────────────────────────────────────────────────────────────────────────── Starting Reflex App ───────────────────────────────────────────────────────────────────────────────
[15:50:01] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 16/16 0:00:00
Traceback (most recent call last):
File "/home/rascencio/Dev/portfolio/.venv/bin/reflex", line 10, in <module>
sys.exit(cli())
~~~^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/typer/main.py", line 339, in __call__
raise e
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/typer/main.py", line 322, in __call__
return get_command(self)(*args, **kwargs)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/click/core.py", line 1161, in __call__
return self.main(*args, **kwargs)
~~~~~~~~~^^^^^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/typer/core.py", line 740, in main
return _main(
self,
...<6 lines>...
**extra,
)
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/typer/core.py", line 195, in _main
rv = self.invoke(ctx)
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/click/core.py", line 1697, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/click/core.py", line 1443, in invoke
return ctx.invoke(self.callback, **ctx.params)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/click/core.py", line 788, in invoke
return __callback(*args, **kwargs)
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/typer/main.py", line 697, in wrapper
return callback(**use_params)
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/reflex.py", line 300, in run
_run(env, frontend, backend, frontend_port, backend_port, backend_host, loglevel)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/reflex.py", line 195, in _run
prerequisites.get_compiled_app()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/utils/prerequisites.py", line 387, in get_compiled_app
app._compile(export=export)
~~~~~~~~~~~~^^^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/app.py", line 1347, in _compile
self._get_frontend_packages(all_imports)
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/app.py", line 931, in _get_frontend_packages
prerequisites.install_frontend_packages(page_imports, get_config())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/utils/prerequisites.py", line 1149, in _inner
func(*args, **kwargs)
~~~~^^^^^^^^^^^^^^^^^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/utils/prerequisites.py", line 1202, in install_frontend_packages
processes.run_process_with_fallback(
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
[install_package_manager, "install"],
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...<4 lines>...
shell=constants.IS_WINDOWS,
^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/utils/processes.py", line 400, in run_process_with_fallback
process = new_process(get_command_with_loglevel(args), **kwargs)
File "/home/rascencio/Dev/portfolio/.venv/lib/python3.13/site-packages/reflex/utils/processes.py", line 200, in new_process
return fn(args, **kwargs) # pyright: ignore [reportCallIssue, reportArgumentType]
File "/home/rascencio/.local/share/uv/python/cpython-3.13.2-linux-x86_64-gnu/lib/python3.13/subprocess.py", line 1038, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pass_fds, cwd, env,
^^^^^^^^^^^^^^^^^^^
...<5 lines>...
gid, gids, uid, umask,
^^^^^^^^^^^^^^^^^^^^^^
start_new_session, process_group)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/rascencio/.local/share/uv/python/cpython-3.13.2-linux-x86_64-gnu/lib/python3.13/subprocess.py", line 1974, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: '/home/rascencio/.local/share/reflex/bun/bin/bun'
rascencio@ronny-ascencio:~/Dev/portfolio$
Expected Behavior:
(ronny-ascencio-portfolio) rascencio@ronny-ascencio:~/Dev/ronny-ascencio-portfolio$ uv run reflex run
Info: Overriding config value loglevel with env var LOGLEVEL=default
Info: Overriding config value frontend_port with env var FRONTEND_PORT=3000
Info: Overriding config value backend_port with env var BACKEND_PORT=8000
─────────────────────────────────────────────────────────────────────────────────── Starting Reflex App ────────────────────────────────────────────────────────────────────────────────────
[16:15:39] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 16/16 0:00:00
─────────────────────────────────────────────────────────────────────────────────────── App Running ────────────────────────────────────────────────────────────────────────────────────────
Info: Overriding config value loglevel with env var LOGLEVEL=default
Info: Overriding config value frontend_port with env var FRONTEND_PORT=3000
Info: Overriding config value backend_port with env var BACKEND_PORT=8000
App running at: http://localhost:3000
Backend running at: http://0.0.0.0:8000
[16:15:48] Compiling: ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 16/16 0:00:00
I've talked with the user on discord in this thread
Summary:
The same error zed gives in its terminal he also gets in his standalone terminal, so nothing really specific to zed, however VScode works. So I'm thinking vscode does some path shenanigans and it works?
The issue is that reflex can't find the bun executable. We did which bun and found it installed at: /home/rascencio/snap/code/184/.local/share/reflex/bun/bin/bun while reflex is looking in /home/rascencio/.local/share/reflex/bun/bin/bun.
I know this is not really a Zed issue but we are still surprised why vscode can run this, and zed cannot and yes the normal terminal is also not running it.
We need here feedback from the Zed team, to see if we are missing something if not it can be closed.
Summary
SUMMARY_SENTENCE_HERE
Steps to trigger the problem:
2.cd project name
3.uv add reflex
4.uv run reflex init
Actual Behavior:
error
Expected Behavior:
Zed Version and System Specs
Zed: v0.176.1 (Zed)
OS: Linux X11 ubuntu 24.04
Memory: 31.1 GiB
Architecture: x86_64
GPU: Intel(R) UHD Graphics (CML GT2) || Intel open-source Mesa driver || Mesa 24.2.8-1ubuntu1~24.04.1
The text was updated successfully, but these errors were encountered: