Comments (11)
EDIT: Just forget. I installed the module argh and now your example.bc file works.
I left just in case somebody has the same error. The solution is:
pip3 install argh
Regards and thank you for your work!
Tino.
Hi, the same here... I post the output to your last command:
Python 3.7.6 (default, Dec 30 2019, 19:38:26)
[Clang 11.0.0 (clang-1100.0.33.16)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import fava_investor.fava_investor
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/tinotuno/fava_investor/fava_investor/__init__.py", line 6, in <module>
from .modules.assetalloc_class import libassetalloc
File "/Users/tinotuno/fava_investor/fava_investor/modules/assetalloc_class/libassetalloc.py", line 4, in <module>
import argparse,argcomplete,argh
ModuleNotFoundError: No module named 'argh'
>>>
from fava_investor.
@redstreet you forgot
pip3 install argh
Without that doesn't work. pip3 install argcomplete is not enough.
from fava_investor.
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" "{...}"
Let me know if that worked for you. I'll add a note to the README.
from fava_investor.
from fava_investor.
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.
from fava_investor.
"Importing module "fava_investor" failed."
That usually means the module was not found. Try running python3 interactively and typing:
import fava_investor.fava_investor
That should succeed. Does it?
from fava_investor.
Ah okay, that helps! This should fix it:
pip install argh argcomplete
from fava_investor.
Added to README.md
from fava_investor.
@scanta2, please reopen if you're still having trouble.
from fava_investor.
Ah, thanks for catching this. Will add.
from fava_investor.
If either of you want to contribute the below, that'd be cool:
#25
from fava_investor.
Related Issues (20)
- Postive amounts of non-monetary commodities crash aa_class HOT 5
- Incorrect proceeds because sale price not used HOT 3
- Fava Investor won't load HOT 3
- Function get_account_open in favainvestorapi.py returns an empty list HOT 3
- Incorrect allocation percentage computation in "Asset Allocation Accounts" HOT 4
- Fava QueryShell Change HOT 5
- Need a good example.beancount that demonstrates all modules
- [Feature] Write errors to GUI callout instead of exiting HOT 3
- [Feature] Sum up allocation sub classes HOT 3
- [Feature] Allow filtering for accounts HOT 1
- [Feature] Use implicit prices HOT 2
- [Feature] Asset allocation tools
- Fava investor tab fails to load HOT 8
- Asset Allocation Classes-- TypeError: unsupported operand type(s) for /: 'str' and 'int' HOT 3
- Asset Allocation by Class does not convert prices transitively HOT 3
- New fava version breaks fava-investor HOT 3
- Fava 1.26.2 breaks fava _investor HOT 3
- Asset allocation display is broken in Fava 1.25 onwards
- cannot import name 'cost_or_value' from 'fava.template_filters' HOT 3
- Multicurrency Asset Allocation in Fava HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fava_investor.