question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Instructions on how to update ADS won't update the Ivadomed package

See original GitHub issue

While testing #620, I encountered an error that was previously fixed on the Ivadomed side. This is because I didn’t update the Ivadomed package in my environment.

Currently, in our docs, it says that we can update ADS by using these commands:

cd axondeepseg
git pull
pip install -e .

However, those instructions won’t update the Ivadomed package. The user would need to do an additional command: pip install ivadomed==<The latest version supported by ADS>.

Question: Will ADS always support the latest Ivadomed version? In this case, we would just need to add pip install ivadomed to the instructions. But if we insist on installing a fixed version, the user would have to check in the environment.yml file which version to install, which might be a bit cumbersome for the user.

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
mariehbourgetcommented, May 2, 2022

Quick update: as I mentioned in last week’s meeting, there is a PR in ivadomed (1000) that I think will help address these issues, and another related PR for documentation (1125).

We discussed it brieftly in ivadomed meeting today and @dyt811 will put together a meeting with ivadomed, SCT and ADS dev to discuss further.

0reactions
hermancollincommented, May 5, 2022

Particularly, running pip inside of setup.py is not going to work reliably. The procedural code in setup.py is stripped out when built into a .whl file. It might work, for a while, if you force people to install ADS from source, but it’s not really welcomed by the PyPA people.

@kousu yeah… I read your discussion with PyPA devs and their opinion about it. Very informative btw. I agree that this is not a long-term solution and we might want to avoid merging PR #631 in its current state.

I would be curious to see how other big “pro” python packages deal with these kinds of issues. We can’t be the first group to encounter this torch dependency can of worms.

Does pip install --upgrade -e . solve the original issue?

Hmm it doesn’t work on my side.

I mean in the end, if we can’t find an appropriate solution for this, we could always ask the user to reinstall the whole environment from scratch like previously suggested here (also, from what I understood, this is how sct deals with this). But it still doesn’t fix the fact that we have to account for an ivadomed-compatible torch version

Read more comments on GitHub >

github_iconTop Results From Across the Web

Introduction — AxonDeepSeg 4.1.0 documentation
To update an already cloned AxonDeepSeg package, pull the latest version of the project from GitHub and re-install the application: cd axondeepseg git...
Read more >
How to apply service pack/ upgrade ADAudit Plus ... - YouTube
Watch the video and learn how to apply service pack / upgrade ADAudit Plus to latest version. ... Your browser can't play this...
Read more >
i am unable to install onnxruntime with pip3 .please resolve it
You are probably using python 3.10 Currently (June 2022) onnxruntime support goes only up to python 3.9.
Read more >
Home — ivadomed documentation
ivadomed is an integrated framework for medical image analysis with deep learning, based on PyTorch. The name is a portmanteau between IVADO (The...
Read more >
ivadomed: A Medical Imaging Deep Learning Toolbox - arXiv
The package includes APIs, command-line tools, documentation, ... Overall, ivadomed enables easy and quick exploration of the latest ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found