ModuleNotFoundError: Error when trying to create a Python Data Loader #1720
-
|
I am trying to create a Data Loader using Python, but I keep encountering the following error: Here is the full traceback: Details:In the file My Setup:OS: Windows 11 Steps I followed:
I tried calling my Data Loader from a .md file like this: const myData = FileAttachment("data/data.csv").csv({typed: true});The error occurs for any Python package that isn't part of the standard library. I’ve tried creating new projects with clean installs, but nothing seems to work. If I run something like |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Apologies, I see that you already said you did this. |
Beta Was this translation helpful? Give feedback.
-
|
Did you start the preview server within the virtual environment as described in Data loaders: Execution? |
Beta Was this translation helpful? Give feedback.
-
|
Another thing to check out, by default Framework uses the binary name If you want to use just {
interpreters: {
".py": ["python"],
}
} |
Beta Was this translation helpful? Give feedback.
Another thing to check out, by default Framework uses the binary name
python3to run the Python interpreter, notpython. If you runpython3 src\data\data.csv.py, does the code work?If you want to use just
python, you could set theinterpretersoption to that: