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

Cluster-map not showing #36

Open
pandrich opened this issue Sep 21, 2021 · 5 comments
Open

Cluster-map not showing #36

pandrich opened this issue Sep 21, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@pandrich
Copy link

I am trying to replicate the global power plants example to test the cluster map extension of datasette but no map is shown after I launch the application.

I created a separate virtual environment for this test in which I have only python 3.8 and datasette, its plugins and relative dependencies (see below). I installed the plugins using datasette install as suggested to make sure to install the packages appropriately within the environment.

When I pull up the database all seems to go well with fetching the plugin but the map is not shown.

image

I think it is likely something I am doing wrong but I cannot find a hint of where the problem might arise. Any thoughts?
I should also mention that the datasette-vega plugins works instead correctly.
Thanks for your help!

Packages Installed

# Name                    Version                   Build  Channel
aiofiles                  0.7.0                    pypi_0    pypi
anyio                     3.3.1                    pypi_0    pypi
asgi-csrf                 0.9                      pypi_0    pypi
asgiref                   3.4.1                    pypi_0    pypi
backcall                  0.2.0              pyhd3eb1b0_0
ca-certificates           2021.7.5             haa95532_1
certifi                   2021.5.30        py38haa95532_0
charset-normalizer        2.0.6                    pypi_0    pypi
click                     8.0.1                    pypi_0    pypi
click-default-group       1.2.2                    pypi_0    pypi
colorama                  0.4.4              pyhd3eb1b0_0
datasette                 0.58.1                   pypi_0    pypi
datasette-cluster-map     0.17.1                   pypi_0    pypi
datasette-leaflet         0.2.2                    pypi_0    pypi
datasette-vega            0.6.2                    pypi_0    pypi
debugpy                   1.4.1            py38hd77b12b_0
decorator                 5.0.9              pyhd3eb1b0_0
entrypoints               0.3                      py38_0
h11                       0.12.0                   pypi_0    pypi
httpcore                  0.13.7                   pypi_0    pypi
httpx                     0.19.0                   pypi_0    pypi
hupper                    1.10.3                   pypi_0    pypi
idna                      3.2                      pypi_0    pypi
ipykernel                 6.2.0            py38haa95532_1
ipython                   7.27.0           py38hd4e2768_0
ipython_genutils          0.2.0              pyhd3eb1b0_1
itsdangerous              2.0.1                    pypi_0    pypi
janus                     0.6.1                    pypi_0    pypi
jedi                      0.18.0           py38haa95532_1
jinja2                    3.0.1                    pypi_0    pypi
jupyter_client            7.0.1              pyhd3eb1b0_0
jupyter_core              4.7.1            py38haa95532_0
markupsafe                2.0.1                    pypi_0    pypi
matplotlib-inline         0.1.2              pyhd3eb1b0_2
mergedeep                 1.3.4                    pypi_0    pypi
nest-asyncio              1.5.1              pyhd3eb1b0_0
openssl                   1.1.1l               h2bbff1b_0
packaging                 21.0                     pypi_0    pypi
parso                     0.8.2              pyhd3eb1b0_0
pickleshare               0.7.5           pyhd3eb1b0_1003
pint                      0.17                     pypi_0    pypi
pip                       21.0.1           py38haa95532_0
pluggy                    0.13.1                   pypi_0    pypi
prompt-toolkit            3.0.17             pyhca03da5_0
pygments                  2.10.0             pyhd3eb1b0_0
pyparsing                 2.4.7                    pypi_0    pypi
python                    3.8.11               h6244533_1
python-baseconv           1.2.2                    pypi_0    pypi
python-dateutil           2.8.2              pyhd3eb1b0_0
python-multipart          0.0.5                    pypi_0    pypi
pywin32                   228              py38hbaba5e8_1
pyyaml                    5.4.1                    pypi_0    pypi
rfc3986                   1.5.0                    pypi_0    pypi
setuptools                58.0.4           py38haa95532_0
six                       1.16.0             pyhd3eb1b0_0
sniffio                   1.2.0                    pypi_0    pypi
sqlite                    3.36.0               h2bbff1b_0
tornado                   6.1              py38h2bbff1b_0
traitlets                 5.0.5              pyhd3eb1b0_0
uvicorn                   0.15.0                   pypi_0    pypi
vc                        14.2                 h21ff451_1
vs2015_runtime            14.27.29016          h5e58377_2
watermark                 2.2.0                    pypi_0    pypi
wcwidth                   0.2.5              pyhd3eb1b0_0
wheel                     0.37.0             pyhd3eb1b0_1
wincertstore              0.2                      py38_0
@simonw simonw added the bug Something isn't working label Dec 7, 2021
@simonw
Copy link
Owner

simonw commented Dec 7, 2021

Those logs suggest that this should be working. The ?_shape=array&_shape=array thing is weird - I've started seeing that myself too.

@pandrich
Copy link
Author

pandrich commented Dec 7, 2021

Hey Simon, I should mention that I tried to run this on Linux (through WSL installed on my Windows machine) and all works perfectly ( I was worried that some settings might have been off with the visualization in my browsers). Something's up with running it purely on Windows but I can't figure out what. Not sure if this can help.

@ryancheley
Copy link

@pandrich I think this can be solved by updating a registry key in windows. This Stack Overflow answer fixed it on a Windows Machine for me

@pandrich
Copy link
Author

@ryancheley I just tested this on Windows and it works perfectly! Thanks for the tip!

@ryancheley
Copy link

@simonw not sure if you’d want to have the README (or some other part) updated to include this tip. If so, I’d be more than happy to write something up and submit a PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants