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

NFAuthenticationKey.py: 'Unable to connect with the browser' #1712

Open
bobblkabb opened this issue Jul 24, 2024 · 1 comment
Open

NFAuthenticationKey.py: 'Unable to connect with the browser' #1712

bobblkabb opened this issue Jul 24, 2024 · 1 comment
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it

Comments

@bobblkabb
Copy link

Netflix add-on version

1.23.3

Operative systems used

Linux (Ubuntu / Mint / ...)

Kodi version used

Other (specify in description)

Description of the bug

When I execute the script browser opens up file temp location and after some time I'm getting error message:
Unable to connect with the browser
Had to do
BROWSER_PATH = '/usr/bin/firefox'
before because it couldn't find it.

Running openSUSE Tumbleweed. Necessary python packages are installed from the repo.

Steps to reproduce the behavior

  1. Install python311-pycryptodomex python311-websocket-client via package manager
  2. execute 'python3 NFAuthenticationKey.py'
  3. temp location is opened in browser
  4. -> error message after some time

Debug log - mandatory

no log

Possible fix

No response

Additional context

No response

Screenshots

No response

@bobblkabb bobblkabb added Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it labels Jul 24, 2024
@StatJonic
Copy link

StatJonic commented Oct 12, 2024

NFAuthenticationKey.py setting:
BROWSER_PATH = '/var/lib/flatpak/app/com.brave.Browser/current/0721705cdc4c7e2bf2652a469bbe23e1d93e82856362ec3d050a5ad58d3b8886/files/brave'

input command:
python3 NFAuthenticationKey.py

output:

Browser startup... (/var/lib/flatpak/app/com.brave.Browser/current/0721705cdc4c7e2bf2652a469bbe23e1d93e82856362ec3d050a5ad58d3b8886/files/brave) please wait
An error is occurred:
[Errno 13] Permission denied: '/var/lib/flatpak/app/com.brave.Browser/current/0721705cdc4c7e2bf2652a469bbe23e1d93e82856362ec3d050a5ad58d3b8886/files/brave'
Traceback (most recent call last):
File "/home/fuelluz/Scrivania/NFAuthenticationKey.py", line 62, in init
browser_proc = open_browser(browser_temp_path)
File "/home/fuelluz/Scrivania/NFAuthenticationKey.py", line 229, in open_browser
return subprocess.Popen([browser_path] + params, stdout=dev_null, stderr=subprocess.STDOUT)
File "/usr/lib/python3.10/subprocess.py", line 971, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.10/subprocess.py", line 1863, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
PermissionError: [Errno 13] Permission denied: '/var/lib/flatpak/app/com.brave.Browser/current/0721705cdc4c7e2bf2652a469bbe23e1d93e82856362ec3d050a5ad58d3b8886/files/brave'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Triage: Needed Issue that was just created and needs someone looking at it
Projects
None yet
Development

No branches or pull requests

2 participants