Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 763318 - app-misc/gcalcli crash if dev-python/oauth2client not installed
Summary: app-misc/gcalcli crash if dev-python/oauth2client not installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Robin Johnson
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-03 20:13 UTC by Marc Vinyals
Modified: 2021-02-26 22:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emerge-info,7.85 KB, text/plain)
2021-01-03 20:13 UTC, Marc Vinyals
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Vinyals 2021-01-03 20:13:35 UTC
Created attachment 680935 [details]
emerge --info

Running gcalcli (no arguments) crashes with the following error when dev-python/oauth2client is not installed:

$ gcalcli
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.7/gcalcli", line 33, in <module>
    sys.exit(load_entry_point('gcalcli==4.2.0', 'console_scripts', 'gcalcli')())
  File "/usr/lib/python-exec/python3.7/gcalcli", line 25, in importlib_load_entry_point
    return next(matches).load()
  File "/usr/lib/python3.7/site-packages/importlib_metadata/__init__.py", line 93, in load
    module = import_module(match.group('module'))
  File "/usr/lib/python3.7/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
  File "<frozen importlib._bootstrap>", line 983, in _find_and_load
  File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 728, in exec_module
  File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
  File "/usr/lib/python3.7/site-packages/gcalcli/cli.py", line 30, in <module>
    from gcalcli.argparsers import get_argument_parser, handle_unparsed
  File "/usr/lib/python3.7/site-packages/gcalcli/argparsers.py", line 7, in <module>
    from oauth2client import tools
ModuleNotFoundError: No module named 'oauth2client'

The error disappears after installing dev-python/oauth2client. I guess there should be a (runtime) dependency on oauth2client. Note this may require updating bug 718976.
Comment 1 Larry the Git Cow gentoo-dev 2021-02-26 22:05:00 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44cf797e4e1505ef01bc8a8e07e7ef429a8b9487

commit 44cf797e4e1505ef01bc8a8e07e7ef429a8b9487
Author:     Jakov Smolic <jakov.smolic@sartura.hr>
AuthorDate: 2021-02-26 19:53:44 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-26 22:04:44 +0000

    app-misc/gcalcli: Add missing oauth2client dep
    
    Closes: https://bugs.gentoo.org/773070
    Closes: https://bugs.gentoo.org/763318
    Signed-off-by: Jakov Smolic <jakov.smolic@sartura.hr>
    Signed-off-by: Sam James <sam@gentoo.org>

 app-misc/gcalcli/{gcalcli-4.2.0.ebuild => gcalcli-4.2.0-r1.ebuild} | 1 +
 1 file changed, 1 insertion(+)