neuropoly / slicer-manual-annotation

MIT License
1 stars 1 forks source link

Importing packages on fresh install #38

Open laurentletg opened 1 month ago

laurentletg commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

SlicerCART fails to load on a fresh install of 3D Slicer. These packages needs to be manually installed in the python interactor, not ideal.

slicer.util.pip_install('PyQt5')
slicer.util.pip_install('bids-validator')

Note that Slicer has a version of Qt (Qt for Python which has a more liberal license than PyQt5). it is already imported. It seems that PyQt5 import QtCore be replaced by qt.QCoreApplication

To Reproduce Add the module and try to load it.

Expected behavior Module checks if the extension is available and if not pip install it. I am unsure about how extensions are managed when going through the official Slicer extension.

Screenshots If applicable, add screenshots to help explain your problem.

image
jcohenadad commented 1 month ago

Relevant posts: