reflex icon indicating copy to clipboard operation
reflex copied to clipboard

Installing base frontend packages failed with exit code 255

Open SirKnightV opened this issue 8 months ago β€’ 3 comments

Describe the bug When running reflex run it get that error Installing base frontend packages failed with exit code 255

To Reproduce Steps to reproduce the behavior:

  • Literally i installed ubuntu Desktop in virtualbox, i did full update and upgrade on it later tried with python3 -m venv venv
  • later i did source venv/bin/activate and pip3 install reflex
  • i did reflex init (and selected option 0)
  • later i have copied a code from https://reflex.dev/docs/getting-started/introduction/ in a file called webapp.py
  • later i saved code and did reflex run
  • i have tried without venv enviorement too but is same error as i show in the screenshot

Expected behavior that the webapps launch like in docs shows

Screenshots image

Specifics (please complete the following information):

  • Python Version: Python 3.12.3
  • Reflex Version: 0.5.5
  • OS: Ubuntu 24.04 LTS (Installed on VirtualBox)
  • Browser (Optional): Firefox

Additional context have followed the docs and copied a code from it, actually got this code

import reflex as rx

class State(rx.State):
    count: int = 0

    def increment(self):
        self.count += 1

    def decrement(self):
        self.count -= 1


def index():
    return rx.hstack(
        rx.button(
            "Decrement",
            color_scheme="ruby",
            on_click=State.decrement,
        ),
        rx.heading(State.count, font_size="2em"),
        rx.button(
            "Increment",
            color_scheme="grass",
            on_click=State.increment,
        ),
        spacing="4",
    )


app = rx.App()
app.add_page(index)

later i saved it and tried with root mode run the app with reflex run

SirKnightV avatar Jun 26 '24 18:06 SirKnightV