Changes between Version 33 and Version 34 of DevNotes/DevGuide/CondaDevSetup
- Timestamp:
- Mar 14, 2019 1:32:26 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevNotes/DevGuide/CondaDevSetup
v33 v34 41 41 conda install -c conda-forge make 42 42 }}} 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. 43 On 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 45 Likewise 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 47 You 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. 44 48 45 49 Also see Step 5 below. … … 74 78 75 79 }}} 76 77 80 If, when the docs build, you get an error like this: 78 81 … … 89 92 DistributionNotFound: The 'mock' distribution was not found and is required by matplotlib 90 93 }}} 94 Also install the dependencies ''mock'' and ''nose''. 91 95 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] == 96 97 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, because the environment YAML file (see below) will ensure that Python 3 is installed. 97 98 … … 101 102 git checkout ESS_GUI 102 103 }}} 103 104 104 There are now a number of operating system dependent .yml files in sasview/build_tools, cd to there then e.g. for Windows 105 105 … … 107 107 conda env create -f conda_qt5_win.yml --name qt5 108 108 }}} 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.]'' 111 110 112 111 In an Anaconda prompt (or equivalently in Git Bash, if your Anaconda installation is in your $PATH), run: … … 115 114 conda activate qt5 116 115 }}} 116 or else do [is there any difference?]: 117 117 118 or else do [is there any difference?]:119 118 {{{ 120 119 source activate qt5 121 120 }}} 122 123 121 On 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. 124 122 125 123 You can now run `python run.py` as usual to start the application. 126 124 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 127 127 ''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.'' 128 128 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'' 130 130 131 131 === Other useful conda commands ===