pygooglevoice icon indicating copy to clipboard operation
pygooglevoice copied to clipboard

Broken Imports?

Open andreawhitlock opened this issue 7 years ago • 1 comments

I just cloned the repo and installed it from it by doing:

cd /opt sudo git clone https://github.com/pettazz/pygooglevoice.git sudo pip install /opt/pygooglevoice

When I run gvoice, I get import errors:

[andrea@darius ~]$ gvoice Traceback (most recent call last): File "/usr/bin/gvoice", line 6, in from googlevoice.util import LoginError,pprint,input,print_ ImportError: cannot import name input

It doesn't look like pprint is imported into util.py and also doesn't look like input or print_ are defined there either. Not sure if we're missing code in util.py or if gvoice is out of sync with the latest util changes.

andreawhitlock avatar Oct 03 '18 21:10 andreawhitlock

asterisk-gvoice-setup gvi gvoice [root@localhost bin]# ./gvoice Traceback (most recent call last): File "./gvoice", line 6, in from googlevoice.util import LoginError,pprint,input,print_ ImportError: cannot import name 'pprint' [root@localhost bin]#

I have same problem, may be ??!! How to fix it??? I am using Centos and Python 3.4.8

[root@localhost bin]# python -V Python 3.4.8 [root@localhost bin]# python gvoice Traceback (most recent call last): File "gvoice", line 6, in from googlevoice.util import LoginError,pprint,input,print_ ImportError: cannot import name 'pprint' [root@localhost bin]#

The pprint was found on system [root@localhost bin]# pip install pprint Requirement already satisfied: pprint in /usr/lib/python3.4/site-packages (0.1) [root@localhost bin]#

edmond25 avatar Dec 06 '18 03:12 edmond25