Opened 4 weeks ago

Closed 10 days 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

Description

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 run.py

Traceback (most recent call last):

File "run.py", line 167, in <module>

run_sasview()

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

mainwindow = MainSasViewWindow()

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

from .GuiManager import GuiManager

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

from sas.qtgui.Utilities.ConnectionProxy import ConnectionProxy

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

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

ImportError: No module named request

(qt5_win)

Change History (4)

comment:1 Changed 4 weeks 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 3 weeks 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 13 days 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 10 days 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.