Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Broken Imports? #58

Open
andreawhitlock opened this issue Oct 3, 2018 · 1 comment
Open

Broken Imports? #58

andreawhitlock opened this issue Oct 3, 2018 · 1 comment

Comments

@andreawhitlock
Copy link

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.

@edmond25
Copy link

edmond25 commented Dec 6, 2018

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]#

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants