Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: bottles-cli still broken as of version 51.17 #3623

Closed
guihkx opened this issue Dec 21, 2024 · 2 comments
Closed

[Bug]: bottles-cli still broken as of version 51.17 #3623

guihkx opened this issue Dec 21, 2024 · 2 comments

Comments

@guihkx
Copy link

guihkx commented Dec 21, 2024

Describe the bug

This is similar to #3595, but not exactly the same.

bottles-cli is still not fully working as of v51.17:

$ flatpak --filesystem=$PWD run --command=bottles-cli com.usebottles.bottles run -b Default -e $PWD/rufus-4.6p.exe
15:14:48 (INFO) Forcing offline mode 
Traceback (most recent call last):
  File "/app/bin/bottles-cli", line 758, in <module>
    cli = CLI()
          ^^^^^
  File "/app/bin/bottles-cli", line 236, in __init__
    self.__process_args()
  File "/app/bin/bottles-cli", line 285, in __process_args
    self.run_program()
  File "/app/bin/bottles-cli", line 699, in run_program
    WineExecutor.run_program(bottle, program)
                                     ^^^^^^^
UnboundLocalError: cannot access local variable 'program' where it is not associated with a value

Downgrading to 51.15 makes it work again.

To Reproduce

1. Download this test program
2. Assuming you're using the Flatpak package, try to run the executable inside a bottle named Default:

flatpak --filesystem=$PWD run --command=bottles-cli com.usebottles.bottles run -b Default -e $PWD/rufus-4.6p.exe

3. Observe the error message given:

15:14:48 (INFO) Forcing offline mode 
Traceback (most recent call last):
  File "/app/bin/bottles-cli", line 758, in <module>
    cli = CLI()
          ^^^^^
  File "/app/bin/bottles-cli", line 236, in __init__
    self.__process_args()
  File "/app/bin/bottles-cli", line 285, in __process_args
    self.run_program()
  File "/app/bin/bottles-cli", line 699, in run_program
    WineExecutor.run_program(bottle, program)
                                     ^^^^^^^
UnboundLocalError: cannot access local variable 'program' where it is not associated with a value

Package

Flatpak from Flathub

Distribution

Arch Linux

Debugging Information

N/A

Troubleshooting Logs

No response

Additional context

No response

@jntesteves
Copy link
Contributor

Duplicate of #3599
This was fixed in #3605 but a new release hasn't been made yet.

@guihkx
Copy link
Author

guihkx commented Dec 28, 2024

Thanks for the heads up! Closing then.

@guihkx guihkx closed this as completed Dec 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants