RTI Library in Python
Rowe Technologies Inc. Python library
There is currently no main file to run. This library contains a variety of utility applications.
The Utilities and tests folder contain python applications to test different features and also used for examples.
Must use Python version 3.5
OSX and Linux
pip3 install -r requirements.txt -UI --userWindows
python -m pip install -r requirements.txt -UI --usercd crossbar
crossbar startThis will start the WAMP server, the serial port and GUI
OSX
pyinstaller Predictr_installer_OSX.specWindows
You will need to install MSVC 2015 redistribution.
Then add C:\Program Files (x86)\Windows Kits\10\Redist\ucrt\DLLs\x64 to environment PATH. Then the warning message about api-ms-win-crt-***.dll will disappear and all works correctly.
C:\Users\XXX\AppData\Local\Programs\Python\Python35\Scripts\pyinstaller.exe Predictr_installer_WIN.specThis will create a dist and build folder. The exe in is the dist folder.
OSX
pyinstaller /path/to/mainwindow.py --windowed --onefileWindows
C:\Users\XXX\AppData\Local\Programs\Python\Python35\Scripts\pyinstaller.exe --windowed --onefile --paths C:\Users\XXX\AppData\Roaming\Python\Python35\site-packages\PyQt5\Qt\bin /path/to/mainwindow.pyYou will need to add the predictor.json to the data=[] in the spec file. Use the spec files as an example for the data=[] settings.
Windows must include the path to PyQT5 DLL files.
OSX
pyuic5 -x file.ui -o file.pyWindows
C:\Users\XXX\AppData\Local\Programs\Python\Python35\Scripts\pyuic5.exe -x file.ui -o file.pyAdd all the images included in the .qrc file. Then compile it. Also add the images to the spec file.
OSX
pyrcc4 -o images.qrc images_qr.pyOSX and Linux
export PYTHONPATH=$PYTHONPATH:/path/to/rti_python
python3 Utilities/EnsembleFileReport.py -i file -vWindows
set PYTHONPATH=%PYTHONPATH%;/path/to/rti_pythonInstall AWS CLI
pip3 install awscliSetup a configuration
aws configureAdd a User to IAM in AWS Console
Create Access key and Secret key and add to 'aws configure'
#install pyside2
#To Compile pyside2 from source for OSX
##Download and install QT5.6
curl -O https://raw.githubusercontent.com/Homebrew/homebrew-core/fdfc724dd532345f5c6cdf47dc43e99654e6a5fd/Formula/qt5.rb
brew install ./qt5.rb
##Download pyside2
git clone --recursive http://code.qt.io/cgit/pyside/pyside-setup.git/
##Install pyside3 with python3 and QT5.6
python3 setup.py install ---ignore-git --build-tests --qmake=/usr/local/Cellar/qt5/5.6.1-1/bin/qmake --cmake=/usr/local/bin/cmake --openssl=/usr/bin/openssl