Skip to content

Update instructions to pip install assemblyai[extras] #23

@semihsezer

Description

@semihsezer

Instructions can be updated for a smoother start. It looks like pip install assemblyai[extras] is a requirement to get any python imports to work.

Expected this to work as per the instructions:

  1. pip3 install assemblyai
  2. import assemblyai as aai

But got:

File ~/Library/Python/3.9/lib/python/site-packages/assemblyai/extras.py:7
      5     import pyaudio
      6 except ImportError:
--> 7     raise ImportError(
      8         "You must install the extras for this SDK to use this feature. "

ImportError: You must install the extras for this SDK to use this feature. Run `pip install assemblyai[extras]` to install the extras. Make sure to install `apt install portaudio19-dev` (Debian/Ubuntu) or `brew install portaudio` (MacOS) before installing the extras.

Then had to do these other steps to be able to get the python import to work:
3. brew install portaudio - works fine
4. pip install assemblyai[extras]

Correct instructions:

  1. pip3 install 'assemblyai[extras]'
  2. brew install portaudio

The instructions on the activations page should also reflect this:
Screenshot 2023-06-23 at 12 22 46 PM

Python 3.9.6
IPython 8.12.0
macOS Ventura 13.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions