Coder Social home page Coder Social logo

Comments (3)

Jesus89 avatar Jesus89 commented on June 17, 2024

Drivers > Enable option in mac installs libftdi using homebrew and also performs some kextuload: http://apiodoc.readthedocs.io/en/stable/source/installation.html#manually. This behavior is equivalent in the cli "apio": https://github.com/FPGAwars/apio.

Can you install it (pip install -U apio), execute this command (apio drivers --enable), and paste the output?

Thanks.

from icestudio.

 avatar commented on June 17, 2024

I appear to have had some undone steps. First I had to install pip (even though I already had a functioning python installation) using the get-pip.py script. Then I installed apio using pip. Then I could run the above command. The output follows:

System:~ home$ apio drivers --enable
Configure FTDI drivers for FPGA
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin16/rbconfig.rb:213: warning: Insecure world writable dir /usr/local in PATH, mode 040777
==> Downloading https://homebrew.bintray.com/bottles/libftdi-1.3.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring libftdi-1.3.sierra.bottle.tar.gz
==> Caveats
Python modules have been installed and Homebrew's site-packages is not
in your Python sys.path, so you will not be able to import the modules
this formula installed. If you plan to develop with these modules,
please run:
mkdir -p /Users/home/Library/Python/2.7/lib/python/site-packages
echo 'import site; site.addsitedir("/usr/local/lib/python2.7/site-packages")' >> /Users/home/Library/Python/2.7/lib/python/site-packages/homebrew.pth
==> Summary
🍺 /usr/local/Cellar/libftdi/1.3: 23 files, 419.7K
Password:
FPGA drivers enabled
System:~ home$

After having done the above, Icestudio can enable and disable the drivers without any difficulty. Problem fixed!

I guess the ultimate solution is to either include making sure pip and apio are installed as part of the installation instructions, and/or having the enable/disable functions in Icestudio check for this and provide an error message for that condition. Thanks much for the help!

from icestudio.

Jesus89 avatar Jesus89 commented on June 17, 2024

Hi,

Icestudio installs a virtualenv with apio in local $HOME/.icestucio/venv. No internet required because all packages are located inside the package.

I have check the Icestudio commands, and recently a new configuration for drivers enable including:

/usr/local/bin/brew update
/usr/local/bin/brew install libftdi
/usr/local/bin/brew link --overwrite libftdi

Probably the internet connection message comes from brew update, and the app "hang" was the libftdi download. I will investigate that.

from icestudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.