Changes between Version 26 and Version 27 of DevNotes/DevGuide/CondaDevSetup
- Timestamp:
- Jul 5, 2018 5:13:13 AM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevNotes/DevGuide/CondaDevSetup
v26 v27 62 62 }}} 63 63 == [=#anchor1 Step 6 - try the new qt gui (work in progress)] == 64 ''Some notes, updated 5th June 2018, based on a Windows 7 install. If you just want to see what the new gui looks like, Piotr may have a downloadable installer. Developers - start with Git bash in your sasview directory:''64 ''Some notes, updated 5th June 2018, based on a Windows 7 install. If you just want to see what the new GUI looks like, Piotr may have a downloadable installer.'' 65 65 66 source deactivate 66 SasView is being reworked, in the ESS_GUI git branch, to use PyQT 5.0 for the GUI. Please note that this branch uses '''exclusively Python 3'''. There is no need to install Anaconda again, though, because the environment YAML file (see below) will ensure that Python 3 is installed. 67 67 68 Using Git Bash, {{{cd}}} to your sasview directory and run: 69 70 {{{ 68 71 git checkout ESS_GUI 69 70 ''Look for ''sasview/build_tools/conda_py3_qt5_env.yml'', open it in an editor, save it somewhere else '''outside '''of git control, '''remove''' in the pip section the lines for ''sasview ''and ''sasmodels'', then '''add '''there '''''- tinycc==1.1 '''''the compiler for the models.'' 72 }}} 73 Look for {{{sasview/build_tools/conda_py3_qt5_env.yml}}}, open it in an editor, save it somewhere else '''outside''' of git control, '''remove''' in the pip section the lines for {{{sasview}}} and {{{sasmodels}}}, then '''add''' there: {{{- tinycc==1.1}}} (the compiler for the models). 71 74 72 75 ''[Note - if later whilst running sasview you have problems with models not compiling or loading, close sasview, delete the contents of the directory users/your-user-name/sasmodels/compiled_models, then re-start, which will force re-compilation using the current compiler.]'' 73 76 77 In an Anaconda prompt (or equivalently in Git Bash, if your Anaconda installation is in your $PATH), run: 78 79 {{{ 74 80 conda env create -f=/path-to-your-new-yml-file/conda_py3_qt5_env_new.yml 81 conda activate qt5 82 }}} 75 83 76 source activate qt5 77 78 cd src/sas/qtgui 79 80 python convertUI.py 81 82 cd ../../.. 83 84 python run.py 84 You can now run {{{python run.py}}} as usual to start the application. 85 85 86 86 ''If run.py gives an error from line 1140 in readCategoryInfo, you likely have the old version of the categories file. Delete the file serial_cat.json from your user directory ( c:/users/username/.sasview in Windows) and then run the latest *release* version of sasview. This will automatically generate the correct categories.json file.'' 87 87 88 '' Other useful conda commands:''88 ''If qt5 sasview does not run the first time through, try going back to the normal sasview master ({{{git checkout master}}}), then repeat the steps above once more (trust me it may then work!). Piotr and others will be making this easier in the future.'' 89 89 90 conda info --envs ''will show that you now have both sasview and qt5 environments.'' 90 === Other useful conda commands === 91 91 92 conda env remove --name qt5'' '' 92 {{{conda info --envs}}} 93 This will show that you now have both sasview and qt5 environments. 93 94 94 ''will remove the qt5 environment, though the files involved seem to stay on your hard drive so a new ''conda env create ''is much faster than the first time.'' 95 ---- 95 96 96 ''if something fails part way through creating an environment, such as not removing the pip install for sasview & sasmodels, then "update" will be faster e.g.'' 97 {{{conda env remove --name qt5}}} 98 This will remove the qt5 environment, though the files involved seem to stay on your hard drive so a new {{{conda env create}}} is much faster than the first time. 97 99 98 conda env update -f=/path to your new yml file/conda_py3_qt5_env_new.yml --name qt5 100 ---- 99 101 100 ''If qt5 sasview does not run the first time through, try going back to the normal sasview master, then repeat the steps above (trust me it may then work!). Piotr and others will be making this easier in the future.'' 102 If something fails part way through creating an environment, such as not removing the pip install for sasview & sasmodels, then "update" will be faster e.g. 103 104 {{{conda env update -f=/path to your new yml file/conda_py3_qt5_env_new.yml --name qt5}}} 105 106 ---- 101 107 102 108 == [=#anchor1 Step 7 - Install Git (Optional)] ==