Using pandas in the importers

85 views
Skip to first unread message

Rishabh Vaid

unread,
Jan 3, 2022, 1:15:52 AM1/3/22
to Beancount
Hi folks,

I'm trying to get set up with beancount in WSL. The desire to use beancount is actually what motivated me to install WSL and start using the command line. As a result, I am running into some nooby issues, would be grateful if anyone here could help me out!

I'm using pandas inside my importers to read in the csv file and parse it. However, I keep getting "No module named 'pandas'" errors when I try to run bean-identify. I have pip installed pandas in my virtual env, but not clear if I need to install it somewhere else.

Thanks for your help!

Rishabh Vaid

unread,
Jan 3, 2022, 1:26:12 AM1/3/22
to Beancount
Update: I pip installed pandas outside the venv and now it worked. I'm not completely sure why though, and whether this is the correct way to do things. Does anyone have any pointers?

nug get

unread,
Jan 3, 2022, 2:07:45 AM1/3/22
to Beancount
Hi
this smells like confusion with the python interpreters. You may want to debug through your bean-commands and check whether the correct python executable is uses all the time. Also make sure the correct venv is activated all the time.
Good luck! For me, WSL works very well.
best

redst...@gmail.com

unread,
Jan 3, 2022, 1:54:39 PM1/3/22
to Beancount
The interpreter/venv issue aside, you may want to check out petl which is likely more specialized than pandas for operations around importing csvs into beancount.
Reply all
Reply to author
Forward
0 new messages