Changes between Version 26 and Version 27 of DevNotes/CondaDevSetup


Ignore:
Timestamp:
Jul 5, 2018 7:13:13 AM (5 months ago)
Author:
tcbennun
Comment:

few clarifications about pyQT version

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/CondaDevSetup

    v26 v27  
    6262}}} 
    6363== [=#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.'' 
    6565 
    66 source deactivate 
     66SasView 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. 
    6767 
     68Using Git Bash, {{{cd}}} to your sasview directory and run: 
     69 
     70{{{ 
    6871git 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}}} 
     73Look 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). 
    7174 
    7275''[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.]'' 
    7376 
     77In an Anaconda prompt (or equivalently in Git Bash, if your Anaconda installation is in your $PATH), run: 
     78 
     79{{{ 
    7480conda env create -f=/path-to-your-new-yml-file/conda_py3_qt5_env_new.yml 
     81conda activate qt5 
     82}}} 
    7583 
    76 source activate qt5 
    77  
    78 cd src/sas/qtgui 
    79  
    80 python convertUI.py 
    81  
    82 cd ../../.. 
    83  
    84 python run.py 
     84You can now run {{{python run.py}}} as usual to start the application. 
    8585 
    8686''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.'' 
    8787 
    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.'' 
    8989 
    90 conda info --envs      ''will show that you now have both sasview and qt5 environments.'' 
     90=== Other useful conda commands === 
    9191 
    92 conda env remove --name qt5''  '' 
     92{{{conda info --envs}}} 
     93This will show that you now have both sasview and qt5 environments. 
    9394 
    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---- 
    9596 
    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}}} 
     98This 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. 
    9799 
    98 conda env update -f=/path to your new yml file/conda_py3_qt5_env_new.yml --name qt5 
     100---- 
    99101 
    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.'' 
     102If 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---- 
    101107 
    102108== [=#anchor1 Step 7 - Install Git (Optional)] ==