Open chbndrhnns opened 7 years ago
Thanks for the detailed info. I really need to revise the interface.
yeah, I am trying to incorporate your module into my own module.
if you're building in python, it's probably easier to directly import the do_ofximport/do_csvimport functions instead of using the CLI interface I think. just pass it an object with email,password,budgetname attributes
OK I think I found the problem, just pushed 3d3c305f988a786406aba79190b11c5ba54b0386 , there was a missing sys.argv.pop to remove the command (ofximport or csvimport).
No, not yet.
I needed to add to ofximport.py
import logging
logging.basicConfig()
to get the error messages working on cmd. After that, i still get the following message:
pynynab ofximport --email a --password b --budgetname c sample.ofx
pynYNAB OFX import
usage: pynynab [-h] [--email Email] [--password Password]
[--budgetname BudgetName]
OFXPath
pynynab: error: unrecognized arguments: sample.ofx
Logging, logging.basicConfig() in main added in the latest changes
This case pynynab ofximport --email a --password b --budgetname c sample.ofx
should be covered by the test_scripts, test_command_do_ofximport. Are you sure about which version is set up in your env/virtualenv or whatever ?
Logging is indeed fixed, but the second error in https://github.com/rienafairefr/pynYNAB/issues/46#issuecomment-315670703 still exists with 1a5894311928676207a952517c77e6e33e7366d5.
which python version ?
2.7.13 and 3.6
how did you install pynynab and its entrypoint ?
I uninstalled all pip version of pynynab, cloned the repo, created a virtual environment using mkvirtualenv
, did python setup.py build; python setup.py install
and verified via which pynynab
that the correct version (in the virtual environment) is called.
Is something wrong with doing it that way?
Here is the next issue:
1)
pynynab ofximport --email bla --password bla --budgetname bla
(no ofx file given)seem to use
ofximport
as file name:2)
pynynab ofximport --email bla --password bla --budgetname bla sample.ofx
fails with
3) My
ynab.conf
in the working directory is ignored.