GithubHelp home page GithubHelp logo

Comments (12)

tdryer avatar tdryer commented on July 26, 2024

To clarify this issue, logging in with an email address should work, but for some reason it doesn't in this case, which I haven't been able to reproduce.

from hangups.

tdryer avatar tdryer commented on July 26, 2024

@gabx

There's a new auth implementation on the robobrowser-auth branch that might be more reliable. Switching to this branch will require a re-install because of dependency changes.

If it still doesn't work, try logging in from python -m hangups.auth and post the log output from stdout.

from hangups.

fiiim avatar fiiim commented on July 26, 2024

I got the same problem. Heres some of the output of python -m hangups.auth:

DEBUG:requests.packages.urllib3.connectionpool:"GET /?pli=1 HTTP/1.1" 200 None
DEBUG:main:SecondFactor response: 200 https://myaccount.google.com/?pli=1
Traceback (most recent call last):
File "/usr/lib/python3.4/runpy.py", line 170, in _run_module_as_main
"main", mod_spec)
File "/usr/lib/python3.4/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/usr/lib/python3.4/site-packages/hangups/auth.py", line 199, in
print(get_auth_stdin('cookies.json'))
File "/usr/lib/python3.4/site-packages/hangups/auth.py", line 194, in get_auth_stdin
return get_auth(get_credentials_f, get_pin_f, cookie_filename)
File "/usr/lib/python3.4/site-packages/hangups/auth.py", line 170, in get_auth
_send_credentials(session, email, password, galx, get_pin_f)
File "/usr/lib/python3.4/site-packages/hangups/auth.py", line 82, in _send_credentials
_send_second_factor(session, get_pin_f(), timestamp, sec_token)
File "/usr/lib/python3.4/site-packages/hangups/auth.py", line 109, in _send_second_factor
raise GoogleAuthError('Second factor failed')
main.GoogleAuthError: Second factor failed

from hangups.

tdryer avatar tdryer commented on July 26, 2024

@headfim Thanks. Can you try again with the latest version from the master branch?

from hangups.

fiiim avatar fiiim commented on July 26, 2024

It fails on installing robobrowser.

from hangups.

fiiim avatar fiiim commented on July 26, 2024

Searching for robobrowser==0.5.1
Reading https://pypi.python.org/simple/robobrowser/
Best match: robobrowser 0.5.1
Downloading https://pypi.python.org/packages/source/r/robobrowser/robobrowser-0.5.1.tar.gz#md5=83a63db75efa904b8a40502b14918c34
Processing robobrowser-0.5.1.tar.gz
Writing /tmp/easy_install-kmkf4zso/robobrowser-0.5.1/setup.cfg
Running robobrowser-0.5.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-kmkf4zso/robobrowser-0.5.1/egg-dist-tmp-wgma8him
Traceback (most recent call last):
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 106, in save_modules
yield saved
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 157, in setup_context
yield
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 201, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 232, in run
return func()
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 200, in runner
_execfile(setup_script, ns)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-kmkf4zso/robobrowser-0.5.1/setup.py", line 38, in
'Development Status :: 2 - Pre-Alpha',
File "/tmp/easy_install-kmkf4zso/robobrowser-0.5.1/setup.py", line 37, in
classifiers=[
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/pip/req/req_file.py", line 19, in parse_requirements
"parse_requirements() missing 1 required keyword argument: "
TypeError: parse_requirements() missing 1 required keyword argument: 'session'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "setup.py", line 66, in
'hangups=hangups.ui.main:main',
File "/usr/lib/python3.4/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.4/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.4/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/install.py", line 67, in run
self.do_egg_install()
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/install.py", line 117, in do_egg_install
cmd.run()
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 376, in run
self.easy_install(spec, not self.no_deps)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 600, in easy_install
return self.install_item(None, spec, tmpdir, deps, True)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 651, in install_item
self.process_distribution(spec, dist, deps)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 699, in process_distribution
[requirement], self.local_index, self.easy_install
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/pkg_resources/init.py", line 753, in resolve
dist = best[req.key] = env.best_match(req, ws, installer)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/pkg_resources/init.py", line 1005, in best_match
return self.obtain(req, installer)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/pkg_resources/init.py", line 1017, in obtain
return installer(requirement)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 619, in easy_install
return self.install_item(spec, dist.location, tmpdir, deps)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 649, in install_item
dists = self.install_eggs(spec, download, tmpdir)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 839, in install_eggs
return self.build_and_install(setup_script, setup_base)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1061, in build_and_install
self.run_setup(setup_script, setup_base, args)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/command/easy_install.py", line 1046, in run_setup
run_setup(setup_script, args)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 205, in run_setup
raise
File "/usr/lib/python3.4/contextlib.py", line 77, in exit
self.gen.throw(type, value, traceback)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 157, in setup_context
yield
File "/usr/lib/python3.4/contextlib.py", line 77, in exit
self.gen.throw(type, value, traceback)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 128, in save_modules
compat.reraise(new_cls, new_exc, tb)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/compat.py", line 65, in reraise
raise value.with_traceback(tb)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 106, in save_modules
yield saved
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 157, in setup_context
yield
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 201, in run_setup
DirectorySandbox(setup_dir).run(runner)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 232, in run
return func()
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 200, in runner
_execfile(setup_script, ns)
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/setuptools/sandbox.py", line 46, in _execfile
exec(code, globals, locals)
File "/tmp/easy_install-kmkf4zso/robobrowser-0.5.1/setup.py", line 38, in
'Development Status :: 2 - Pre-Alpha',
File "/tmp/easy_install-kmkf4zso/robobrowser-0.5.1/setup.py", line 37, in
classifiers=[
File "/home/fim/.virtualenvs/hangups/lib/python3.4/site-packages/pip/req/req_file.py", line 19, in parse_requirements
"parse_requirements() missing 1 required keyword argument: "
TypeError: parse_requirements() missing 1 required keyword argument: 'session'

from hangups.

tdryer avatar tdryer commented on July 26, 2024

What version of pip are you using?

from hangups.

fiiim avatar fiiim commented on July 26, 2024

archlinux, python 3.4 and pip 6.0.6

from hangups.

tdryer avatar tdryer commented on July 26, 2024

You might have to downgrade to pip 1.5.x. It looks like pip 6 made a change that breaks some packages including robobrowser.

from hangups.

tdryer avatar tdryer commented on July 26, 2024

Related pip issue: pypa/pip#2286

from hangups.

fiiim avatar fiiim commented on July 26, 2024

pip install pip==1.5.4 did the trick and hangups works fine too.
A suggestion: is it possible to make use of googles app passwords as an option to two step passwords?

from hangups.

tdryer avatar tdryer commented on July 26, 2024

Great, thanks for verifying.

Google restricts where application specific passwords can be used, so I'm not aware of a way hangups can log in with one.

from hangups.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.