Skip to content

Data Loader Can No Longer Fiind Correct Python Interpreter #1319

Answered by mbostock
WillHWThompson asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like Observable is not using the correct interpreter despite the shebang and the interpreter specification in the config.ts file.

The shebang has no effect unless you are using an executable (.exe) data loader. When you use .py data loader, by default you’ll get python3 as the interpreter, though you should be able to override the interpreter by using the interpreters config option.

Have you tried running your Python data loader manually? Assuming you are in your project root, and foo.csv.py lives in your source root src, it should be like this:

/Users/my_user/miniconda3/envs/my_env/bin/python src/foo.csv.py

(If you’re not on the latest version 1.7.0, then your source root is…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@WillHWThompson
Comment options

@mbostock
Comment options

Answer selected by Fil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants