visgl / deck.gl

WebGL2 powered visualization framework
https://deck.gl
MIT License
12.26k stars 2.08k forks source link

[Bug] Test support for arm64. #6874

Open odidev opened 2 years ago

odidev commented 2 years ago

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

Expected Behavior

To be able to run the test the test on both the architectures i.e. arm64 & x86

Steps to Reproduce

Environment

Logs

Test output at arm64:test_pydeck_arm64_py38.txt

kylebarron commented 2 years ago

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