-
Notifications
You must be signed in to change notification settings - Fork 10
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
Make the netrc path configurable #7
Comments
Thanks for the feedback. Is it that |
…credentials.py out of cli subdir because it is used by code other than the cli
@naegelyd can you try the latest master branch and see if it fixes your issue? It supports a $NETRC_PATH environment variable now. |
It was generating a KeyError. I worry that this approach will also be an issue in our multiuser setup. While we have multiple users who can deploy and restart the varify app, the app itself runs under its own user account. I have not fully looked into the process but I would really like if this could be defined in the django settings file like the |
In the most recent commit, I changed it so that it won't raise the error you got unless you run the solvebio command-line script. The idea is that the .netrc credentials are used for local development, while apps like Varify should explicitly set the |
Yea, that fixes the netrc issue I was seeing. I am now getting the following DatabaseError. Any idea what might be causing it?
|
Did you run the migrations on |
There was an issue with my settings file where it wasn't including solvebio in the installed apps so it wasn't being migrated during our deploy process. I updated it and that error is resolved. |
Do you know what might be causing the clinvar query to fail? Whenever retrieving variants, I keep ended up on this line. |
That's my fault for poor error handling. I'm going to have the query function raise an exception instead of returning None. |
Check out the latest solvebio package, as well as the pull request I just made on Varify. That should give you more detailed info on query errors. |
@davecap I'm still getting an exception in this block. This might be a firewall/config issue on our end. Are there any known ports that need to be open in order to connect to and interact with solvebio datasets? Here is the exception message:
|
From the exception it seems that there is just no alias defined for clinvar. See if you have something like this set in your django settings:
Or you can go to the django admin and add an alias to the django_solvebio app ( |
Good catch. Thanks @davecap. It's all working well now. |
Currently, the
NETRC_PATH
is always set to the users home directory in this block. In the multiuser environment we are running on, I am encountering permission issues in this block. By making NETRC_PATH, it would allow users of solvebio to use a fixed path rather than using the home directory which will change user to user.The text was updated successfully, but these errors were encountered: