dependencies
dependencies copied to clipboard
[Bug]: Consolas dependency fails to install
Describe the bug
Bottles fails to install the consolas
dependency.
According to the log it appears to think that /home/USER/.var/app/com.usebottles.bottles/data/bottles/temp/consolas-fonts-tts.tar/Consolas-Bold.ttf/
is a path containing Consolas-Bold.ttf
; however, in reality this file is just in /home/USER/.var/app/com.usebottles.bottles/data/bottles/temp/consolas-fonts-tts.tar/
.
Possibly the expected path is generated incorrectly by including the filename twice?
[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 63, in __target
result = self.task_func(*args, **kwargs)
File "/app/share/bottles/bottles/backend/managers/dependency.py", line 144, in install
res = self.__perform_steps(config, step)
File "/app/share/bottles/bottles/backend/managers/dependency.py", line 247, in __perform_steps
if not self.__step_install_fonts(config=config, step=step):
File "/app/share/bottles/bottles/backend/managers/dependency.py", line 527, in __step_install_fonts
shutil.copyfile(f"{path}/{font}", f"{font_path}/{font}")
File "/usr/lib/python3.9/shutil.py", line 264, in copyfile
with open(src, 'rb') as fsrc:
To Reproduce
- Install
consolas
dependency - bottles will give install error popup (though the loader top-right will keep on spinning as if still installing)
- force quit the bottles process
- re-start bottles, it will now show the crash report about this directory not existing (looking up the path in the file browser shows that the directory named the same as the filename doesn't exist)
Package
Flatpak from Flathub
Distribution
Ubuntu 22.04
Troubleshooting Logs
Version: 2022.8.28-brescia-2
Display:
X.org: true
X.org (port): :99.0
Wayland: false
Graphics:
vendors:
nvidia:
vendor: nvidia
envs:
__NV_PRIME_RENDER_OFFLOAD: '1'
__GLX_VENDOR_LIBRARY_NAME: nvidia
__VK_LAYER_NV_optimus: NVIDIA_only
icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/nvidia_icd.json
prime:
integrated: null
discrete: null
Kernel:
Type: Linux
Version: 5.15.0-48-generic
Distro:
Name: GNOME
Version: '"42 (Flatpak runtime)"'
Disk:
Total: 8293363712
Free: 8293203968
RAM:
MemTotal: 15.4GiB
MemAvailable: 11.8GiB
Bottles_envs: null
Display Protocol
X11
Display Backend used by Bottles
I don't know
Additional context
No response
The problem is in the dependency itself