Skip to content

File tnsnames.ora not found #1105

Answered by freakboy3742
guilpt asked this question in Q&A
Discussion options

You must be logged in to vote

The problem is almost certainly that path name you're providing to your database files.

If you're specifying the filenames as relative paths (and specifying "tnsnames.ora" by itself is a relative path), you are making an implicit assumption about the working directory when the code is running. The working directory of a running Briefcase app isn't guaranteed - it's highly platform dependent. All paths to data files need to be specified as absolute paths.

If you're using Toga, the toga App object provides a paths attribute that can be used to find common useful locations on the filesystem (e.g., self.paths.app is a Path object describing the absolute path to the location of the app module)…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@guilpt
Comment options

Answer selected by guilpt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants