question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation using poetry: frontend is not installed

See original GitHub issue

Description

After installing there is no “Git” icon in the left side panel.

image

Reproduce

With python version 3.6 (managed using pyenv), node 13.1.0, npm 6.12.1:

  1. poetry init -n
  2. poetry add jupyter jupyterlab jupyterlab-git
  3. poetry shell
  4. jupyter lab build
  5. jupyter lab
  6. Visit the browser.

Expected behavior

I expect to see the Git icon in the left panel

Context

output of jupyter lab build:

$ jupyter lab build
[LabBuildApp] JupyterLab 1.2.3
[LabBuildApp] Building in /Users/<user>/Library/Caches/pypoetry/virtualenvs/<virtualenv_name>/share/jupyter/lab
[LabBuildApp] Building jupyterlab assets (build:prod:minimize)

output of jupyter lab:

$ jupyter lab
[I 14:23:08.833 LabApp] JupyterLab extension loaded from /Users/<user>/Library/Caches/pypoetry/virtualenvs/<virtualenv_name>/lib/python3.6/site-packages/jupyterlab
[I 14:23:08.833 LabApp] JupyterLab application directory is /Users/<user>/Library/Caches/pypoetry/virtualenvs/<virtualenv_name>/share/jupyter/lab
[I 14:23:09.191 LabApp] Serving notebooks from local directory: <cwd>
[I 14:23:09.191 LabApp] The Jupyter Notebook is running at:
[I 14:23:09.191 LabApp] http://localhost:8888/?token=<blahblah>
[I 14:23:09.191 LabApp]  or http://127.0.0.1:8888/?token=<blahblah>
[I 14:23:09.191 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:23:09.195 LabApp]

    To access the notebook, open this file in a browser:
        file:///Users/<user>/Library/Jupyter/runtime/nbserver-2059-open.html
    Or copy and paste one of these URLs:
        http://localhost:8888/?token=<blahblah>
     or http://127.0.0.1:8888/?token=<blahblah>
[I 14:23:11.705 LabApp] Build is up to date

poetry.lock: poetry.lock.txt

jupyter serverextension list:

$ jupyter serverextension list
config dir: /Users/<user>/.jupyter
    jupyterlab_git  enabled
    - Validating...
      jupyterlab_git  OK
config dir: /Users/<user>/Library/Caches/pypoetry/virtualenvs/<virtualenv_name>/etc/jupyter
    jupyterlab  enabled
    - Validating...
      jupyterlab 1.2.3 OK
    nbdime  enabled
    - Validating...
      nbdime 1.1.0 OK

jupyter labextension list:

$ jupyter labextension list
JupyterLab v1.2.3
Known labextensions:
   app dir: /Users/<user>Library/Caches/pypoetry/virtualenvs/<virtualenv_name>/share/jupyter/lab
        nbdime-jupyterlab v1.0.0  enabled  OK

browser is Firefox 70.0.1 on Mac 10.15.

browser console:

Starting application in workspace: "/lab/workspaces/auto-v" index.js:34:4
>>>

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:2
  • Comments:12 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fcollonvalcommented, Nov 22, 2019

Thx Harry for investigating more. A new version of the package will soon be available with the lab extension shipped within it. Maybe this will at least solve the “classical” installation (i.e. not via github).

0reactions
harrybiddlecommented, Nov 22, 2019

To investigate your theory I did an experiment:

  1. Install the poetry environment as above, except without the jupyterlab-git line
  2. Add the jupyterlab-git line to pyproject.toml. Run poetry lock && poetry install.
  3. jupyter lab build

However, the frontend element still did not appear. I tried to put Poetry into verbose mode but I still can’t find any logs. If I get a chance I’ll try another investigation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python package installation issues with Poetry - Medium
Try to install poetry via the official installer. Homebrew poetry installation can lead to various other dependency issues. Do not rely on poetry...
Read more >
Dependency Management With Python Poetry
With the install command, Poetry checks your pyproject.toml file for dependencies then resolves and installs them. The resolving part is especially important ...
Read more >
python - Poetry was not installed with the recommended ...
The error message suggests you've probably installed poetry with pip, which does not support automatic poetry updates.
Read more >
Install and upgrade doccano
Backend; Frontend; How to create a Python package. Install ... To install doccano with pip, you need Python 3.8+. ... cd backend poetry...
Read more >
poetry-dynamic-versioning - PyPI
pip install poetry-dynamic-versioning ... the plugin in the build-system section of pyproject.toml for interoperability with PEP 517 build frontends:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found