Bug 2257180
| Summary: | [abrt] bottles: check_bottles(): manager.py:782:check_bottles:FileNotFoundError: [Errno 2] No such file or directory: '/home/bdp/.local/share/bottles/bottles' | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | bdp <inbox1> | ||||||||||||||||
| Component: | bottles | Assignee: | Sandro <gui1ty> | ||||||||||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||||||||||
| Severity: | unspecified | Docs Contact: | |||||||||||||||||
| Priority: | unspecified | ||||||||||||||||||
| Version: | 39 | CC: | ego.cordatus, gui1ty, inbox1, mail, maxwell, thunderbirdtr, walter.pete | ||||||||||||||||
| Target Milestone: | --- | ||||||||||||||||||
| Target Release: | --- | ||||||||||||||||||
| Hardware: | x86_64 | ||||||||||||||||||
| OS: | Unspecified | ||||||||||||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/56e530ddec916181e8dbde2412904028e68dcfd | ||||||||||||||||||
| Whiteboard: | abrt_hash:16464404174af798475fe3f3f3b56292b39c669e;VARIANT_ID=workstation; | ||||||||||||||||||
| Fixed In Version: | bottles-51.11-3.fc39 bottles-51.11-3.fc38 bottles-51.11-3.fc40 | Doc Type: | If docs needed, set a value | ||||||||||||||||
| Doc Text: | Story Points: | --- | |||||||||||||||||
| Clone Of: | Environment: | ||||||||||||||||||
| Last Closed: | 2024-03-19 01:10:30 UTC | Type: | --- | ||||||||||||||||
| Regression: | --- | Mount Type: | --- | ||||||||||||||||
| Documentation: | --- | CRM: | |||||||||||||||||
| Verified Versions: | Category: | --- | |||||||||||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||||||||||
| Embargoed: | |||||||||||||||||||
| Attachments: |
|
||||||||||||||||||
Created attachment 2007669 [details]
File: os_info
Created attachment 2007670 [details]
File: environ
Created attachment 2007671 [details]
File: mountinfo
Created attachment 2007672 [details]
File: open_fds
Created attachment 2007673 [details]
File: namespaces
Created attachment 2007674 [details]
File: backtrace
Created attachment 2007675 [details]
File: cpuinfo
We probably need to patch bottles to make sure these directories are being created before they're accessed. I guess that flatpak handles this differently. In the meantime, bdp, can you try this? $ mkdir -p /home/bdp/.local/share/bottles/bottles (In reply to Maxwell G from comment #8) > We probably need to patch bottles to make sure these directories are being > created before they're accessed. I guess that flatpak handles this > differently. In the meantime, bdp, can you try this? > > $ mkdir -p /home/bdp/.local/share/bottles/bottles ok done (In reply to Maxwell G from comment #8) > We probably need to patch bottles to make sure these directories are being > created before they're accessed. I guess that flatpak handles this > differently. In the meantime, bdp, can you try this? I had a glimpse through the code. In `manager.py`, which is 1,600+ lines, I could wrap the call[1] in: try: bottles = os.listdir(Paths.bottles) except FileNotFoundError: os.makedirs(Paths.bottles) bottles = [] OTOH, there's already a check in the same file in check_app_dirs()[2]. Apparently, that's not being called in certain situations (e.g. when calling an executable directly from the command line). But we could make use of it. Instead of above, call check_app_dirs(), which will create the dir if it doesn't exist. try: bottles = os.listdir(Paths.bottles) except FileNotFoundError: check_app_dirs() bottles = [] [1] https://github.com/bottlesdevs/Bottles/blob/a3a8f39744e0cc1cc5aaa8b22015de558b8d5700/bottles/backend/managers/manager.py#L814 [2] https://github.com/bottlesdevs/Bottles/blob/a3a8f39744e0cc1cc5aaa8b22015de558b8d5700/bottles/backend/managers/manager.py#L250 FEDORA-2024-0dfcd5ea8e (bottles-51.11-3.fc39) has been submitted as an update to Fedora 39. https://bodhi.fedoraproject.org/updates/FEDORA-2024-0dfcd5ea8e FEDORA-2024-5445da7373 (bottles-51.11-3.fc38) has been submitted as an update to Fedora 38. https://bodhi.fedoraproject.org/updates/FEDORA-2024-5445da7373 FEDORA-2024-5932cac21c (bottles-51.11-3.fc40) has been submitted as an update to Fedora 40. https://bodhi.fedoraproject.org/updates/FEDORA-2024-5932cac21c FEDORA-2024-5932cac21c has been pushed to the Fedora 40 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5932cac21c` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5932cac21c See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-5445da7373 has been pushed to the Fedora 38 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-5445da7373` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-5445da7373 See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-0dfcd5ea8e has been pushed to the Fedora 39 testing repository. Soon you'll be able to install the update with the following command: `sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0dfcd5ea8e` You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0dfcd5ea8e See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates. FEDORA-2024-0dfcd5ea8e (bottles-51.11-3.fc39) has been pushed to the Fedora 39 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-5445da7373 (bottles-51.11-3.fc38) has been pushed to the Fedora 38 stable repository. If problem still persists, please make note of it in this bug report. FEDORA-2024-5932cac21c (bottles-51.11-3.fc40) has been pushed to the Fedora 40 stable repository. If problem still persists, please make note of it in this bug report. |
Version-Release number of selected component: bottles-1:51.10-2.fc39 Additional info: reporter: libreport-2.17.11 kernel: 6.6.9-200.fc39.x86_64 cmdline: /usr/bin/python3 /usr/bin/bottles /run/media/bdp/zippprogs1/cddvdburning/burn4free_setup.exe cgroup: 0::/user.slice/user-1000.slice/user/app.slice/dbus-:1.2-org.gnome.Nautilus uid: 1000 reason: manager.py:782:check_bottles:FileNotFoundError: [Errno 2] No such file or directory: '/home/bdp/.local/share/bottles/bottles' executable: /usr/bin/bottles type: Python3 package: bottles-1:51.10-2.fc39 runlevel: N 5 exception_type: FileNotFoundError crash_function: check_bottles interpreter: python3-3.12.1-2.fc39.x86_64 Truncated backtrace: manager.py:782:check_bottles:FileNotFoundError: [Errno 2] No such file or directory: '/home/bdp/.local/share/bottles/bottles' Traceback (most recent call last): File "/usr/share/bottles/bottles/frontend/main.py", line 185, in do_command_line return self.__process_uri(uri) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/bottles/bottles/frontend/main.py", line 198, in __process_uri dialog = BottlePickerDialog(application=self, arg_exe=uri) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/share/bottles/bottles/frontend/windows/bottlepicker.py", line 53, in __init__ mng.check_bottles() File "/usr/share/bottles/bottles/backend/managers/manager.py", line 782, in check_bottles bottles = os.listdir(Paths.bottles) ^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/home/bdp/.local/share/bottles/bottles' Local variables in innermost frame: self: <bottles.backend.managers.manager.Manager object at 0x7f7537046900> silent: False