Skip to content

en_PythonInstallation_Mac

Yoshiyuki Kawashima edited this page Jan 9, 2018 · 7 revisions

Installing Python3 on Mac OS X

IkaLog is Python-based software. This page describes how to install Python 3.x to run IkaLog.

  • IkaUI.py is not runnable on OS X.

Requirements (TBD)

  • Python 3.4.3 or 3.5 must be installed.
  • Able to import cv2 (OpenCV 3.x), numpy, and more modules. Make sure build with ffmpeg (--with-ffmpeg); otherwise you'll experience serious performance degradation.
  • Encoding mode must be utf-8.

Confirm the default encoding in Python3

import sys
print(sys.getdefaultencoding())

Procedures

Install Homebrew

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Install Python3, OpenCV 3.x, and more dependencies

brew install python3
brew install homebrew/python/numpy --with-python3
brew link numpy
brew install homebrew/science/opencv3 --with-python3 --with-ffmpeg
brew link opencv3 --force

pip3 install slackweb
pip3 install fluent-logger
pip3 install requests-oauthlib
pip3 install urllib3
pip3 install u-msgpack-python
pip3 install Pillow
pip3 install tornado
pip3 install certifi
pip3 install opencv-python

wxPython (optional, needs for IkaUI components development)

pip3 install --upgrade --trusted-host wxpython.org --pre -f http://wxpython.org/Phoenix/snapshot-builds/ wxPython_Phoenix
pip3 install PyYAML

Review the installation

dhcp44-82:~ hasegaw$ python3
Python 3.4.3 (default, Jul 13 2015, 12:18:23)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cv2
>>> import numpy
>>> import sys
>>> print(sys.getdefaultencoding())
utf-8
>>> (Press Ctrl-D)
dhcp44-82:~ hasegaw$

Install IkaLog

Follow en_Installation_CLI page.

Platform-specific notes on MacOS X

  • Currently IkaLog on MacOS X supports BlackMagic Design's UltraStudio Recorder, and Intesnity Shuttle.
  • Don't forget to setup your Wii U 720p output.
  • As needs to run BlackMagic Desktop Utility and configure HDMI as device input.
  • Before trying IkaLog, run BlackMagic MediaExpress application and click "Log and Capture" button to confirm the capture with resolution of 1280x720. Once you confirmed, quit the app, since it conflicts with IkaLog (and other video applications.)
  • See [en_TestingYourCaptureDevice] to test your capture device asm IkaLog input. You'll find the device number in your Mac that will be needed in IkaConfig.py.