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

Error in loading Perktutor in Slicer 4.10.2 #67

Open
carlos-luque opened this issue Jul 30, 2019 · 2 comments
Open

Error in loading Perktutor in Slicer 4.10.2 #67

carlos-luque opened this issue Jul 30, 2019 · 2 comments

Comments

@carlos-luque
Copy link

carlos-luque commented Jul 30, 2019

Hello all,

I am opening this issue, because we found this error in Slicer 4.10.2 when the extension Perktutor is installed. The error is not generated in Slicer 4.10.1.

Traceback (most recent call last):
File "", line 1, in
File "C:/Users/CarlosLuque/AppData/Roaming/NA-MIC/Extensions-28257/PerkTutor/lib/Slicer-4.10/qt-scripted-modules/PythonMetricsCalculator.py", line 3, in
import urllib.request
ImportError: No module named request
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\CarlosLuque\AppData\Roaming\NA-MIC\Extensions-28257\PerkTutor\lib\Slicer-4.10\qt-scripted-modules\PythonMetricsCalculator.py", line 3, in
import urllib.request
ImportError: No module named request
Traceback (most recent call last):
File "", line 1, in
NameError: name 'PythonMetricsCalculator' is not defined

I compared the different versions of PythonMetricsCalculator.py in Slicer 4.10.1 and Slicer 4.10.2 and the difference is in urllib.request.

Thanks in advances
Carlos Luque

@matthewsholden
Copy link
Member

matthewsholden commented Jul 30, 2019

Thanks for the report. This seems to be related to the transition from Python 2 to Python 3 of Slicer. But I think it should be addressed by the pull request #66.

@matthewsholden
Copy link
Member

Until pull request #66 is merged, it should work with the latest Slicer nightly.

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

No branches or pull requests

2 participants