3

I am integrating gstreamer and pocketsphinx on mac using python 3.6; however, the first line of code, from gi import pygtkcompat, raises an error. The command:

python3 demoapp_chinese.py

returns

  • Traceback (most recent call last):
  • File "demoapp_chinese.py", line 1, in
  • from gi import pygtkcompat
  • ModuleNotFoundError: No module named 'gi'

Here's how I install pygobject:

brew install pygobject3

And when I try to get more info. I execute

brew info pygobject3

which returns

For the python info,

which python3

returns

/usr/local/bin/python3

Besides,

echo $PYTHONPATH

returns

/usr/local/lib/python3.6/site-packages

echo $PATH

returns

/Users/cindy/bin:/usr/local/bin/python3.6:/usr/local/lib/python3.6/site-packages:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Applications/VMware Fusion.app/Contents/Public

Lastly, I don't know if this is normal, when I run

which pygobject3

NOTHING returns on the terminal.

Please help, thanks. If you need any extra info. to help me, please let me know.

Cindy
  • 315
  • 2
  • 19

0 Answers0