deck.gl
deck.gl copied to clipboard
[Bug] Test support for arm64.
Description
@Pessimistress
I have been working on installing and testing pydeck package for x86_64 and arm64 architectures on my local server. While testing for arm64 using python -m pytest --cov=pydeck or pytest I am getting the below error. It would be really helpful if you could share some pointers on it.
E FileNotFoundError: [Errno 2] No such file or directory: '/deck.gl/bindings/pydeck/pydeck/io/../nbextension/static/index.js'
pydeck/io/html.py:49: FileNotFoundError
Flavors
- [ ] React
- [X] Python/Jupyter notebook
- [ ] MapboxLayer
- [ ] GoogleMapsOverlay
- [ ] CartoLayer
- [ ] DeckLayer/DeckRenderer for ArcGIS
Expected Behavior
To be able to run the test the test on both the architectures i.e. arm64 & x86
Steps to Reproduce
- To install and test package, run the below commands.
$ python3 setup.py install
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.1/install.sh | bash
$ nvm install 12.12.0 && nvm use 12.12.0
$ npm install deck.gl
$ pip3 install pydeck pandas pytest
$ cd bindings/pydeck
$ pytest
Environment
- OS: Ubuntu 20.04.3 LTS
Logs
Test output at arm64:test_pydeck_arm64_py38.txt
From your log
RELPATH_TO_BUNDLE = "../nbextension/static/index.js"
> with open(join(dirname(__file__), RELPATH_TO_BUNDLE), "r", encoding="utf-8") as file:
E FileNotFoundError: [Errno 2] No such file or directory: '/deck.gl/bindings/pydeck/pydeck/io/../nbextension/static/index.js'
It expects that path to exist. Specifically __file__ is thought to be at /deck.gl/bindings/pydeck/pydeck/io/. Is that where you installed pydeck? The index.js file is included in the sdist published to PyPI https://pypi.org/project/pydeck/#files