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

No module named 'jsonpath' #448

Closed
thomas-michels opened this issue Apr 19, 2024 · 4 comments
Closed

No module named 'jsonpath' #448

thomas-michels opened this issue Apr 19, 2024 · 4 comments
Assignees
Labels
waiting Waiting on more information

Comments

@thomas-michels
Copy link

Describe the bug
I trying to connect superset in an API using Shillelagh, but when I do the configuration bellow superset returns that error.

image

ERROR: (builtins.NoneType) None
[SQL: (shillelagh.exceptions.InterfaceError) Unable to load adapter genericjsonapi
(Background on this error at: https://sqlalche.me/e/14/rvf5)]
(Background on this error at: https://sqlalche.me/e/14/dbapi)

Database Configuration
SQLALCHEMY URI: shillelagh+safe://localhost:8000
ENGINE PARAMETERS: {"connect_args":{"adapters":["genericjsonapi"],"adapter_kwargs":{"genericjsonapi":{"x-token-user":"XXX","x-token-user-id":"123"}}}}

Expected behavior
Superset connects with success in an API.

Screenshots
Error found in logs
image
image

Desktop (please complete the following information):

@betodealmeida
Copy link
Owner

@thomas-michels this can be fixed by running:

$ pip install python-jsonpath

How did you install shillelagh? If you're using the Generic JSON adapter you should install it:

$ pip install 'shillelagh[genericjsonapi]'

Which should install the JSON path library.

@betodealmeida betodealmeida added the waiting Waiting on more information label Apr 22, 2024
@thomas-michels
Copy link
Author

@betodealmeida I used pip install 'shillelagh[all]', using pip install python-jsonpath I had the same problem

@betodealmeida betodealmeida added bug and removed waiting Waiting on more information labels Apr 24, 2024
@betodealmeida
Copy link
Owner

@thomas-michels did you run the commands inside the Docker image? On the latest version of shillelagh running pip install 'shillelagh[all]' will install python-jsonpath:

python-jsonpath>=0.10.3

@betodealmeida betodealmeida added waiting Waiting on more information and removed bug labels Jul 10, 2024
@betodealmeida
Copy link
Owner

Closing this, feel free to reopen if the issue persists.

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

No branches or pull requests

2 participants