Changes between Version 33 and Version 34 of DevNotes/DevGuide/CondaDevSetup


Ignore:
Timestamp:
Mar 14, 2019 1:32:26 PM (2 months ago)
Author:
richardh
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • DevNotes/DevGuide/CondaDevSetup

    v33 v34  
    4141conda install -c conda-forge make 
    4242}}} 
    43 On Windows 10, you may find that the `make` command does not work with the above method. You can find a Windows-compatible build of GNU Make here: http://gnuwin32.sourceforge.net/packages/make.htm Ensure that you add the install directory to your PATH. 
     43On Windows 10, you may find that the `make` command does not work with the above method, type ''make ''to see if it is a recognised command. You can find a Windows-compatible build of GNU Make here: http://gnuwin32.sourceforge.net/packages/make.htm Ensure that you add the install directory to your PATH. 
     44 
     45Likewise on WIndows 10,'' python setup.py docs  ''for some reason still needs a gcc compiler even though the main compile uses MSVC, type gcc to see if it is a recognised command, install mingw and make sure your path has e.g. ''!c:/mingw/bin''. 
     46 
     47You may have to delete some old .so compiled files from [c:/users/yourusername/.sasmodels/compiled_models c:\users\yourusername\.sasmodels\compiled_models] if there is some 32 to 64 but muddle or change. 
    4448 
    4549Also see Step 5 below. 
     
    7478 
    7579}}} 
    76  
    7780If, when the docs build, you get an error like this: 
    7881 
     
    8992DistributionNotFound: The 'mock' distribution was not found and is required by matplotlib 
    9093}}} 
     94Also install the dependencies ''mock'' and ''nose''. 
    9195 
    92 Also install the dependencies ''mock'' and ''nose''. 
    93 == [=#anchor1 Step 6 - try the new qt gui (work in progress)] == 
    94 ''Some notes, updated 21 August 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.'' 
    95  
     96== [=#anchor1 Step 6 - try the new sasview 5 with qt gui] == 
    9697Sasview 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, because the environment YAML file (see below) will ensure that Python 3 is installed. 
    9798 
     
    101102git checkout ESS_GUI 
    102103}}} 
    103  
    104104There are now a number of operating system dependent .yml files in sasview/build_tools, cd to there then e.g. for Windows 
    105105 
     
    107107conda env create -f conda_qt5_win.yml --name qt5 
    108108}}} 
    109  
    110 ''[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.]'' 
     109''[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.]'' 
    111110 
    112111In an Anaconda prompt (or equivalently in Git Bash, if your Anaconda installation is in your $PATH), run: 
     
    115114conda activate qt5 
    116115}}} 
     116or else do [is there any difference?]: 
    117117 
    118 or else do [is there any difference?]: 
    119118{{{ 
    120119source activate qt5 
    121120}}} 
    122  
    123121On Windows, as of July 2018, you will need to install Build Tools for Visual Studio 2015. This is found under the 2017 label, confusingly: https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2017 Download the installer and run it. Find "Visual Studio Build Tools 2017" and click Install. In the window that appears, navigate to "Individual components" and ensure that "VC++ 2015.3 v14.00 (v140) toolset for desktop" and a relevant Windows SDK (e.g. Windows 10 SDK, if you are using Windows 10) are selected. Finally, click Install. 
    124122 
    125123You can now run `python run.py` as usual to start the application. 
    126124 
     125''If you then get a ''fatal error LNK1158: cannot run rc.exe'', then following some advice found on web, try copying files ''rc.exe'' and ''rcdll.exe ''from e.g. ''C:\Program Files (x86)\Windows Kit\10\bin\10.0.17763.0'' to ''Program files (x86)\Microsoft visual Studio 14.0\VC\bin\x86_amd64 ''(which is the path to the MSVC compiler reported in gitbash window). Simply adding a path to the other directory did not work in this case.'' 
     126 
    127127''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.'' 
    128128 
    129 ''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.'' 
     129''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!). Else, perhaps even better, force a complete rebuild by deleting the ''sasview\build ''directory'' 
    130130 
    131131=== Other useful conda commands ===