Skip to content

Installer fails when socket information is missing #461

@NN708

Description

@NN708

When running the installer in an Apple virtualization environment, the installation fails during system checks because the CPU detection can't handle missing socket information.

Error log:

Traceback (most recent call last):
  File "/usr/share/org.vanillaos.Installer/vanilla_installer/main.py", line 68, in do_activate
    elif not Systeminfo.is_cpu_enough() and "IGNORE_CPU" not in os.environ:
             ~~~~~~~~~~~~~~~~~~~~~~~~^^
  File "/usr/share/org.vanillaos.Installer/vanilla_installer/core/system.py", line 43, in is_cpu_enough
    Systeminfo.cpu = (int(proc1) * int(proc2)) >= 2
                                   ~~~^^^^^^^
ValueError: invalid literal for int() with base 10: '-\n'

CPU details:

vanilla@vanillaos:~$ lscpu
Architecture:             aarch64
  CPU op-mode(s):         64-bit
  Byte Order:             Little Endian
CPU(s):                   4
  On-line CPU(s) list:    0-3
Vendor ID:                Apple
  Model name:             -
    Model:                0
    Thread(s) per core:   1
    Core(s) per cluster:  4
    Socket(s):            -
    Cluster(s):           1
    Stepping:             0x0
    BogoMIPS:             48.00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions