I recently began to work on a database of text files, accessible by a python file. It has a two python files so far, a login and the actual database handler. The login, if correctly logged into, will access the database handler, and run it. The issue is in the files it is supposed to open. If someone could take a look at the below and let me know the issue, that would be great. Thanks.
@nicoekkart Thanks for the try, but I’m working on a Mac for this specific project, and that is listed as the correct directory for the files:
As I stated in the original post I have the login file and the database handler. The database handler is in the same folder and that filepath routes correctly from that file, so it might be another error in my code.
If you’re using python2.x, you should use raw_input to not see the spaces as seperate inputs. This solves the error it’s currently getting with me. Is there anything else wrong?
You have mentioned that the issue is with the file. Can you share any of the exception error messages? It is very hard to help as the environment you have is not replicable.
It works perfectly on my machine (linux). The only thing that I see can possibly be wrong is the folder locations. How do you know for sure this is not the issue?
Try to check if you have the same folder structure. I'm guessing there's something wrong with your Files path. If that's not the problem, try to print some things to debug. Since I'm not having any problems, it's hard to do that.