Brew formulas for the TPG repositories and tool setup.
This assumes you are on a mac, have homebrew installed and have GIT access using ssh to twoporeguys/homebrew-formulas.
Then, on you type these commands to install things:
brew tap twoporeguys/homebrew-formulas # Add TPG formulas to your homebrew
brew install librpc --with-python # Install librpc with python3 (use --with-python@2 for python 2.7)
brew install libadcusb --with-python
> ipython
Python 3.6.3 (default, Oct 20 2017, 16:17:23)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import librpc
In [2]: client = librpc.Client()
In [3]: client.connect('usb://CharlieAssembly84')
In [4]: client.call_sync('adc.identify')
Same prerequisites as above, but really, you should be able to just type
brew tap twoporeguys/homebrew-formulas # Add TPG formulas to your homebrew
brew install sampleprep
Error:
> ipython
Python 3.6.2 |Anaconda, Inc.| (default, Sep 21 2017, 18:29:43)
Type 'copyright', 'credits' or 'license' for more information
IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import librpc
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-1-d9b6ef89b153> in <module>()
----> 1 import librpc
ModuleNotFoundError: No module named 'librpc'
Solution:
Try reinstalling all the things:
pip3 uninstall pygobject cairocffi matplotlib
brew uninstall --ignore-dependencies libadcusb librpc python3
brew install sampleprep