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 1 year 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

Does it do this every time you run reflex run ? Wondering if the result is any different when you run without sudo

ElijahAhianyo avatar Jun 26 '24 20:06 ElijahAhianyo

Does it do this every time you run reflex run ? Wondering if the result is any different when you run without sudo

hello eliah, this happend with sudo and not sudo, i dont know why for be exactly, have tried with root and no root and is same issue, but after few checks i saw is in /media directory wich is the directory where i share from virtualbox to host OS, so i dont know if is for that or is a bug with reflex and virtualbox, because in other directory works fine but with the directory where i share to HOST dont works , but all the other things work that dont are with reflex like python3 for example works fine

SirKnightV avatar Jun 26 '24 21:06 SirKnightV

Is this issue still happening @SirKnightV ? We haven't had any other user reporting this problem, so it might be a local problem with how your workspace is set up.

Lendemor avatar Sep 26 '24 22:09 Lendemor

closing because it's stale

adhami3310 avatar Feb 05 '25 01:02 adhami3310