GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • FAST | Documentation
  • Get started
  • Install FAST
  • C++ Introduction Tutorial
  • Python Introduction Tutorial
  • Text Pipelines
  • Learn FAST
  • C++ Tutorials
  • C++ Examples
  • Python Tutorials
  • Python Examples
  • API Reference
  • API Index
  • Building FAST

This view

  • Original page
  • New address

GeezerVison is showing fast-imaging.github.io — Install FAST for Python | FAST | Documentation

Install FAST for Python

To install FAST for Python (3.6 or newer), first make sure you have all the necessary requirements installed.

Then you may simply install FAST using pip:

pip install pyfast

Alternatively, you can also download a Python wheel (pyFAST-X.X.X-cp36-abi3-X.whl) from the release page, and install it by:

pip install pyFAST-X.X.X-cp36-abi3-X.whl

To test that your installation works you can do the following:

# Start python
python

Then write the following python code, which should display the FAST logo on your screen.

import fast

importer = fast.ImageFileImporter\
    .create(fast.Config.getDocumentationPath() + '/images/FAST_logo_square.png')

renderer = fast.ImageRenderer.create()\
    .connect(importer)

fast.SimpleWindow2D.create()\
    .connect(renderer)\
    .run()

To start using FAST for python, you might want to look at the Python tutorials and the Python examples page.

Running FAST on a remote server

If you want to run FAST on a remote server AND visualize you need to use VirtualGL. Plain X forwarding (ssh -X) most likely will not work. See this page for more info on how to use VirtualGL.

Troubleshoot

NumPy Errors

If you get an error saying something like "ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'" or "ImportError: numpy.core.multiarray failed to import". Try to completely remove numpy and reinstall:
Run the following command multiple times, until it says "Cannot uninstall numpy..":

pip uninstall numpy

Then reinstall numpy:

pip install numpy

Security warning on Mac OS X

When you try to run FAST, Mac will give you a security warning because FAST is not code signed (Apple charges money for this..). Apple insists on giving you this warning for every binary in the release, you can add an exception for each of them or you can disable the gatekeeper completely by opening your terminal and writing:

sudo spctl --master-disable

You can re-enable the gatekeeper later if you wish:

sudo spctl --master-enable

Uninstall

pip uninstall pyfast

To delete the downloaded test data, and any cached data, simply delete the folders C:/ProgramData/FAST/ on windows, and /home/'your username'/FAST/ on Linux.

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.