title: Import error: cannot import name 'opentype'
body: <p>I'm trying to follow the instructions for utilizing Firebase in my py code running on Raspberry Pi 2 B+. While running on python 3, bad stuff happens.</p>
  <p>I have included the pyrebase in my script but when I run it using python3 I get following instead (see below please). I have been working on various other languages but I just picked python and Raspberry Pi for a project that I had in mind.</p>
  <p>This post will have both my code and the terminal output that I get when I run the code</p>
  <h1>My Code:</h1>
  <pre><code>#import Libraries
  import RPi.GPIO as GPIO
  import time
  import pyrebase
  import os
  
  #Firebase Configuration
  config = {
            &quot;apiKey&quot;: &quot;apiKey&quot;,
            &quot;authDomain&quot;: &quot;rpitest-xxxxx.firebaseapp.com&quot;,
            &quot;databaseURL&quot;: &quot;rpitest-xxxxx.firebaseio.com&quot;,
            &quot;storageBucket&quot;: &quot;rpitest-xxxxx.appspot.com&quot;
  }
  
  firebase = pyrebase.initialize_app(config)
  
  #GPIO Setup
  GPIO.setmode(GPIO.BCM)
  GPIO.setwarnings(False)
  GPIO.setup(22, GPIO.OUT)
  
  #Firebase Database Intialization
  db = firebase.database()
  
  #While loop to run until user kills program
  while(True):
      #Get value of LED 
      led = db.child(&quot;led&quot;).get()
  
      #Sort through children of LED(we only have one)
      for user in led.each():
      #Check value of child(which is 'state')
        if(user.val() == &quot;OFF&quot;):
            #If value is off, turn LED off
            GPIO.output(22, False)
        else:
            #If value is not off(implies it's on), turn LED on
            GPIO.output(22, True)
  
        #0.1 Second Delay
        time.sleep(0.1) 
  </code></pre>
  <h1>The Command:</h1>
  <pre><code>    pi@raspberrypi:~/Desktop/LearnPython $ sudo python3 IoTLED.py
  </code></pre>
  <h1>The Output:</h1>
  <pre><code>    pi@raspberrypi:~/Desktop/LearnPython $ sudo python3 IoTLED.py
      Traceback (most recent call last):
        File &quot;IoTLED.py&quot;, line 4, in &lt;module&gt;
          import pyrebase
        File &quot;/usr/local/lib/python3.5/distpackages/pyrebase/__init__.py&quot;, line 1, in &lt;module&gt;
          from .pyrebase import initialize_app
        File &quot;/usr/local/lib/python3.5/distpackages/pyrebase/pyrebase.py&quot;, line 17, in &lt;module&gt;
          from oauth2client.service_account import ServiceAccountCredentials
        File &quot;/usr/local/lib/python3.5/dist-packages/oauth2client/service_account.py&quot;, line 26, in &lt;module&gt;
          from oauth2client import crypt
        File &quot;/usr/local/lib/python3.5/dist-packages/oauth2client/crypt.py&quot;, line 23, in &lt;module&gt;
          from oauth2client import _pure_python_crypt
        File &quot;/usr/local/lib/python3.5/dist-packages/oauth2client/_pure_python_crypt.py&quot;, line 24, in &lt;module&gt;
          from pyasn1_modules.rfc2459 import Certificate
        File &quot;/usr/local/lib/python3.5/dist-packages/pyasn1_modules/rfc2459.py&quot;, line 20, in &lt;module&gt;
          from pyasn1.type import opentype
        ImportError: cannot import name 'opentype'
  </code></pre>
  <h1>My Suspicions:</h1>
  <p>I suspect the opentype library is missing.</p>
  <h1>End Remarks:</h1>
  <p>I am really really really stuck at this point for more than a day now. I need help. Thank you so much and I really appreciate your help.</p>