bottlesdevs / Bottles

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

Error Creating Bottles #979

Closed vandpurnama closed 2 years ago

vandpurnama commented 2 years ago

Terminal Log :

(13:23:58) INFO Renaming [wine-lutris-fshack-6.21-6-x86_64.tar.xz] to [wine-lutris-6.21-6-fshack-x86_64.tar.xz].                                                                  
Executing post install for [lutris-6.21-6-fshack].
(13:24:37) INFO Runners found:
         - sys-wine-7.0-rc5                                                              

         - lutris-6.21-6-fshack                                                          
         - caffe-7.0-x86_64                                                              
         - caffe-7.0                                                                     

(13:28:55) INFO Generating bottle configuration… 
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:28:55) INFO Setting Windows version… 
(13:28:55) INFO Removing Value: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion] for Key: [VersionNumber] in register bottle: MT4                                   
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:28:56) INFO Removing Value: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion] for Key: [CurrentVersion] in register bottle: MT4                               
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:28:58) INFO Removing Value: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions] for Key: [ProductType] in register bottle: MT4                               
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:28:59) INFO Removing Value: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ServiceCurrent] for Key: [OS] in register bottle: MT4                                        
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:00) INFO Removing Value: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Windows] for Key: [CSDVersion] in register bottle: MT4                                       
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:01) INFO Removing Value: [HKEY_CURRENT_USER\Softwarw\Wine] for Key: [Version] in register bottle: MT4                                                                      
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:02) INFO Adding Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion] with Value: [CSDVersion] and Data: [] in register bottle: MT4                       
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:03) INFO  
(13:29:03) INFO Adding Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion] with Value: [CurrentBuildNumber] and Data: [10240] in register bottle: MT4          
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:04) INFO  
(13:29:04) INFO Adding Key: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion] with Value: [CurrentVersion] and Data: [10.0] in register bottle: MT4               
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:05) INFO  
(13:29:05) INFO Adding Key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions] with Value: [ProductType] and Data: [WinNT] in register bottle: MT4              
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:06) INFO  
(13:29:06) INFO Adding Key: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Windows] with Value: [CSDVersion] and Data: [00000000] in register bottle: MT4                   
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:07) INFO  
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:07) INFO Setting CMD default settings… 
(13:29:07) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [ColorTable00] and Data: [2368548] in register bottle: MT4                
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:09) INFO  
(13:29:09) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [CursorSize] and Data: [25] in register bottle: MT4                       
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:10) INFO  
(13:29:10) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [CursorVisible] and Data: [1] in register bottle: MT4                     
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:11) INFO  
(13:29:11) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [EditionMode] and Data: [0] in register bottle: MT4                       
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:12) INFO  
(13:29:12) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [FaceName] and Data: [Monospace] in register bottle: MT4                  
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:13) INFO  
(13:29:13) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [FontPitchFamily] and Data: [1] in register bottle: MT4                   
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:14) INFO  
(13:29:14) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [FontSize] and Data: [1248584] in register bottle: MT4                    
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:15) INFO  
(13:29:15) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [FontWeight] and Data: [400] in register bottle: MT4                      
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:16) INFO  
(13:29:16) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [HistoryBufferSize] and Data: [50] in register bottle: MT4                
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:17) INFO  
(13:29:17) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [HistoryNoDup] and Data: [0] in register bottle: MT4                      
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:18) INFO  
(13:29:18) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [InsertMode] and Data: [1] in register bottle: MT4                        
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:19) INFO  
(13:29:19) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [MenuMask] and Data: [0] in register bottle: MT4                          
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:20) INFO  
(13:29:20) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [PopupColors] and Data: [245] in register bottle: MT4                     
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:22) INFO  
(13:29:22) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [QuickEdit] and Data: [1] in register bottle: MT4                         
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:23) INFO  
(13:29:23) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [ScreenBufferSize] and Data: [9830480] in register bottle: MT4            
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:24) INFO  
(13:29:24) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [ScreenColors] and Data: [11] in register bottle: MT4                     
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:25) INFO  
(13:29:25) INFO Adding Key: [HKEY_CURRENT_USER\Console\C:_windows_system32_wineconsole.exe] with Value: [WindowSize] and Data: [1638480] in register bottle: MT4                  
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:26) INFO  
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:26) INFO Optimizing environment… 
(13:29:26) INFO Adding Key: [HKEY_CURRENT_USER\Software\Wine\DllOverrides] with Value: [winemenubuilder.exe] and Data: [] in register bottle: MT4                                 
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:27) INFO  
(13:29:27) INFO Applying environment: [Application]… 
/bin/sh: line 1: /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin/wine64: No such file or directory
(13:29:27) INFO Installing DXVK… 
(13:29:27) ERROR Error while running async job: <bound method Manager.create_bottle of <bottles.backend.manager.Manager object at 0x7f6b9afc0e20>>
Exception: [Errno 2] No such file or directory: '/home/vandpurnama/.local/share/bottles/bottles/MT4__193/drive_c/windows//syswow64/d3d9.dll' 
  File "/usr/share/bottles/bottles/utils.py", line 339, in __target
    result = self.task_func(*args, **kwargs)
  File "/usr/share/bottles/bottles/backend/manager.py", line 1200, in create_bottle
    self.install_dll_component(config, "dxvk", version=dxvk_name)
  File "/usr/share/bottles/bottles/backend/manager.py", line 1394, in install_dll_component
    manager.install(config, exclude)
  File "/usr/share/bottles/bottles/backend/dll.py", line 35, in install
    self.__install_dll(config, path, dll)
  File "/usr/share/bottles/bottles/backend/dll.py", line 66, in __install_dll
    shutil.copyfile(source, target)
  File "/usr/lib/python3.10/shutil.py", line 256, in copyfile
    with open(dst, 'wb') as fdst:
mirkobrombin commented 2 years ago

You have broken caffe runner. Please attach output for:

ls /home/vandpurnama/.local/share/bottles/bottles
ls /home/vandpurnama/.local/share/bottles/runners
ls /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin
psydvl commented 2 years ago

Better to launch as ls -l because execute attribute required

NB: I've had the same error on NixOS, because there are some little enhancements required for it on nix-based environment.

mirkobrombin commented 2 years ago

Also please provide more info

vandpurnama commented 2 years ago

ls -l /home/vandpurnama/.local/share/bottles/bottles total 8 drwxr-xr-x 2 vandpurnama vandpurnama 4096 Jan 28 13:02 MT4 drwxr-xr-x 2 vandpurnama vandpurnama 4096 Jan 28 13:28 MT4__193

ls -l /home/vandpurnama/.local/share/bottles/runners total 12 drwxr-xr-x 7 vandpurnama vandpurnama 4096 Jan 19 04:38 caffe-7.0 drwx------ 3 vandpurnama vandpurnama 4096 Jan 27 22:28 caffe-7.0-x86_64 drwxr-xr-x 6 vandpurnama vandpurnama 4096 Des 5 00:30 lutris-6.21-6-fshack

ls -l /home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin ls: cannot access '/home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin': No such file or directory

LSB Version: n/a Distributor ID: ManjaroLinux Description: Manjaro Linux Release: 21.2.2 Codename: Qonos

--- Display --- *-display
description: VGA compatible controller product: Core Processor Integrated Graphics Controller vendor: Intel Corporation physical id: 2 bus info: pci@0000:00:02.0 version: 02 width: 64 bits clock: 33MHz capabilities: vga_controller bus_master cap_list configuration: driver=i915 latency=0 resources: irq:26 memory:d0000000-d03fffff memory:c0000000-cfffffff ioport:5050(size=8) memory:c0000-dffff

mirkobrombin commented 2 years ago

ls: cannot access '/home/vandpurnama/.local/share/bottles/runners/caffe-7.0-x86_64/bin': No such file or directory

Delete the bottle runners path please, it seems broken. Also use flatpak if the problem persist, Arch seems have some problems with python. Maybe a clean new install should fix it.

juxuanu commented 2 years ago

I can't create any Bottle that requires DXVK.

(13:28:46) INFO Applying environment: [Gaming]… 
(13:28:47) INFO There is no running wineserver. 
(13:28:47) INFO Installing DXVK… 
(13:28:47) ERROR Error while running async job: <bound method Manager.create_bottle of <bottles.backend.manager.Manager object at 0x7f0a013e2eb0>>
Exception: [Errno 2] El fitxer o directori no existeix: '/home/icar/.var/app/com.usebottles.bottles/data/bottles/bottles/WoW/drive_c/windows//syswow64/d3d9.dll' 
  File "/app/share/bottles/bottles/utils.py", line 339, in __target
    result = self.task_func(*args, **kwargs)
  File "/app/share/bottles/bottles/backend/manager.py", line 1178, in create_bottle
    self.install_dll_component(config, "dxvk", version=dxvk_name)
  File "/app/share/bottles/bottles/backend/manager.py", line 1372, in install_dll_component
    manager.install(config, overrides_only, exclude)
  File "/app/share/bottles/bottles/backend/dll.py", line 65, in install
    self.__install_dll(config, path, dll, False, overrides_only)
  File "/app/share/bottles/bottles/backend/dll.py", line 98, in __install_dll
    shutil.copyfile(source, target)
  File "/usr/lib/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst:
Display:
    X.org: true
    X.org (port): :99.0
    Wayland: true
Graphics:
    vendors:
        amd:
            vendor: amd
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/radeon_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/radeon_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 5.16.3-arch1-1
Distro:
    Name: GNOME
    Version: '"41 (Flatpak runtime)"'
Tools:
    cabextract: true
    p7zip: true
    patool: true
Bottles_envs: null
mirkobrombin commented 2 years ago

I'm unable to reproduce any of the issues in these reports |: As said, try to delete from ~/var/app/com.usebottles.bottles/data/bottles/ the following folders:

and restart bottles. It should pop up the onboard and install the components again.

juxuanu commented 2 years ago

I just went ahead and ➜ rm -rf .var/app/com.usebottles.bottles/data/bottles while having Bottles uninstalled. Then I installed it and I ran it:

➜ flatpak run com.usebottles.bottles            
(14:11:26) ERROR Data file not found. Creating new one. 
/app/share/bottles/bottles/dialogs/generic.py:18: PyGIWarning: GtkSource was imported without specifying a version first. Use gi.require_version('GtkSource', '4') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GtkSource, Gdk, Handy, Pango, WebKit2
(14:11:26) INFO Performing Bottles checks... 
(14:11:26) INFO Runners path doesn't exist, creating now. 
(14:11:26) INFO Bottles path doesn't exist, creating now. 
(14:11:26) INFO Layers path doesn't exist, creating now. 
(14:11:26) INFO Dxvk path doesn't exist, creating now. 
(14:11:26) INFO Vkd3d path doesn't exist, creating now. 
(14:11:26) INFO Nvapi path doesn't exist, creating now. 
(14:11:26) INFO Temp path doesn't exist, creating now. 
(14:11:29) INFO Bottles Started! 
(14:11:36) INFO Performing Bottles checks... 
(14:11:36) WARNING No dxvk found. 
(14:11:37) INFO Installing component: [dxvk-1.9.4]. 
Downloading dxvk-1.9.4.tar.gz: 100% [==================================================>

(14:11:39) INFO Renaming [dxvk-1.9.4.tar.gz] to [dxvk-1.9.4.tar.gz]. 
(14:11:39) INFO DXVKs found:
     - dxvk-1.9.4

(14:11:39) WARNING No vkd3d found. 
(14:11:39) INFO Installing component: [vkd3d-v2.5]. 
Downloading vkd3d-proton-2.5.tar.gz: 100% [==================================================>

(14:11:40) INFO Renaming [vkd3d-proton-2.5.tar.gz] to [vkd3d-proton-2.5.tar.gz]. 
(14:11:41) INFO VKD3Ds found:
     - vkd3d-proton-2.5

(14:11:41) WARNING No nvapi found. 
(14:12:42) ERROR Cannot fetch manifest for dxvk-nvapi-v0.5.1. 
<urlopen error EOF occurred in violation of protocol (_ssl.c:1129)>
(14:12:42) WARNING No runners found. 
(14:12:42) INFO Installing component: [caffe-7.0]. 
Downloading caffe-7.0-x86_64.tar.xz: 100% [==================================================>

(14:12:49) INFO Renaming [caffe-7.0-x86_64.tar.xz] to [caffe-7.0-x86_64.tar.xz]. 
(14:13:01) INFO Runners found:
     - caffe-7.0

(14:13:35) ERROR Missing essential components. Installing… 
(14:13:35) INFO Runners found:
     - caffe-7.0

(14:13:35) INFO DXVKs found:
     - dxvk-1.9.4

(14:13:35) INFO VKD3Ds found:
     - vkd3d-proton-2.5

(14:13:35) WARNING No nvapi found. 
(14:13:35) ERROR Missing essential components. Installing… 
(14:13:35) INFO Runners found:
     - caffe-7.0

(14:13:35) INFO DXVKs found:
     - dxvk-1.9.4

(14:13:35) INFO VKD3Ds found:
     - vkd3d-proton-2.5

(14:13:35) WARNING No nvapi found. 
(14:13:35) ERROR Missing essential components. Installing… 
(14:13:35) INFO Runners found:
     - caffe-7.0

(14:13:35) INFO DXVKs found:
     - dxvk-1.9.4

(14:13:35) INFO VKD3Ds found:
     - vkd3d-proton-2.5

(14:13:35) WARNING No nvapi found. 
(14:13:35) ERROR Fail to install components, tried 3 times. 
Traceback (most recent call last):
  File "/app/share/bottles/bottles/views/new.py", line 253, in finish
    self.new_bottle_config = result.data.get("config")
AttributeError: 'bool' object has no attribute 'data'

at which point it got stuck with: imatge

mirkobrombin commented 2 years ago

Seems like your are not able to reach the Bottles repositories (which are up and working fine)

juxuanu commented 2 years ago

I have no firewall enabled, and I experience no connection problems. I also see that dxvk and vkd3d were downloaded correctly, it's just nvapi erroring out (although I have no Nvidia card, but whatever). What is the Bottles repository address?

mirkobrombin commented 2 years ago

Does it works from Bottles preferences?

juxuanu commented 2 years ago

I uninstalled it with ➜ flatpak uninstall com.usebottles.bottles --delete-data and installed again. Now I got this:

➜ flatpak run com.usebottles.bottles            
(14:27:31) ERROR Data file not found. Creating new one. 
/app/share/bottles/bottles/dialogs/generic.py:18: PyGIWarning: GtkSource was imported without specifying a version first. Use gi.require_version('GtkSource', '4') before import to ensure that the right version gets loaded.
  from gi.repository import Gtk, GtkSource, Gdk, Handy, Pango, WebKit2
(14:27:33) INFO Performing Bottles checks... 
(14:27:33) INFO Runners path doesn't exist, creating now. 
(14:27:33) INFO Bottles path doesn't exist, creating now. 
(14:27:33) INFO Layers path doesn't exist, creating now. 
(14:27:33) INFO Dxvk path doesn't exist, creating now. 
(14:27:33) INFO Vkd3d path doesn't exist, creating now. 
(14:27:33) INFO Nvapi path doesn't exist, creating now. 
(14:27:33) INFO Temp path doesn't exist, creating now. 
(14:27:35) INFO Bottles Started! 
(14:27:38) INFO Performing Bottles checks... 
(14:27:38) WARNING No dxvk found. 
(14:27:38) INFO Installing component: [dxvk-1.9.4]. 
Downloading dxvk-1.9.4.tar.gz: 100% [==================================================>

(14:27:41) INFO Renaming [dxvk-1.9.4.tar.gz] to [dxvk-1.9.4.tar.gz]. 
(14:27:41) INFO DXVKs found:
     - dxvk-1.9.4

(14:27:41) WARNING No vkd3d found. 
(14:27:42) INFO Installing component: [vkd3d-v2.5]. 
Downloading vkd3d-proton-2.5.tar.gz: 100% [==================================================>

(14:27:43) INFO Renaming [vkd3d-proton-2.5.tar.gz] to [vkd3d-proton-2.5.tar.gz]. 
(14:27:43) INFO VKD3Ds found:
     - vkd3d-proton-2.5

(14:27:43) WARNING No nvapi found. 
(14:27:44) INFO Installing component: [dxvk-nvapi-v0.5.1]. 
Downloading dxvk-nvapi-v0.5.1.tar.gz: 100% [==================================================>

(14:27:45) INFO Renaming [dxvk-nvapi-v0.5.1.tar.gz] to [dxvk-nvapi-v0.5.1.tar.gz]. 
(14:27:45) INFO NVAPIs found:
     - dxvk-nvapi-v0.5.1

(14:27:45) WARNING No runners found. 
(14:28:47) ERROR Cannot fetch manifest for caffe-7.0. 
<urlopen error EOF occurred in violation of protocol (_ssl.c:1129)>

That's only the welcome window, nothing else done.

Then, of course, trying to create a Bottle, errors out because there are no runners:

Traceback (most recent call last):
  File "/app/share/bottles/bottles/views/new.py", line 221, in create_bottle
    runner = self.manager.runners_available[0]
IndexError: list index out of range
juxuanu commented 2 years ago

Does it works from Bottles preferences?

I went into Preferences>Runners and clicked to download caffe-7.0. The icon instantly changed (suspicion: it did nothing) and when clicking on the folder icon, I got:

(14:31:51) INFO Opening the file manager in the path … 
Failed to open '/home/icar/.var/app/com.usebottles.bottles/data/bottles/runners/caffe-7.0': No such file or directory

Then, I enabled "Pre-release" and downloaded lutris-ge-7.0rc2-1, which worked:

Failed to open '/home/icar/.var/app/com.usebottles.bottles/data/bottles/runners/caffe-7.0': No such file or directory(14:33:44) INFO Installing component: [lutris-ge-7.0rc2-1]. 
Downloading wine-lutris-ge-7.0rc2-1-x86_64.tar.xz: 100% [==================================================>

(14:33:54) INFO Renaming [wine-lutris-ge-7.0rc2-1-x86_64.tar.xz] to [lutris-ge-7.0rc2-1.tar.xz]. 
(14:34:12) INFO Runners found:
     - lutris-ge-7.0rc2-1

Then I tried creating a new Gaming Bottle, but it errored out here, again:

(14:35:35) INFO Applying environment: [Gaming]… 
(14:35:35) INFO There is no running wineserver. 
(14:35:35) INFO Installing DXVK… 
(14:35:35) ERROR Error while running async job: <bound method Manager.create_bottle of <bottles.backend.manager.Manager object at 0x7fe0ad54f160>>
Exception: [Errno 2] El fitxer o directori no existeix: '/home/icar/.var/app/com.usebottles.bottles/data/bottles/bottles/WoW/drive_c/windows//syswow64/d3d9.dll' 
  File "/app/share/bottles/bottles/utils.py", line 339, in __target
    result = self.task_func(*args, **kwargs)
  File "/app/share/bottles/bottles/backend/manager.py", line 1178, in create_bottle
    self.install_dll_component(config, "dxvk", version=dxvk_name)
  File "/app/share/bottles/bottles/backend/manager.py", line 1372, in install_dll_component
    manager.install(config, overrides_only, exclude)
  File "/app/share/bottles/bottles/backend/dll.py", line 65, in install
    self.__install_dll(config, path, dll, False, overrides_only)
  File "/app/share/bottles/bottles/backend/dll.py", line 98, in __install_dll
    shutil.copyfile(source, target)
  File "/usr/lib/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst:

So, going into Preferences>DXVK/VKD3D showed no dxvk-1.9.4 installed although it was installed when first run. I hit download and:

(14:36:19) INFO Installing component: [dxvk-1.9.4]. 
(14:36:19) WARNING File [dxvk-1.9.4.tar.gz] already exists in temp, skipping. 
(14:36:19) INFO DXVKs found:
     - dxvk-1.9.4

Now, let's try creating a new Gaming Bottle again:

(14:37:53) INFO Applying environment: [Gaming]… 
(14:37:53) INFO There is no running wineserver. 
(14:37:53) INFO Installing DXVK… 
(14:37:53) ERROR Error while running async job: <bound method Manager.create_bottle of <bottles.backend.manager.Manager object at 0x7fe0ad54f160>>
Exception: [Errno 2] El fitxer o directori no existeix: '/home/icar/.var/app/com.usebottles.bottles/data/bottles/bottles/WoW__107/drive_c/windows//syswow64/d3d9.dll' 
  File "/app/share/bottles/bottles/utils.py", line 339, in __target
    result = self.task_func(*args, **kwargs)
  File "/app/share/bottles/bottles/backend/manager.py", line 1178, in create_bottle
    self.install_dll_component(config, "dxvk", version=dxvk_name)
  File "/app/share/bottles/bottles/backend/manager.py", line 1372, in install_dll_component
    manager.install(config, overrides_only, exclude)
  File "/app/share/bottles/bottles/backend/dll.py", line 65, in install
    self.__install_dll(config, path, dll, False, overrides_only)
  File "/app/share/bottles/bottles/backend/dll.py", line 98, in __install_dll
    shutil.copyfile(source, target)
  File "/usr/lib/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst:

Same error as the beginning.

mirkobrombin commented 2 years ago

image

I'm trying to reproduce in every method 😅 Do you have tweaked the flatpak permissions?

juxuanu commented 2 years ago

No tweaked permissions. Is the Python used by Bottles provided by the Flatpak runtime? Maybe we are using different versions.

mirkobrombin commented 2 years ago

Yup

mirkobrombin commented 2 years ago

I've managed to reproduce without results. I'll keep the issue open so maybe other users face the same problem.

K4rakara commented 2 years ago

I've had the same issue. If theres any information I can provide to help solve the issue, let me know.

mirkobrombin commented 2 years ago

I've had the same issue. If theres any information I can provide to help solve the issue, let me know.

Can you share the health check?

K4rakara commented 2 years ago

I've had the same issue. If theres any information I can provide to help solve the issue, let me know.

Can you share the health check?

Display:
    X.org: true
    X.org (port): :99.0
    Wayland: true
Graphics:
    vendors:
        intel:
            vendor: intel
            envs:
                DRI_PRIME: '1'
            icd: /usr/lib/x86_64-linux-gnu/GL/vulkan/icd.d/intel_icd.x86_64.json:/usr/lib/i386-linux-gnu/GL/vulkan/icd.d/intel_icd.i686.json
    prime:
        integrated: null
        discrete: null
Kernel:
    Type: Linux
    Version: 5.16.4-arch1-1
Distro:
    Name: GNOME
    Version: '"41 (Flatpak runtime)"'
Tools:
    cabextract: true
    p7zip: true
    patool: true
Bottles_envs: null
mirkobrombin commented 2 years ago

We released an hotfix yesterday, does it fixed the problem?

juxuanu commented 2 years ago

I still get

(18:04:11) INFO Installing DXVK… 
(18:04:11) ERROR Error while running async job: <bound method Manager.create_bottle of <bottles.backend.managers.manager.Manager object at 0x7f9548d3f190>>
    Exception: [Errno 2] El fitxer o directori no existeix: '/home/icar/.var/app/com.usebottles.bottles/data/bottles/bottles/WoW/drive_c/windows//syswow64/d3d9.dll'

  File "/app/share/bottles/bottles/utils.py", line 103, in __target
    result = self.task_func(*args, **kwargs)
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1169, in create_bottle
    self.install_dll_component(config, "dxvk", version=dxvk_name)
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1363, in install_dll_component
    manager.install(config, overrides_only, exclude)
  File "/app/share/bottles/bottles/backend/dlls/dll.py", line 65, in install
    self.__install_dll(config, path, dll, False, overrides_only)
  File "/app/share/bottles/bottles/backend/dlls/dll.py", line 98, in __install_dll
    shutil.copyfile(source, target)
  File "/usr/lib/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst:

" El fitxer o directori no existeix: " means file not found.

mirkobrombin commented 2 years ago

Does this path actually exists? /home/icar/.var/app/com.usebottles.bottles/data/bottles/bottles/WoW/drive_c/windows//syswow64/d3d9.dll

juxuanu commented 2 years ago

/home/icar/.var/app/com.usebottles.bottles/data/bottles/bottles/WoW exists, but there's nothing in it.

juxuanu commented 2 years ago

After closing Bottles and opening it again, it informed me of the error and gave me the option to open a new issue. What was curious is that the Bottle appeared, but was labelled as damaged. I clicked on repair and I got a file in that path:

➜ c bottle.yml 
Arch: win64
Creation_Date: '2022-02-05 18:38:50.034499'
Custom_Path: false
DLL_Overrides: {}
DXVK: ''
Environment: Custom
Environment_Variables: {}
External_Programs: {}
Installed_Dependencies: []
Latest_Executables: []
NVAPI: ''
Name: WoW
Parameters:
    aco_compiler: false
    discrete_gpu: false
    dxvk: false
    dxvk_hud: false
    dxvk_nvapi: false
    fixme_logs: false
    fsr: false
    fsr_level: 5
    fullscreen_capture: false
    gamemode: false
    gamescope: false
    gamescope_borderless: false
    gamescope_fps: 0
    gamescope_fps_no_focus: 0
    gamescope_fullscreen: true
    gamescope_game_height: 0
    gamescope_game_width: 0
    gamescope_scaling: false
    gamescope_window_height: 0
    gamescope_window_width: 0
    pulseaudio_latency: false
    sync: wine
    use_runtime: false
    virtual_desktop: false
    virtual_desktop_res: 1280x720
    vkd3d: false
Path: WoW
Runner: caffe-7.0
State: 0
Uninstallers: {}
Update_Date: '2022-02-05 18:38:50.034526'
VKD3D: ''
Versioning: false
Windows: win10
WorkingDir: ''
juxuanu commented 2 years ago

I've poked around and I see that if I click on the Wine configuration option, namely "Wine config // Adjust internal settings.", Wine informs me that is tweaking /home/icar/.wine, which is what I have in /etc/environment as WINEPREFIX. Could that be the issue? I'd guess Bottles would set up a Wine prefix for each Bottle?

K4rakara commented 2 years ago

Just tried on flathub-beta/com.usebottles.bottles, and got this error:

[Errno 2] No such file or directory: '/home/USER/.var/app/com.usebottles.bottles/data/bottles/bottles/Test/drive_c/windows//syswow64/d3d9.dll'  File "/app/share/bottles/bottles/utils.py", line 103, in __target
    result = self.task_func(*args, **kwargs)

  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1181, in create_bottle
    self.install_dll_component(config, "dxvk", version=dxvk_name)

  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1375, in install_dll_component
    manager.install(config, overrides_only, exclude)

  File "/app/share/bottles/bottles/backend/dlls/dll.py", line 65, in install
    self.__install_dll(config, path, dll, False, overrides_only)

  File "/app/share/bottles/bottles/backend/dlls/dll.py", line 98, in __install_dll
    shutil.copyfile(source, target)

  File "/usr/lib/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst:

As the error states, the dll doesn't exist, nor any of the parent directories. Maybe bottles isn't setting up the wineprefix before installing it? I do have WINEPREFIX set to /home/julia/.opt/wine for non-bottles applications, if thats relevant.

mirkobrombin commented 2 years ago

I've poked around and I see that if I click on the Wine configuration option, namely "Wine config // Adjust internal settings.", Wine informs me that is tweaking /home/icar/.wine, which is what I have in /etc/environment as WINEPREFIX. Could that be the issue? I'd guess Bottles would set up a Wine prefix for each Bottle?

Bottles replace the WINEPREFIX env var in its environment, so it doesn't take care of the one defined in your host. Can you start bottles (flatpak) with env var ENABLE_BASH=1? So, launch the command line from the bottle details and it will give you a bash shell inside the flatpak, so check how the WINEPREFFIX env var is set.

I've tried to reproduce this using flatpak in:

But still not able to reproduce. Idk which info can help here..

K4rakara commented 2 years ago

@mirkobrombin Unsetting WINEPREFIX before running bottles solves the issue. If I try to open cmd in one of the bottles when WINEPREFIX is set, it tries to access the directory used by WINEPREFIX, and errors, because its sandboxed.

mirkobrombin commented 2 years ago

@mirkobrombin Unsetting WINEPREFIX before running bottles solves the issue. If I try to open cmd in one of the bottles when WINEPREFIX is set, it tries to access the directory used by WINEPREFIX, and errors, because its sandboxed.

So it was not able to "overwrite" such var. Weird :S btw nice found :D

mirkobrombin commented 2 years ago

Closing as we cannot fix this and it is actually an "external conflict". Feel free to add more comments and info, so we can deeply investigate.

juxuanu commented 2 years ago

@K4rakara It does not solve it for me, see:

flatpak run --env=WINEPREFIX='' com.usebottles.bottles

(...)

(16:17:05) INFO Generating bottle configuration… 
(16:17:05) INFO Using WINE Runtime tool 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:05) INFO Setting Windows version… 
(16:17:05) INFO Removing Value: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion] from Key: [VersionNumber] in WoW registry 
(16:17:06) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:06) INFO  
(16:17:06) INFO Removing Value: [HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion] from Key: [CurrentVersion] in WoW registry 
(16:17:06) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:06) INFO  
(16:17:06) INFO Removing Value: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ProductOptions] from Key: [ProductType] in WoW registry 
(16:17:07) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:07) INFO  
(16:17:07) INFO Removing Value: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\ServiceCurrent] from Key: [OS] in WoW registry 
(16:17:08) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:08) INFO  
(16:17:08) INFO Removing Value: [HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Windows] from Key: [CSDVersion] in WoW registry 
(16:17:08) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:08) INFO  
(16:17:08) INFO Removing Value: [HKEY_CURRENT_USER\Software\Wine] from Key: [Version] in WoW registry 
(16:17:09) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:09) INFO  
(16:17:09) INFO Importing bundle to WoW registry 
(16:17:09) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:10) INFO  
(16:17:10) INFO Using WINE Runtime tool 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:10) INFO Using WINE Runtime tool 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:10) INFO Using WINE Runtime tool 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:10) INFO Setting CMD default settings… 
(16:17:10) INFO Importing bundle to WoW registry 
(16:17:10) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:10) INFO  
(16:17:10) INFO Using WINE Runtime tool 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:10) INFO Optimizing environment… 
(16:17:10) INFO Adding Key: [HKEY_CURRENT_USER\Software\Wine\DllOverrides] with Value: [winemenubuilder.exe] and Data: [] in WoW registry 
(16:17:11) INFO Using WINE Registry CLI 
wine: invalid directory  in WINEPREFIX: not an absolute path
(16:17:11) INFO  
(16:17:11) INFO Applying environment: [Gaming]… 
(16:17:12) INFO There is no running wineserver. 
(16:17:12) INFO Installing DXVK… 
(16:17:12) ERROR Error while running async job: <bound method Manager.create_bottle of <bottles.backend.managers.manager.Manager object at 0x7f9c072dd490>>
    Exception: [Errno 2] El fitxer o directori no existeix: '/home/icar/.var/app/com.usebottles.bottles/data/bottles/bottles/WoW/drive_c/windows//syswow64/d3d9.dll'

  File "/app/share/bottles/bottles/utils.py", line 103, in __target
    result = self.task_func(*args, **kwargs)
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1169, in create_bottle
    self.install_dll_component(config, "dxvk", version=dxvk_name)
  File "/app/share/bottles/bottles/backend/managers/manager.py", line 1363, in install_dll_component
    manager.install(config, overrides_only, exclude)
  File "/app/share/bottles/bottles/backend/dlls/dll.py", line 65, in install
    self.__install_dll(config, path, dll, False, overrides_only)
  File "/app/share/bottles/bottles/backend/dlls/dll.py", line 98, in __install_dll
    shutil.copyfile(source, target)
  File "/usr/lib/python3.9/shutil.py", line 266, in copyfile
    with open(dst, 'wb') as fdst:
eth0OS commented 2 years ago

I also have this error. This is the output running from the terminal:

(23:11:00) INFO Using WINE Registry CLI wine: could not load ntdll.so: /usr/lib/libc.so.6: version 'GLIBC_2.33' not found (required by /home/eth0/.local/share/bottles/runners/caffe-7.2/bin/../lib/wine/x86_64-unix/ntdll.so) (23:11:00) INFO
(23:11:00) INFO Applying environment: [Gaming]… (23:11:00) INFO There is no running wineserver. (23:11:00) INFO Installing DXVK… (23:11:00) ERROR Error while running async job: <bound method Manager.create_bottle of <bottles.backend.managers.manager.Manager object at 0x7fd18baa0970>> Exception: [Errno 2] Arquivo ou diretório inexistente: '/mnt/armaz2/Games/bottles/test/drive_c/windows//syswow64/d3d9.dll'

File "/usr/share/bottles/bottles/utils.py", line 103, in target result = self.task_func(*args, **kwargs) File "/usr/share/bottles/bottles/backend/managers/manager.py", line 1161, in create_bottle self.install_dll_component(config, "dxvk", version=dxvk_name) File "/usr/share/bottles/bottles/backend/managers/manager.py", line 1355, in install_dll_component manager.install(config, overrides_only, exclude) File "/usr/share/bottles/bottles/backend/dlls/dll.py", line 65, in install self.install_dll(config, path, dll, False, overrides_only) File "/usr/share/bottles/bottles/backend/dlls/dll.py", line 98, in __install_dll shutil.copyfile(source, target) File "/usr/lib/python3.10/shutil.py", line 256, in copyfile with open(dst, 'wb') as fdst:

Version: 2022.2.14-trento

What it is funny is: caffe-7.2 (and 7.0) won't be able to create the prefix whatsoever, I always get the same error above, so the "Gaming" labeled bottle won't get to work at all. But if I try to create a "Custom" bottle and use lutris-ge-7.1.1 instead everything runs absolutely fine.

I'm on void linux compiling bottles from source, glibc 2.70.2.

psydvl commented 2 years ago

@eth0OS are you sure about glibc 2.70.2? It seems you only have 2.32 https://voidlinux.org/packages/?arch=x86_64&q=glibc And that why the error appears: caffe built with 2.33 version

mirkobrombin commented 2 years ago

Health check now show the glibc version

eth0OS commented 2 years ago

@eth0OS are you sure about glibc 2.70.2? It seems you only have 2.32 https://voidlinux.org/packages/?arch=x86_64&q=glibc And that why the error appears: caffe built with 2.33 version

Yes, you are right I got the version number of glib, sorry, not glibc, it's probably the culprit