Skip to content

stat: path should be string, bytes, os.PathLike or integer, not NoneType #721

Description

@griffi-gh

Platform

Operating system and version: NixOS unstable (c53e65ec92f38d30e3c14f8d628ab55d462947aa)
Legendary version (legendary -V): legendary version "0.20.34", codename "Direct Intervention"

Expected Behavior

Update should complete without producing errors

Current Behavior

After the update is complete, Legendary fails with the following error:

[DLManager] INFO: = Progress: 100.00% (11274/11274), Running for 00:12:37, ETA: 00:00:00
[DLManager] INFO:  - Downloaded: 8144.82 MiB, Written: 10441.39 MiB
[DLManager] INFO:  - Cache usage: 0.00 MiB, active tasks: 0
[DLManager] INFO:  + Download   - 4.95 MiB/s (raw) / 5.00 MiB/s (decompressed)
[DLManager] INFO:  + Disk       - 5.45 MiB/s (write) / 0.00 MiB/s (read)
[DLManager] INFO: Waiting for installation to finish...
[DLManager] INFO: All done! Download manager quitting...
[cli] INFO: Deleting now untagged files.
[cli] INFO: Finished installation process in 758.88 seconds.
Traceback (most recent call last):
  File "/nix/store/4794qc90sra38053vrbyk7437yilfb3n-legendary-gl-0.20.34/bin/.legendary-wrapped", line 9, in <module>
    sys.exit(main())
             ~~~~^^
  File "/nix/store/4794qc90sra38053vrbyk7437yilfb3n-legendary-gl-0.20.34/lib/python3.13/site-packages/legendary/cli.py", line 3066, in main
    cli.install_game(args)
    ~~~~~~~~~~~~~~~~^^^^^^
  File "/nix/store/4794qc90sra38053vrbyk7437yilfb3n-legendary-gl-0.20.34/lib/python3.13/site-packages/legendary/cli.py", line 1102, in install_game
    if old_igame and args.repair_mode and os.path.exists(repair_file):
                                          ~~~~~~~~~~~~~~^^^^^^^^^^^^^
  File "<frozen genericpath>", line 19, in exists
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

Steps to Reproduce

Try to update Fortnite and agree to updating Fortnite_Studio DLC (aka Unreal Editor for Fortnite):

legendary update Fortnite

Or update Fortnite_Studio directly:

legendary update Fortnite_Studio

This error occurs after every single recent Unreal Editor update.

Additional information

  • Game is installed to an NTFS partition

  • Result of Legendary list-installed subcommand

❯ legendary list-installed

Installed games:
 * Fortnite (App name: Fortnite | Version: ++Fortnite+Release-37.51-CL-46968237-Windows | Platform: Windows | 0.30 GiB)
  + Unreal Editor for Fortnite (App name: Fortnite_Studio | Version: ++Fortnite+Release-37.51-CL-46968237-Windows) | 10.71 GiB)

Total: 1
nix-env --version
❯ nix-env --version
nix-env (Lix, like Nix) 2.93.3
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux, x86_64-v4-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/user/.config/nix/nix.conf:/nix/store/4albkh39zmj8l2ry2k63nd07k1rxvrz6-plasma-workspace-6.4.5/etc/xdg/nix/nix.conf:/nix/store/vn7cqrkf9bpy2c6k8zly1swcpa7yvky9-kglobalacceld-6.4.5/etc/xdg/nix/nix.conf:/nix/store/733kipy3lrla6ym7vkxzyxmr4q73ngh2-baloo-6.19.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/nix/store/4albkh39zmj8l2ry2k63nd07k1rxvrz6-plasma-workspace-6.4.5/etc/xdg/nix/nix.conf:/nix/store/vn7cqrkf9bpy2c6k8zly1swcpa7yvky9-kglobalacceld-6.4.5/etc/xdg/nix/nix.conf:/nix/store/733kipy3lrla6ym7vkxzyxmr4q73ngh2-baloo-6.19.0/etc/xdg/nix/nix.conf:/home/user/.config/kdedefaults/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/user/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/user/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/user/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/user/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/zxl9ivn2v7xcrzlf4j036fl6av34zwv9-lix-2.93.3/share
infi -F
System:
  Host: fw13 Kernel: 6.17.2 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.4.5 Distro: NixOS 25.11 (Xantusia)
Machine:
  Type: Laptop System: Framework product: Laptop 13 (AMD Ryzen 7040Series)
    v: A5 serial: <superuser required>
  Mobo: Framework model: FRANMDCP05 v: A5 serial: <superuser required>
    UEFI: INSYDE v: 03.16 date: 07/25/2025
Battery:
  ID-1: BAT1 charge: 26.6 Wh (52.9%) condition: 50.2/55 Wh (91.3%) volts: 15.1
    min: 15.4
CPU:
  Info: 6-core model: AMD Ryzen 5 7640U w/ Radeon 760M Graphics bits: 64
    type: MT MCP cache: L2: 6 MiB
  Speed (MHz): avg: 1397 min/max: 406/3501 cores: 1: 1397 2: 1397 3: 1397
    4: 1397 5: 1397 6: 1397 7: 1397 8: 1397 9: 1397 10: 1397 11: 1397 12: 1397
Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Phoenix1 driver: amdgpu v: kernel
  Display: wayland server: X.org v: 1.21.1.18 with: Xwayland v: 24.1.8
    compositor: kwin_wayland driver: gpu: amdgpu resolution: 2256x1504~60Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.2.4 renderer: AMD
    Radeon 760M Graphics (radeonsi phoenix LLVM 21.1.1 DRM 3.64 6.17.2)
  API: Vulkan v: 1.4.321 drivers: radv,llvmpipe surfaces: N/A
  Info: Tools: api: eglinfo, glxinfo, vulkaninfo
    de: kscreen-console,kscreen-doctor gpu: amdgpu_top x11: xprop,xrandr
Audio:
  Device-1: Advanced Micro Devices [AMD/ATI] Radeon High Definition Audio
    [Rembrandt/Strix] driver: snd_hda_intel
  Device-2: Advanced Micro Devices [AMD] Audio Coprocessor
    driver: snd_pci_ps
  Device-3: Advanced Micro Devices [AMD] Family 17h/19h/1ah HD Audio
    driver: snd_hda_intel
  API: ALSA v: k6.17.2 status: kernel-api
  Server-1: PipeWire v: 1.4.8 status: active
Network:
  Device-1: MEDIATEK MT7922 802.11ax PCI Express Wireless Network Adapter
    driver: mt7921e
  IF: wlan0 state: up mac: ec:91:61:b7:c1:11
  IF-ID-1: tailscale0 state: unknown speed: -1 duplex: full mac: N/A
Bluetooth:
  Device-1: MediaTek Wireless_Device driver: btusb type: USB
  Report: hciconfig ID: hci0 state: up address: EC:91:61:B7:C1:12 bt-v: 5.3
Drives:
  Local Storage: total: 931.51 GiB used: 516.82 GiB (55.5%)
  ID-1: /dev/nvme0n1 vendor: Kingston model: SNV3S1000G size: 931.51 GiB
Partition:
  ID-1: / size: 705.18 GiB used: 371.51 GiB (52.7%) fs: btrfs dev: /dev/dm-2
  ID-2: /boot size: 1022 MiB used: 398.7 MiB (39.0%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 705.18 GiB used: 371.51 GiB (52.7%) fs: btrfs
    dev: /dev/dm-2
Swap:
  ID-1: swap-1 type: partition size: 30 GiB used: 1.85 GiB (6.2%)
    dev: /dev/dm-1
Sensors:
  System Temperatures: cpu: 57.9 C mobo: N/A gpu: amdgpu temp: 56.0 C
  Fan Speeds (rpm): fan-1: 1876
Info:
  Memory: total: 24 GiB note: est. available: 22.79 GiB used: 6.33 GiB (27.8%)
  Processes: 391 Uptime: 22h 35m Shell: fish inxi: 3.3.39

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