-
Notifications
You must be signed in to change notification settings - Fork 39
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
toast.__init__
fails an exception
#314
Comments
That is not stale code- it is used installing the code with setup.py during generating the documentation on readthedocs. |
Excellent. However, it still fails if there is any issue importing
|
Ok, we should have an additional try / except around parsing the RELEASE file and raise ImportError so that it propagates back to the calling code. |
This old issue was fixed some time ago in #350. If the compiled extension is not importable to get the version and also the RELEASE file is not readable, then it raises ImportError. |
Should
import toast
fail, the exception handling seems to have some stale code that looks for file calledRELEASE
two levels higher than the root directory: https://github.com/hpc4cmb/toast/blob/master/src/toast/__init__.py#L24-L35The text was updated successfully, but these errors were encountered: