FS#62537 - [jupyterlab] extension manager does not work

Attached to Project: Community Packages
Opened by Gerson J Ferreira (gersonjferreira) - Friday, 03 May 2019, 13:22 GMT
Last edited by Antonio Rojas (arojas) - Saturday, 29 June 2019, 07:31 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Antonio Rojas (arojas)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Installing jupyterlab via pacman works, but its extension manager fails with the error:

"error communicating with the server extension. Consult the documentation on how to ensure that it is enabled. Reason given: SyntaxError: Unexpected token < in JSON at position 0".

Installing jupyterlab via pip (--user or virtualenv) solves the issue.
This task depends upon

Closed by  Antonio Rojas (arojas)
Saturday, 29 June 2019, 07:31 GMT
Reason for closing:  Fixed
Additional comments about closing:  jupyterlab 1.0.0
Comment by Antonio Rojas (arojas) - Friday, 03 May 2019, 18:17 GMT
For some reason, the jupyter-lab executable scripts from the pip package and our package look quite different:

> cat /bin/jupyter-lab
#!/usr/bin/python
# EASY-INSTALL-ENTRY-SCRIPT: 'jupyterlab==0.35.5','console_scripts','jupyter-lab'
__requires__ = 'jupyterlab==0.35.5'
import re
import sys
from pkg_resources import load_entry_point

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('jupyterlab==0.35.5', 'console_scripts', 'jupyter-lab')()
)

> cat ~/.local/bin/jupyter-lab
#!/usr/bin/python
# -*- coding: utf-8 -*-
import re
import sys

from jupyterlab.labapp import main

if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(main())

_______________________________________

Replacing the jupyter-lab script by the pip one fixes the problem, no idea why

Loading...