Open vsoch opened 6 years ago
Indeed does not seem to be Python 3 compatible:
File "/usr/local/lib/python3.6/site-packages/nidmviewer/viewer.py", line 5, in <module>
from nidmviewer.utils import strip_url, get_random_name, get_extension, \
File "/usr/local/lib/python3.6/site-packages/nidmviewer/utils.py", line 63
print "Cannot download %s" %(src)
Related to: https://github.com/NeuroVault/NeuroVault/issues/630#issuecomment-402520298
I can get this fixed up later tomorrow (after moving truck), thanks for letting me know!
@vsoch I can help you with truck moving.
lol, I appreciate the offer, but you might have a hard time getting here to help from Belarus! I should be ok :)
ohh hmm, it looks like I did this months ago and it was never reviewed by @satra and @cmaumet ... https://github.com/vsoch/nidmviewer/pull/24
I knew I wasn't nuts :P
Yes, I hoped for a free ticket. )
Maybe splitting #24 into several logical PRs could put less burden and more fun on reviewers. Licenses are surely the most complicated thing.
This is the license I've chosen to ensure the software remains open source. AGPL basically says you are free to use the software as long as any changed code remains public, and unchanged could still be private. NeuroValt would not have issue, per my understanding of the license. Codewise is not too complicated to review. Could you explain the issue that you have?
I'm also going back to sleep, it's 3:30 am here :)
Just kidding it's BSD and not AGPl, which is very permissive.
@abitrolly per my suggestion in the PR I think this would be best tackled by writing tests. Would you care to take a shot?
I have no idea how to setup fixtures/environment for testing it (HTTPS redirects etc.). There should be declarative format to describe such setups in virtual environment, but I don't know any, and before writing one I better fund a job to cover human body possession expenses while I complete all other tools in the queue. :)
@chrisfilo your thoughts?
Not sure what you are talking about @abitrolly - care to elaborate?
I agree that splitting #24 into three PRs (one for fixing each of #19 #23 and #20) - I see @cmaumet also gave a thumbs up for that. It would also make it easier to see which parts of the code need tests. @eayoungs has committed to porting NeuroVault to python 3 which this is part of so they can hopefully help.
Nevermind. Splitting PRs into pieces is a way to go.
I'm catching up on the conversation, now...
Here is the first PR, please read the description for... exactly that :) https://github.com/vsoch/nidmviewer/pull/25 When this goes through I will start on the next.
wow, must have made this a long time ago :P