bottlesdevs / Bottles

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

[Bug]: Install dependences of ITunes - Consolas #3030

Open GuillaumeBorges opened 1 year ago

GuillaumeBorges commented 1 year ago

Describe the bug

[Errno 20] Não é um diretório: '/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/backend/utils/threading.py", line 59, in __target result = self.task_func(*args, **kwargs)

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

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

File "/app/share/bottles/bottles/backend/managers/dependency.py", line 517, 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:

To Reproduce

  1. Go to. dependencies
  2. Try install Consolas
  3. take a bug

Package

Flatpak from Flathub

Distribution

Debian 11

Debugging Information

[Errno 20] Não é um diretório: '/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/backend/utils/threading.py", line 59, in __target
    result = self.task_func(*args, **kwargs)

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

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

  File "/app/share/bottles/bottles/backend/managers/dependency.py", line 517, 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:

Troubleshooting Logs

No response

Additional context

Debian 11

h7lv2 commented 1 year ago

Same error when trying to install Consolas on Arch/Flatpak on a self-configured bottle.