Skip to content
This repository has been archived by the owner on Jul 18, 2019. It is now read-only.

twoporeguys/homebrew-formulas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

93 Commits
 
 
 
 

Repository files navigation

brew-formulas

Brew formulas for the TPG repositories and tool setup.

Configure:

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   

Run and test

> 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')

For sample prep:

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 

Troubleshooting

librpc ModuleNotFoundError

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:

Weird errors

Try reinstalling all the things:

pip3 uninstall pygobject cairocffi matplotlib
brew uninstall --ignore-dependencies libadcusb librpc python3
brew install sampleprep

About

Brew formulas for the TPG repositories

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages