[PKG-Openstack-devel] Bug#825935: Bug#825935: python3-oauth2client: ImportError: No module named 'urlparse'

Thomas Goirand zigo at debian.org
Thu Jun 2 07:15:08 UTC 2016


On 05/31/2016 04:50 PM, Raphaël Droz wrote:
> Package: python3-oauth2client
> Version: 1.2-3
> Severity: important
> 
> Trying to use calendar-cli (installed from pip3 results in the
> following):
> 
> $ calendar-cli setup client_secret.json 
> Traceback (most recent call last):
>   File "/usr/local/bin/calendar-cli", line 9, in <module>
>     load_entry_point('calendar-cli==0.1.3', 'console_scripts', 'calendar-cli')()
>   File "/usr/lib/python3/dist-packages/pkg_resources.py", line 356, in load_entry_point
>     return get_distribution(dist).load_entry_point(group, name)
>   File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2476, in load_entry_point
>     return ep.load()
>   File "/usr/lib/python3/dist-packages/pkg_resources.py", line 2190, in load
>     ['__name__'])
>   File "/usr/local/lib/python3.4/dist-packages/calendar_cli/calendar_cli.py", line 5, in <module>
>     from calendar_cli.setting.setting import Setting
>   File "/usr/local/lib/python3.4/dist-packages/calendar_cli/setting/__init__.py", line 1, in <module>
>     from .setting import Setting
>   File "/usr/local/lib/python3.4/dist-packages/calendar_cli/setting/setting.py", line 7, in <module>
>     from calendar_cli.operation import *
>   File "/usr/local/lib/python3.4/dist-packages/calendar_cli/operation/__init__.py", line 3, in <module>
>     from .summary_operation import SummaryOperation
>   File "/usr/local/lib/python3.4/dist-packages/calendar_cli/operation/summary_operation.py", line 4, in <module>
>     from calendar_cli.service import GoogleCalendarService
>   File "/usr/local/lib/python3.4/dist-packages/calendar_cli/service/__init__.py", line 1, in <module>
>     from .google_calendar_service import GoogleCalendarService
>   File "/usr/local/lib/python3.4/dist-packages/calendar_cli/service/google_calendar_service.py", line 5, in <module>
>     from apiclient import discovery
>   File "/usr/local/lib/python3.4/dist-packages/apiclient/__init__.py", line 18, in <module>
>     from googleapiclient import channel
>   File "/usr/local/lib/python3.4/dist-packages/googleapiclient/channel.py", line 63, in <module>
>     from googleapiclient import errors
>   File "/usr/local/lib/python3.4/dist-packages/googleapiclient/errors.py", line 26, in <module>
>     from oauth2client import util
>   File "/usr/lib/python3/dist-packages/oauth2client/util.py", line 34, in <module>
>     import urlparse
> ImportError: No module named 'urlparse'
> 
> which seems related to this bug:
> https://bugs.launchpad.net/ubuntu/+source/python-oauth2client/+bug/1432954

Hi,

In a Sid machine, I did:

$ sudo apt-get install python3-oauth2client
$ python3
Python 3.5.1+ (default, May  9 2016, 11:00:17)
[GCC 5.3.1 20160429] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from oauth2client import util

and there was no issue at all. Meaning I can't reproduce it in Sid, and
that it's fixed there.

Investigating a bit more: urlparse was renamed urllib.parse in Python3.
The version in Sid has the fix. The version in Stable doesn't.

I have uploaded version 2.0.1-3~bpo8+1 to the official jessie-backports
repository (it is currently in the NEW queue). Please use that version
when it is available. I'm therefore closing this bug.

Cheers,

Thomas Goirand (zigo)



More information about the Openstack-devel mailing list