-
Notifications
You must be signed in to change notification settings - Fork 19
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
Error: Importing module failed #28
Comments
The git repo name unfortunately has a hyphen, which is not valid in python imports. I'll rename the repo. Meanwhile, move your clone:
Assuming you did this in the same directory of your beancount source, invoke the fava extension using the line below, given the actual module lives in a subdirectory that is also named fava_investor:
Let me know if that worked for you. I'll add a note to the README. |
That's also what I tried, too, but it didn't work.
I still have the same problem. I am using the latest fava dev version.
…On Fri, Apr 10, 2020 at 6:59 PM Red S ***@***.***> wrote:
The git repo name unfortunately has a hyphen, which is not valid in python
imports. I'll rename the repo. Meanwhile, move your clone:
mv fava-investor fava_investor
Assuming you did this in the same directory of your beancount source,
invoke the fava extension using the line below, given the actual module
lives in a subdirectory that is also named fava_investor:
# 2010-01-01 custom "fava-extension" "fava_investor.fava_investor" "{...}"
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ADCNKWKSZC6YKR5TAG3ON6LRL6XGHANCNFSM4MFVZUHA>
.
|
Did you try running the example? See CONTRIBUTING.md (I just moved it to README.md). If that doesn't work, you might want to install the latest released version of fava. |
That usually means the module was not found. Try running python3 interactively and typing: That should succeed. Does it? |
EDIT: Just forget. I installed the module argh and now your example.bc file works. Regards and thank you for your work! Tino. Hi, the same here... I post the output to your last command:
|
Ah okay, that helps! This should fix it: |
Added to README.md |
@scanta2, please reopen if you're still having trouble. |
@redstreet you forgot |
Ah, thanks for catching this. Will add. |
If either of you want to contribute the below, that'd be cool: |
Hi,
I have been following the instructions in the readme on how to use this extension directly in the beancount ledger folder, or installed via pip. All I get is an error "Importing module "fava_investor" failed.".
Is there anything I am missing?
The text was updated successfully, but these errors were encountered: