bottlesdevs / Bottles

Run Windows software and games on Linux
https://usebottles.com
GNU General Public License v3.0
6.34k stars 266 forks source link

[Bug]: Fails to install Consolas font #2841

Open AdrianGjonca opened 1 year ago

AdrianGjonca commented 1 year ago

Describe the bug

Fails to install Consolas font. When you press the install button on the dependencies page it starts and then says it has failed

To Reproduce

Attempt to install Consolas font

Package

Flatpak from Flathub

Distribution

Ubuntu

Debugging Information

12:38:43 (ERROR) Unable to load libGLX_nvidia.so.0 
12:38:43 (WARNING) Unable to locate libGLX_nvidia 
12:38:43 (ERROR) Unable to load libGLX_nvidia.so.0 
12:38:43 (WARNING) Unable to locate libGLX_nvidia 
Official Package: true
Version: '51.5'
DE/WM: ubuntu
Display:
    X.org: true
    X.org (port): :99.0
    Wayland: false
Graphics:
    vendors:
        nvidia: &id002
            vendor: nvidia
            envs:
                __NV_PRIME_RENDER_OFFLOAD: '1'
                __GLX_VENDOR_LIBRARY_NAME: nvidia
                __VK_LAYER_NV_optimus: NVIDIA_only
            icd: ''
            nvngx_path: null
        intel: &id001
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_hasvk_icd.i686.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json
    prime:
        integrated: *id001
        discrete: *id002
Kernel:
    Type: Linux
    Version: 5.19.0-38-generic
Disk:
    Total: 4083990528
    Free: 4083838976
RAM:
    MemTotal: 7.6GiB
    MemAvailable: 4.4GiB
Bottles_envs: null

Troubleshooting Logs

[Errno 20] Not a directory: '/home/USER/.var/app/com.usebottles.bottles/data/bottles/temp/consolas-fonts-tts.tar/Consolas-Bold.ttf/Consolas-Bold.ttf'  File "/app/share/bottles/bottles/frontend/utils/threading.py", line 61, in __target
    result = self.task_func(*args, **kwargs)

  File "/app/share/bottles/bottles/backend/managers/dependency.py", line 143, in install
    res = self.__perform_steps(config, step)

  File "/app/share/bottles/bottles/backend/managers/dependency.py", line 245, in __perform_steps
    if not self.__step_install_fonts(config=config, step=step):

  File "/app/share/bottles/bottles/backend/managers/dependency.py", line 529, in __step_install_fonts
    shutil.copyfile(f"{path}/{font}", f"{font_path}/{font}")

  File "/usr/lib/python3.10/shutil.py", line 254, in copyfile
    with open(src, 'rb') as fsrc:

Additional context

No response

csoren commented 1 year ago

The file is there. Downloaded, extracted and everything. Maybe the path should read /home/$USER/ instead of /home/USER/?