Skip to content
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

fixes #38 import missing packages. Removed PyQt5 import, uses qt instead #41

Closed
wants to merge 3 commits into from

Conversation

laurentletg
Copy link
Collaborator

Updated PR.

  1. Work around created to import missing python packages when loading 3D Slicer, including a Qt Message box prompt. There is probably a better way to install missing python packages through the extension manager. To check later if we decide to go that way.
  2. Removed the PyQt5 import and just kept everything under qt.

Note I closed my previous PR since there were unnecessary lines added to my previous commit.

@@ -19,17 +18,58 @@
from bids_validator import BIDSValidator
import filecmp
import shutil
import nib
import nibabel as nib
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that will probably fail if the library is not installed yet. You probably want to move these imports after the call to check_and_install_python_packages()

@jcohenadad
Copy link
Member

@laurentletg I created a branch with suggestions here: #43

Feel free to incorporate them. I'm also happy to take on this PR.

@jcohenadad
Copy link
Member

I'm closing this PR as it has been superseded by #43 (which has just been merged)

@jcohenadad jcohenadad closed this Jul 16, 2024
@jcohenadad jcohenadad mentioned this pull request Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants