Open natsukium opened 9 months ago
I'm trying to resolve the broken local builds, and have perhaps made some progress, but I'm hitting other errors. Removing pyproject.toml
does not seem to solve the issues for me. Sharing progress here in case others have ideas.
Start a clean virtual env, on macOS:
make setup-env
. env/bin/activate
Run make init
[!CAUTION] Jupyter command
jupyter-nbextension
not found.
Edit bindings/pydeck/requirements/requirements-dev.txt
to set jupyterlab<4.0.0
Run make init
again
Run make prepare-jupyter
[!WARNING] (Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.
Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages (Deprecated) Installing extensions with the jupyter labextension install command is now deprecated and will be removed in a future major version of JupyterLab.
Users should manage prebuilt extensions with package managers like pip and conda, and extension authors are encouraged to distribute their extensions as prebuilt packages
We'll ignore this for now. We currently don't support JupyterLab v4, and v3 reaches EOL next month, according to https://github.com/jupyterlab/jupyterlab/issues/15921. See #7030 for steps required to update to JupyterLab v4 — the migration appears non-trivial.
jupyter notebook
, open "01 Introduction" in examples/, and run all cells.The first few cells complete, until we get to r.show()
. Here we fail with JavaScript errors:
I'm not sure how to work around this part yet. My guess is that perhaps I need to roll back some other dependencies in requirements.txt or requirements-dev.txt, but I don't know which ones. If anyone currently has local builds working and would like to share the versions of dependencies you have installed (pip freeze
) that might be helpful.
I also tried running pypi-timemachine, which runs a local PyPi registry hiding any packages newer than the specified date. Testing an installation locked to <= 2023-01-01, the errors are essentially the same. I'm not sure pypi-timemachine affects nbextension extension installations, so maybe that's just not going to work here.
One other clue, notebooks are generating HTML/JS output like this...
const tooltip = True; // 🛑 should be 'true', not 'True'!
const customLibraries = null;
const configuration = null;
... if that narrows down which dependency might be causing the problem. 😕
Partial fix coming in https://github.com/visgl/deck.gl/pull/8756. Still working on the runtime errors above.
Additional fix in https://github.com/visgl/deck.gl/pull/8780. The const tooltip = True
error is fixed. Errors from the widget bindings remain, and prevent .show()
from working, but .to_html()
now renders the map.
Current state of debugging, known errors, and known workarounds in:
https://gist.github.com/donmccurdy/4cb069e73cbb82b6e5f75a0b3a6bb74f
Description
I can't install
pydeck
from the source due to an invalidpyproject.toml
. See https://github.com/visgl/deck.gl/pull/6777#issuecomment-1079652376 And unfortunately, the CI was fixed in the wrong way in https://github.com/visgl/deck.gl/pull/7198We should remove the deprecated
setup.py develop
and prepare the correct pyproject.toml or otherwise remove it until it is ready. https://setuptools.pypa.io/en/latest/deprecated/commands.html#running-setuptools-commandsFlavors
Expected Behavior
install pydeck without failure
Steps to Reproduce
I followed this guide but without yarn, since this failure is not related to it.
Environment
Logs