Skip to content
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

Shadho insisting on finding its config file and working directory #22

Open
tphung3 opened this issue Dec 1, 2021 · 2 comments
Open

Comments

@tphung3
Copy link

tphung3 commented Dec 1, 2021

Shadho seems to insist on finding its config file as there's no option for me to tell shadho to use the default configuration. It'd be nice if there's an option to do so, maybe in Shadho() object instantiation. Also shadho looks for its working directory .shadho when it doesn't need one. This is because I installed shadho via pip, and I installed pip via conda, so .shadho already lives in a conda environment, instead of the home directory.

@jeffkinnison
Copy link
Owner

Is this causing a crash? If so, could you send the traceback?

In the past, I used the .shadhorc file to point to the Work Queue installation in .shadho so that we could use the binaries regardless of their install location and presence in $PATH. This would persist with a non-Anaconda installation, so I would like to find a solution that accommodates both standard pip installs and conda environments.

@tphung3
Copy link
Author

tphung3 commented Dec 2, 2021

It is causing a crash. You can find the shadho integration test with all the necessary files in https://github.com/cooperative-computing-lab/cctools-packaging-test (.shadhorc, wq_sin.py, run_sin.sh, sin.py, shadho-test.sh). The test (./shadho-test.sh) runs fine now, but if you comment out line 20 and 23, then running shadho raises two exceptions, respectively: ShadhorcDoesNotExistError at line 99 in {shadho_github_repo}/shadho/configuration.py and ShadhoInstallNotfoundError at line 130 in {shadho_github_repo}/shadho/configuration.py. The .shadhorc is simply a copy of the default configuration as defined in {shadho_github_repo}/shadho/configuration.py. Also an empty .shadho dir solves the exception raised at line 130, so I guess shadho doesn't need to find it when installed via conda. Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants