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
ivadomed documentation modifications #851
Conversation
there are also issues with the missing |
Thanks, @jcohenadad . Fair point. I wasn't sure if I should open individual issues or keep them same. May be I can give a more general title of the title like 'ivadomed doc modifications'? As for issue #844 , I did not have much success with conda on my local system since the conda env was not discoverable. Hence, I ended up using virtualenv both locally and on compute canada. @dyt811 is aware of this issue I had. I am not sure how can I update the doc since I could not get it working with |
Pull Request Test Coverage Report for Build 1187236723
💛 - Coveralls |
👍 |
hum... weird... maybe another bug? i was able to have it work on my end. Maybe a full terminal output would be more informative to find out the source of the bug? |
Oh, the screenshot is the full terminal out. Here under Approach 1, step 1 and step 2 is what I did (as seen in screenshot) but conda env was not found. There was error. it's just that it didn't find the conda env to activate |
from the terminal we cannot see what git commit of ivadomed you used, what version of conda, etc.
|
I apologize for the mixup in URLs. This is the correct URL: https://ivadomed.org/en/latest/installation.html (please step 1 and step 2 under Approach 1).
It is very much possible that it is an issue on my conda env. I will double check it tomorrow and update accordingly. |
I tried installing with approach 1 and it failed on my end too. Step 1: $ conda env create --file environment.yml
EnvironmentFileNotFound: '/home/herman/Documents/NEUROPOLY_21/crypte/environment.yml' file not found
And of course the file isn't found, because the repo hasn't been cloned yet (instructions are missing this preliminary step). My understanding is that the environment.yml file is the one from the ivadomed repo. Also, step 1 is called Create new Conda Env called IvadoMedEnv but the name isn't even specified in the command itself. Instead, maybe first clone the repo using: git clone https://github.com/neuropoly/ivadomed.git
cd ivadomed (btw the doc specifies in approach 2 using then, create the conda virtual env and specify the right name: conda env create -f environment.yml -n IvadoMedEnv
conda activate IvadoMedEnv This is how I got it to work on my end. Moreover, as mentioned by @jcohenadad in #844, the pip install step is missing, for example, if we want to install from source, this last step is required: pip install -e . Now it works on my side. @copperwiring if you try this instead does it work on your end? |
Thank you for checking @hermancollin . However I had cloned the repo :) In the snapshot you will see the folder name I am in ( I agree we should add the following to complete the steps
I am curious about this. It should have worked. What's the error? |
Yes I noticed you had indeed cloned the repo because the "environment.yml" was found, from what I see in your screenshot, but don't you agree that it should be mentioned in the installation steps to first clone the repo?
~/Documents/NEUROPOLY_21/dummy » git clone git@github.com:ivadomed/ivadomed.git herman@tank
Cloning into 'ivadomed'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists. I should mention I don't have permissions for this repo (I am not a member of
works for me as the repo is public. If the documentation is addressed towards people who aren't necessarily members of this org, maybe this last command should be used instead (same command as the one suggested in the readme)? |
I agree, it should be mentioned. I was hesitant to touch that section previously because I couldn't get conda working but I will push the changes
That's a very very good point and thank you for pointing this point. This will and needs to changed. Thank you again @hermancollin . |
Great points. A bit context on the core issues at hand. Pre #757, the installation instruction actually does NOT require cloning of the repo (user manually install PyTorch and can use PIP to install release version etc). Post #757, we tried to bundle that into Conda/PyTorch So I further tested conda create from A NEW PR has just been issued to allow EMPIRICAL CI based validation of conda environment installation time #855. You can see that across all OSes here (https://github.com/ivadomed/ivadomed/actions/runs/1021340338), using miniconda should not take longer than 10 minutes. I believe there might be additional confounding issues that are causing the LONG time to solve conda as this has been reported several time. I am going to open an issue to centralize the data on long solving time and see if we spot any particular patterns that is hoping up. BTW, that PR also provides Conda dev environment setup (needed for CI). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With these modifications Approach 1 works fine on my side.
Thanks everyone. I have made the suggested changes including the one suggested here. @hermancollin - though you seem to be able to approve the changes, it says |
Invited, y'all. (I kind of think everyone should be in everything but the current plan is to keep teams somewhat separate to keep the notification noise down. But if you're doing reviews for ivadomed then you're part of ivadomed I guess.) |
Thanks for the promptness @kousu ! |
docs/source/installation.rst
Outdated
:: | ||
|
||
pip install -e . | ||
|
||
Note that this is NOT compatible with ComputeCanada because of their no anaconda policy: https://docs.computecanada.ca/wiki/Anaconda/en |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i would remove-- i would minimize the references to CC-- ivadomed is an open source project dedicated to the international community-- people outside of canada have no clue what CC is so it gives the impression from "outsiders" that they are penetrating a closed circle and we don't want to give that impression-- we want to be inclusive
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @jcohenadad , may I suggest keeping this line. When I started as a newcomer, this line was very helpful for me since I used conda a lot. This helped me to directly use venv
for installation purpose.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- it is not the right place to list all computer clusters policies (if we start with that should we also list the policy of clusters in France, Germany, etc.?). The info should be moved somewhere else (eg internal developers at neuropoly, etc.)
- conda can be used on CC (i use it). It is just not recommended/supported.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @jcohenadad . My bad, as I understood that conda can not be used on CC but I stand corrected. I will remove this link and it can later be added to internal document. Thank you for the suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The reference has now been removed. Thank you!
Took a while to get back to it but all the suggestions and errors are fixed here :) |
@jcohenadad @hermancollin I am cleaning out old PRs which I feel can now be closed. @hermancollin you did approve the changes but had recommended other changes later. They have now been completed. @jcohenadad I have fixed the compute canada reference as suggested. Please let me know if things look good now. |
@copperwiring Yes! Everything LGTM, except maybe you missed one small thing @jcohenadad suggested: removing the CC note in line 71. Did you decide to keep it? If so, let me know and I can approve merging right away edit: @copperwiring ok as you mentioned, I did approve the changes but maybe you'll want to confirm line 71 here stays before merging. Apart from that I think this PR is ready to merge. Thanks for taking some time to fix this, the new installation procedure makes much more sense. |
Thanks, @hermancollin Thanks for approving. I realised I had confused the comment about removing CC with another comment (add link to CC). I just responded to Julien there and I think it would be nice to keep that line because it is important for people who are used to using Thank you. Update: As per the recommendation here, the line has been removed. |
Checklist
GitHub
PR contents
Description
In ivadomed installlation doc (https://ivadomed.org/en/latest/installation.html), under Approach 2, the second step mentions:
However, there is no mention of cloning the repo which is where the
requirement.txt
exists. Thoughgit clone
is an obvious step, it can make the installation instructions complete.Linked issues
Fixes #849