Skip to content

Can somebody help #2720

Open
Open
@OgnjenDev

Description

@OgnjenDev

| _ | | | | __ ) \ / / _ / |
| |
) | | | | _ \ V / | | _

| _ <| || | |) || || || |) |
|
| __
/|___/ || __/|____/

[ 0.000000] Booting Linux Kernel...
[ 0.032000] Initializing CPU...
[ 0.064000] Loading drivers...
[ 0.096000] Detecting hardware...
[ 0.128000] Enabling power management...
[ 0.160000] Starting udev...
[ 0.192000] Loading kernel modules...
[ 0.224000] Setting up file system...
[ 0.256000] Mounting root filesystem...
[ 0.288000] Checking system integrity...
[ 0.320000] Starting network services...
[ 0.352000] Configuring network interfaces...
[ 0.384000] Starting system daemons...
[ 0.416000] Initializing SELinux...
[ 0.448000] Loading system services...
[ 0.480000] Initializing Ruby OS core...
[ 0.512000] Loading hardware abstraction layer...
[ 0.544000] Setting up memory management...
[ 0.576000] Checking available storage...
[ 0.608000] Starting Ruby shell...
[ 0.640000] Detecting connected devices...
[ 0.672000] Starting display server...
[ 0.704000] Configuring input devices...
[ 0.736000] Setting up security policies...
[ 0.768000] Launching Ruby process manager...
[ 0.800000] Loading user space applications...
[ 0.832000] Checking internet connection...
[ 0.864000] Running system diagnostics...
[ 0.896000] Boot optimization in progress...
[ 0.928000] Enabling sound system...
[ 0.960000] Starting background services...
[ 0.992000] Preparing graphical environment...
[ 1.024000] Verifying installed applications...
[ 1.056000] Checking for updates...
[ 1.088000] Loading Ruby runtime...
[ 1.120000] Enabling GPU acceleration...
[ 1.152000] Starting compositor...
[ 1.184000] Initializing user session...
[ 1.216000] Finalizing system setup...
[ 1.248000] Ruby OS boot complete!
[ 1.280000] Allocating process table...
[ 1.312000] Running garbage collector...
[ 1.344000] Initializing kernel modules...
[ 1.376000] Configuring system clock...
[ 1.408000] Loading device tree...
[ 1.440000] Checking disk partitions...
[ 1.472000] Verifying bootloader integrity...
[ 1.504000] Starting system monitoring service...
[ 1.536000] Enabling swap space...
[ 1.568000] Checking battery status...
[ 1.600000] Enabling wireless interfaces...
[ 1.632000] Detecting USB peripherals...
[ 1.664000] Mounting additional storage...
[ 1.696000] Configuring user permissions...
[ 1.728000] Initializing audio drivers...
[ 1.760000] Checking system temperature...
[ 1.792000] Starting Ruby desktop environment...
[ 1.824000] Enabling network time synchronization...
[ 1.856000] Running startup scripts...
[ 1.888000] Checking system logs...
[ 1.920000] Finalizing network configuration...
[ 1.952000] Starting firewall service...
[ 1.984000] Scanning for malware...
[ 2.016000] Loading user preferences...
[ 2.048000] Adjusting power settings...
[ 2.080000] Initializing Ruby software repository...
RUBY DEBUGGER
E: File 'hal.dll' is misssing or corrupted
Traceback (most recent call last):
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 31, in
start(fakepyfile,mainpyfile)
~~~~~^^^^^^^^^^^^^^^^^^^^^^^
File "/data/user/0/ru.iiec.pydroid3/files/accomp_files/iiec_run/iiec_run.py", line 30, in start
exec(open(mainpyfile).read(), main.dict)
~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 3127, in
File "", line 3064, in main
File "", line 1750, in loading_kernel
TypeError: 'str' object is not callable

[Program finished]

import datetime

def log(message, level="info", save_to_file=False, filename="log.txt"):
# Koristimo datetime pravilno
current_time = datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S")

# Formatiranje nivoa poruke
level = str(level).lower()
if level == "info":
    prefix = "[INFO]"
    color = "\033[94m"  # plava
elif level == "error":
    prefix = "[ERROR]"
    color = "\033[91m"  # crvena
else:
    prefix = "[LOG]"
    color = "\033[90m"  # siva

reset = "\033[0m"
formatted = f"{color}{current_time} {prefix} {str(message)}{reset}"

# Ispis u terminal
print(formatted)

# Zapis u fajl
if save_to_file:
    try:
        with open(filename, "a", encoding="utf-8") as f:
            f.write(f"{current_time} {prefix} {str(message)}\n")
    except Exception as e:
        print(f"\033[91m[ERROR] Ne mogu da upišem u fajl: {e}\033[0m")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions