Opened 4 years ago

Closed 4 years ago

#1162 closed defect (fixed)

QT5 Gui developer environment issue?

Reported by: richardh Owned by: richardh
Priority: minor Milestone: SasView 5.0.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing


On my win7 laptop, I have cloned current sasview & sasmodels and run the yml files for both wx and qt5 gui.

Though this works fine on my desk top machine, the laptop behaves slightly differently (e.g. makes an environment called qt5_win not qt5). The wx vesrion runs fine, but I cannot get the qt5 one to work, the initial splash image appears briefly, then I get the failed import error below. Any ideas?

(Would not normally ticket this sort of thing but I want to get the laptop prepared for code camp and also update the developer wiki page on how to make local builds.)

$ python

Traceback (most recent call last):

File "", line 167, in <module>


File "C:\stfc\sasview42\sasview\src\sas\qtgui\MainWindow\", line 71, in run_sasview

mainwindow = MainSasViewWindow()

File "C:\stfc\sasview42\sasview\src\sas\qtgui\MainWindow\", line 24, in __init__

from .GuiManager import GuiManager

File "C:\stfc\sasview42\sasview\src\sas\qtgui\MainWindow\", line 14, in <module>

from sas.qtgui.Utilities.ConnectionProxy import ConnectionProxy

File "C:\stfc\sasview42\sasview\src\sas\qtgui\Utilities\", line 3, in <module>

import urllib.request, urllib.error, urllib.parse

ImportError: No module named request


Change History (4)

comment:1 Changed 4 years ago by wojciech

I suppose you are trying to run Qt branch with anaconda2.
ESS GUI branch works with python3 and therefore it requires anaconda3. Once anaconda 3 is installed, create env from most recent yml file in ESS_GUI branch sasview/build_tools/conda_qt5_win.yml. I hope this works.

comment:2 Changed 4 years ago by tcbennun

Oddly enough everything works fine for me using conda_qt5_win.yml, and I have Anaconda 2, not 3! However, I've modified conda_qt5_win.yml to ensure Python 3 is installed, in case the dependency engine chooses Python 2 by default (hasn't ever happened to me, but perhaps is happening to Richard).

comment:3 Changed 4 years ago by tim

  • Owner changed from wojciech to richardh
  • Status changed from new to assigned

Now we're a few days into the CC, did you manage to resolve this?

comment:4 Changed 4 years ago by butler

  • Resolution set to fixed
  • Status changed from assigned to closed

Richard says it has been resolved so closing

Note: See TracTickets for help on using tickets.