plotly / choreographer

MIT License
1 stars 0 forks source link

try setting browser_path to nonsense to make sure it overrides and breaks #104

Closed ayjayt closed 3 weeks ago

ayjayt commented 3 weeks ago

@neyberson

set the BROWSER_PATH variable to something crazy nonsense

image

and please make sure that the browser fails to open.

neyberson commented 3 weeks ago

Browser fails:

neybe@DESKTOP-K0P2FD6 MINGW64 ~/Desktop/Pozo/devtools_protocol (main)
$ export MY_VARIABLE="my_value"
(app_dev_tools_12)
neybe@DESKTOP-K0P2FD6 MINGW64 ~/Desktop/Pozo/devtools_protocol (main)
$ winpty python -m asyncio
asyncio REPL 3.12.4 | packaged by Anaconda, Inc. | (main, Jun 18 2024, 15:03:56)
 [MSC v.1929 64 bit (AMD64)] on win32
Use "await" directly instead of "asyncio.run()".
Type "help", "copyright", "credits" or "license" for more information.
>>> import asyncio
>>> import devtools
>>> browser = await devtools.Browser(headless=False, debug=True, path="LO QUE SE
A")
DEBUG REPORT:
BROWSER_PATH: LO QUE SEA
USER_DATA_DIR: C:\Users\neybe\AppData\Local\Temp\tmpozk4j1ps
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<Browser._open_async() done, defined a
t C:\Users\neybe\Desktop\Pozo\devtools_protocol\devtools\browser.py:175> excepti
on=FileNotFoundError(2, 'El sistema no puede encontrar el archivo especificado',
 None, 2, None)>
Traceback (most recent call last):
  File "C:\Users\neybe\Desktop\Pozo\devtools_protocol\devtools\browser.py", line
 192, in _open_async
    self.subprocess = await open_browser(to_chromium=self.pipe.read_to_chromium,
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\asyncio\subprocess.py",
line 224, in create_subprocess_exec
    transport, protocol = await loop.subprocess_exec(
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\asyncio\base_events.py",
 line 1744, in subprocess_exec
    transport = await self._make_subprocess_transport(
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\asyncio\windows_events.p
y", line 400, in _make_subprocess_transport
    transp = _WindowsSubprocessTransport(self, protocol, args, shell,
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\asyncio\base_subprocess.py", line 36, in __init__
    self._start(args=args, shell=shell, stdin=stdin, stdout=stdout,
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\asyncio\windows_events.py", line 878, in _start
    self._proc = windows_utils.Popen(
                 ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\asyncio\windows_utils.py", line 153, in __init__
    super().__init__(args, stdin=stdin_rfd, stdout=stdout_wfd,
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\neybe\.conda\envs\app_dev_tools_12\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] El sistema no puede encontrar el archivo especificado
read_jsons (blocking):