-
Notifications
You must be signed in to change notification settings - Fork 95
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
DueCredit not imported #196
Comments
Currently, We did notice a little while ago that the warning that was being raised wasn't very informative (see here), so we've since changed it to say the following when
I guess that that happened after the most recent release, so it should show up starting in the next one. |
I think it's just confusing for the user to receive the warning in a context where they're not looking for a citation, it makes it seem as if the setup has gone wrong. Would it be possible to not raise a warning at all under normal operations, but then raise an error if they're trying to get the duecredit message and it can't find the library? |
I think it's possible and a good idea, though that's something that should probably happen upstream in duecredit. |
Taking a look, it seems like that may be a complicated approach. This may be inelegant, but can we just catch that warning and then ignore it? I see that here we catch the import exception, could we add a check for the name on the bottom of the stack, and discard the message entirely if it's not duecredit? |
I'm against hiding the warning, personally. I think the new message that @tsalo introduced should alleviate a lot of this confusion (and this conversation is a good reminder that we should think about cutting a release, soon !). Regarding the placement in the documentation: I completely hear your point, but I'm not sure where would be better to put it. Do you have a suggestion ? |
RE: warning RE: doc placement |
@emdupre unfortunately with another user I've interacted with was still concerned that something is wrong with the setup, even with the new message. Nobody has filed or commented on a bug report except me, so I'm not sure how widespread this reading of the warning is. |
It's been a while since we discussed this and nobody else seems bothered by the warning, so I think we can close this. |
Sorry for never following up -- I was just concerned about hiding the warning for users who do want to use duecredit ! I think closing for now is a good call, though, and we can always re-open with new reports 😄 |
@handwerkerd Here's the relevant issue thread. |
I would like to reopen this issue as a few more NIH users have reported concern over duecredit. It's a small dependency relative to our other dependencies and I feel that if we want to use it we should just require it. |
What is the nature of their concerns? The warning message is pretty clear IMHO. |
They just ask me if it's supposed to be there. |
Fair enough. I agree that it's a very minor requirement, and it won't cost us anything to add it. |
#875 addressed this, so I'll close it now. |
When I install Tedana with pipx in a Docker image, I still get the duecredit message:
UPDATE
|
When using a miniconda3 environment or pip install, the following import error occurs:
Unless we are avoiding acknowledging the devs and their hard work, we should probably fix that :-)
The text was updated successfully, but these errors were encountered: