Jupyter Hub No such file or directory: 'configurable-http-proxy' beheben
English
Deutsch
Problem:
Beim Versuch, Jupyter Hub zu starten, erscheint eine Fehlermeldung wie
jupyterhub_proxy_error.txt
[E 2021-06-18 13:07:48.462 JupyterHub proxy:711] Failed to find proxy ['configurable-http-proxy']
The proxy can be installed with `npm install -g configurable-http-proxy`.To install `npm`, install nodejs which includes `npm`.If you see an `EACCES` error or permissions error, refer to the `npm` documentation on How To Prevent Permissions Errors.
[C 2021-06-18 13:07:48.462 JupyterHub app:2739] Failed to start proxy
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/app.py", line 2737, in start
await self.proxy.start()
File "/usr/local/lib/python3.8/dist-packages/jupyterhub/proxy.py", line 707, in start
self.proxy_process = Popen(
File "/usr/lib/python3.8/subprocess.py", line 854, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1702, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'configurable-http-proxy'Lösung
Wie in der Jupyter-Hub-Installationsdokumentation beschrieben, muss das configurable-http-proxy npm-Paket installiert werden, damit Jupyter funktioniert:
install_configurable_http_proxy.sh
sudo npm install -g configurable-http-proxyFalls npm noch nicht installiert ist, siehe unseren Artikel NodeJS 14.x LTS auf Ubuntu in 1 Minute installieren oder die passende Distribution für das Betriebssystem auf der NodeJS-Downloadseite finden.
Check out similar posts by category:
Python
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow