-
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
Clarifications and further information required in docs #190
Comments
@christopherthomson First off, great to hear from you! I created this app just for myself and you're only the second person who's given me indication that they may be running it. Secondly, just a heads-up (this should be documented) the As to the exact issue, how did you install biweeklybudget? When I run locally for testing, I pretty much exactly follow the documentation, specifically:
I believe the issue is that you're providing a file path to |
Thanks for your quick reply! I see I pasted in a variant I tried with './' in front. However, I've tried again and get the following:
I installed using git clone, then checked out the 0.7.1 tag to a new local branch. I created a database in MySQL, but haven't created any tables manually. I used pip to install the packages in requirements.txt. I haven't created a settings module as you suggest in the documentation, because I'm not sure where to start with this. I have just edited the settings.py file with my database connection details and exported the FLASK_APP environment variable using: I am trying to run the app from the top level 'biweeklybudget' directory. Any further suggestions gratefully received! I can also try the Docker route, but am hoping to get started as simply as possible. |
@christopherthomson I believe the missing step in the above is that after using You'll need some settings beyond the database connection string. I'd highly recommend against editing
For what it's worth, if you're familiar with Docker, that's definitely the easier method. |
Okay, thanks so much for your further advice. I hadn't run setup.py so that probably explains my difficulty. But, I got stuck getting the database connection details right, so tried the Docker route instead. I've eventually got that up and running and learned lots about Docker in the meantime! I've got an instance running, and am curious how to use the OfxBackfiller functionality. I copied an ofx file ('backfill.ofx') to the container and tried |
@christopherthomson I apologize that the docs aren't as good as they could be... Aside from one person who opened an issue asking for internationalization support, you're the only person who's contacted me about trying to run this app... I developed it for my personal use, and didn't really know if anyone else would be interested (and it's pretty rough around the edges). loaddata is intended for development purposes, and loads the sample data that's used for most of the automated tests and the screenshots. Once the data is in your database, you'd either need to drop and then recreate the database, or drop all of the tables (the latter is a bit of a pain because of the foreign key relationships). Ofx in Docker is... a bit of a pain. The assumption is that your statements will be stored somewhere on your host filesystem and mounted into the Docker container. An example would be:
So that's the first half - configuring and setting up the system. The second half is actually making it work for accounts. To do that:
You don't have to mount the statements save path in from the host, you can copy them to the container if you want. But I think the problems you're having - that aren't documented yet - are because (1) a filesystem hierarchy of Also note that file path on disk is used as a key in the database - if you put an OFX file at Apologies for this being so rough around the edges, but I'll definitely go through this issue and try to document all of these confusing points. |
Don't apologise, it's all good. It's a pretty complex app and impressive you've built so many tools around it already. I've got a busy couple of days ahead but will take a closer look at your advice later in the week. The ofxbackfiller looks really handy. Thanks again. |
Sure, I'm glad it looks useful to you! I know we're pretty far apart in time zones, but I'll do my best to respond if/when you have a chance to give it a try. |
Good day Jantman. I would like to know don't you have detail installation steps to get the biweeklybudget up. Reason why i'm asking this is because i'm new to this and would really like to test your program |
@zalcock There's documentation available at http://biweeklybudget.readthedocs.io/en/latest/ Beyond that, no, there's nothing more detailed. This project is quite unofficial and really only intended for people familiar with Python, Flask, etc. |
@christopherthomson @zalcock have each of you either gotten this working, or decided not to? Is there anything left to do for this issue, aside from maybe updating the documentation to include some of the discussion here? |
FYI I renamed this, and will leave it open until I update the documentation with at least the information in this issue so far. |
Feature Request
Feature Description
This looks like an excellent project and I'd love to get it running but am unclear about what configuration steps are essential for a minimum running app using the local non-docker option. I have developed some simple Flask apps but the configurability here is a bit beyond my experience. Could you please assist?
I have created a database in mysql, added user and grant privileges, then added db conn string to settings.py. I also added a pay period start date and a reconcile start date.
I installed all requirements using pip. I used
export FLASK_APP="./biweeklybudget.flaskapp.app"
flask run
I get the error:
Usage: flask run [OPTIONS]
Error: The file/path provided (./biweeklybudget.flaskapp.app) does not appear to exist. Please verify the path is correct. If app is not on PYTHONPATH, ensure the extension is .py
Adding the .py extension to the path still gives the same error. Any advice? Perhaps a bit of documentation for beginners :) Thanks.
The text was updated successfully, but these errors were encountered: