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

Extension incompatible with jupyterlab 2.0.1 #131

Open
kaissamkari opened this issue Mar 15, 2020 · 12 comments
Open

Extension incompatible with jupyterlab 2.0.1 #131

kaissamkari opened this issue Mar 15, 2020 · 12 comments

Comments

@kaissamkari
Copy link

This extension seems to be incompatible with jupyterlab 2.0.1, or with python 3.7.6

$ python --version
Python 3.7.6
$ jupyter lab --version
2.0.1
$ jupyter labextension list
JupyterLab v2.0.1
Known labextensions:
   app dir: /opt/conda/share/jupyter/lab
        @bokeh/jupyter_bokeh v2.0.0  enabled  OK
        @jupyter-widgets/jupyterlab-manager v2.0.0  enabled  OK
        jupyter-matplotlib v0.7.2  enabled  OK
        jupyterlab-sql v0.3.3  enabled   X

   The following extension are outdated:
        jupyterlab-sql
        
   Consider running "jupyter labextension update --all" to check for updates.
$ jupyter labextension update --all
Extension '@jupyter-widgets/jupyterlab-manager' already up to date
Extension 'jupyter-matplotlib' already up to date
Extension '@bokeh/jupyter_bokeh' already up to date
An error occured.
AttributeError: 'list' object has no attribute 'items'

Thanks for you support.

@kaissamkari kaissamkari changed the title Extension incompatible with jupyterlab>=1.1 Extension incompatible with jupyterlab 2.0.1 Mar 15, 2020
@JohnTheLearner
Copy link

@kaissamkari I came here to report the same exact thing! I did some testing that might help you and the contributers that work on a solution...

I kept all of your above versions the same and checked to see what versions of jupyterlab were out there on pypi:
pip install jupyterlab==asldkjfla;skdjf ERROR: Could not find a version that satisfies the requirement jupyterlab==asldkjfla (from versions: 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 0.0.7, 0.0.8, 0.0.9, 0.0.10, 0.0.13, 0.1.1, 0.1.2, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.10.0, 0.11.0, 0.11.1, 0.11.2, 0.11.3, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.14.0, 0.15.0, 0.15.1, 0.16.0, 0.16.2, 0.17.0, 0.17.1, 0.17.2, 0.17.4, 0.17.5, 0.18.0.dev1, 0.18.0, 0.18.1, 0.19.0, 0.20.0rc1, 0.20.0, 0.20.1, 0.20.2, 0.20.3, 0.20.4, 0.21.0rc1, 0.21.0rc2, 0.21.0rc3, 0.21.0rc4, 0.21.0rc5, 0.21.0, 0.22.0rc0, 0.22.0, 0.22.1, 0.23.0rc0, 0.23.0rc1, 0.23.0, 0.23.1, 0.23.2, 0.24.0rc0, 0.24.0rc1, 0.24.0rc2, 0.24.0, 0.24.1, 0.25.0rc0, 0.25.0rc1, 0.25.0, 0.25.1, 0.25.2rc0, 0.25.2, 0.26.0rc0, 0.26.0rc1, 0.26.0, 0.26.1, 0.26.2, 0.26.3, 0.26.4, 0.26.5, 0.27.0rc0, 0.27.0rc1, 0.27.0rc2, 0.27.0rc3, 0.27.0rc4, 0.27.0rc5, 0.27.0, 0.27.1, 0.27.2, 0.28.0rc0, 0.28.0rc1, 0.28.0rc2, 0.28.0rc3, 0.28.0, 0.28.1, 0.28.2, 0.28.3, 0.28.4, 0.28.5, 0.28.6, 0.28.7, 0.28.8, 0.28.10, 0.28.11, 0.28.12, 0.28.13, 0.28.14, 0.28.15, 0.29.0rc0, 0.29.0, 0.29.1, 0.29.2, 0.30.0rc0, 0.30.0rc1, 0.30.0, 0.30.1, 0.30.2, 0.30.3, 0.30.4, 0.30.5, 0.30.6, 0.31.0rc0, 0.31.0rc1, 0.31.0rc2, 0.31.0, 0.31.1, 0.31.2, 0.31.3, 0.31.4, 0.31.5, 0.31.6, 0.31.7, 0.31.8, 0.31.9, 0.31.10, 0.31.11, 0.31.12, 0.32.0rc0, 0.32.0rc1, 0.32.0, 0.32.1, 0.33.0rc0, 0.33.0rc1, 0.33.0, 0.33.1, 0.33.2, 0.33.3, 0.33.4, 0.33.5, 0.33.6, 0.33.7, 0.33.8, 0.33.9, 0.33.10, 0.33.11, 0.33.12, 0.34.0rc0, 0.34.0rc1, 0.34.0rc2, 0.34.0, 0.34.1, 0.34.2, 0.34.3, 0.34.4, 0.34.5, 0.34.6, 0.34.7, 0.34.8, 0.34.9, 0.34.10, 0.34.11, 0.34.12, 0.35.0rc0, 0.35.0rc1, 0.35.0rc2, 0.35.0, 0.35.1, 0.35.2, 0.35.3, 0.35.4, 0.35.5, 0.35.6, 1.0.0a0, 1.0.0a1, 1.0.0a2, 1.0.0a3, 1.0.0a4, 1.0.0a5, 1.0.0a6, 1.0.0a7, 1.0.0a8, 1.0.0a9, 1.0.0a10, 1.0.0rc0, 1.0.0rc1, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.9, 1.0.10, 1.1.0a0, 1.1.0a1, 1.1.0a2, 1.1.0rc0, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.2.0a0, 1.2.0a1, 1.2.0a2, 1.2.0a3, 1.2.0rc0, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.2.4, 1.2.5, 1.2.6, 1.2.7, 2.0.0a0, 2.0.0a1, 2.0.0a3, 2.0.0a4, 2.0.0b1, 2.0.0b2, 2.0.0b3, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1rc0, 2.0.1) ERROR: No matching distribution found for jupyterlab==asldkjfla

From there, I stepped back through SOME of the versions to see if I could find a point at which the things did work. I tested versions 2.0.1, 2.0.0, 2.0.0rc0, 2.0.0a0. All versions EXCEPT this last version:

  1. showed that they were outdated in the build step (jupyter lab build)

  2. Didn't work when re-starting jupyter lab after the build

  3. jupyter labextension list shows as enabled, but not ok for jupyterlab-sql, and

  4. jupyter labextension update --all produces error

This last version I mentioned seemed to build and run just fine. Also, jupyterlab-sql showed as enabled AND ok under jupyter labextension list.

Note, I haven't gone through to test any versions between the last two that I listed to determine at which point the error arises, so there might be a newer version that works.

@JohnTheLearner
Copy link

UPDATE: the extension with jupyterlab 2.0.0a1 seems to be the latest combination I've found that works.
With jupyterlab versions 2.0.0a3 and 2.0.0a4, the extension builds and shows fine, but seems to have some runtime issues afterward...ie: when clicking on the SQL icon under the other terminal section of the launcher, get a dialog box indicating Launcher Error - Widget is not contained in the dock panel. and the dialog only allows to dismiss. Even with the dialog, the SQL tab does show up, but not fully integrated...ie: cannot exit/remove the tab and the tab does show under the Tabs menu, but cannot be selected from the menu. The only way to select the tab is to click on it via the GUI. Once pressing the X on the tab to exit the tab, it still shows in the GUI and is still selectable via the GUI, but shows as blank content now. Not consistently showing in the Tabs menu after pressing the X.

@Foadsf
Copy link

Foadsf commented Mar 28, 2020

Hey guys/gals,

Any change this plugin will be updated? I get the

WARNING | The extension "jupyterlab-sql" is outdated

when running jupyter lab build

@spoofster123
Copy link

Seeing the exact same issue, commenting to hop on this train.

@sarguido
Copy link

Hi! I'm also seeing the same issue of WARNING | The extension "jupyterlab-sql" is outdated when running jupyter lab build and was hoping to use this extension as part of an environment I'm setting up - not sure if this package is maintained anymore, but it looks like this PR will fix it: #137

@MaximoTrinidad
Copy link

MaximoTrinidad commented Aug 10, 2020

One thing I notice, I'm on Windows 10 and had Anaconda February 2020 version installed. This version has Python 3.7.
I had "jupyterlab-sql" installed and working fine.

Unfortunately, I decided to install the latest Anaconda July 2020 version which has Python 3.8.
Now, I'm getting the 'WARNING | The extension "jupyterlab-sql" is outdated'.

So, I decided to revert back to use "Anaconda3-2020.02-Windows-x86_64.exe". And.... Bingo!
I got it to work again!!

JupSqlPythion37_2020-08-10_13-24-02

At least now I can keep working with my notebooks... again!

Hope this helps in any way.
:)

@valantur
Copy link

what a bummer, I just discovered this extension and it doesn't work.

@dbdean
Copy link

dbdean commented Aug 12, 2020

It looks like @jseabold has done some work on upgrading this tool to JupyterLab 2 that people in this thread might be interested in looking at. I haven't had a chance to look in on it myself, but it might be an option to get this plugin working again. See https://github.com/jseabold/jupyterlab-sql/tree/dev

@jseabold
Copy link

I don't think all of the functionality is there on the fork, but I never used it before, so I don't know what's missing. I followed the recommended upgrade path though. Needs another set of eyes for sure. If anyone is interested the PR is #137. Would love to merge those changes back here. @pbugnion

@michalrudko
Copy link

@pbugnion is this package still maintained - especially in terms of support of JL 2.x? We were using the package for some time with JL 1.x, but after upgrade to JL 2.2.8 it looks like it's not compatible anymore. Maybe we could consider merging the fork from @jseabold ? I'd appreciate if you could share what are your thoughts on this. Thanks!

@MaximoTrinidad
Copy link

Is this package still been maintained??
What's the alternative for SqlAlchemy?

(base) PS C:\Users\max_t> jupyter lab --version
3.0.14
(base) PS C:\Users\max_t> python --version
Python 3.8.3
(base) PS C:\Users\max_t> pip show jupyterlab_sql
Name: jupyterlab-sql
Version: 0.3.3
Summary: JupyterLab plugin for visualizing SQL databases
Home-page: UNKNOWN
Author: None
Author-email: None
License: UNKNOWN
Location: c:\programdata\anaconda3\lib\site-packages
Requires: sqlalchemy, jupyterlab, jsonschema
Required-by:
(base) PS C:\Users\max_t>

List time I had to go back to an older installation of Anaconda to make it work, which I posted in this thread back in August 10, 2020.

duplicate issues: #147
:(

@r-nishant
Copy link

The alternative could be using magic commands.

https://docs.kyso.io/guides/sql-interface-within-jupyterlab

Note: if using conda install it definitely works on any exported database of type ".sqlite". Other if use pip install than make sure to install both ipython-sql and jupyterlab_sql packages. Then enabling the server extension and build jupyter lab, as instructed in the blogsite.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests