Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants