You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lens.apache.org by "Michael McCarthy (JIRA)" <ji...@apache.org> on 2018/06/03 13:16:00 UTC
[jira] [Updated] (LENS-1517) Python3 compatibility issues with
python client
[ https://issues.apache.org/jira/browse/LENS-1517?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael McCarthy updated LENS-1517:
-----------------------------------
Attachment: LENS-1234.patch
> Python3 compatibility issues with python client
> -----------------------------------------------
>
> Key: LENS-1517
> URL: https://issues.apache.org/jira/browse/LENS-1517
> Project: Apache Lens
> Issue Type: Bug
> Components: python-client
> Affects Versions: 3.0, 2.8
> Environment: Python 3.5.2
> Commit: c6423ae01a4776383f0edcd8591124ac643b9e3e
> Reporter: Michael McCarthy
> Assignee: Michael McCarthy
> Priority: Major
> Attachments: LENS-1234.patch
>
>
> Using the python client in Python3 fails on import:
> {noformat}
> from lens.client import LensClient
> ---------------------------------------------------------------------------
> ImportError Traceback (most recent call last)
> <ipython-input-1-2170a3ad129d> in <module>()
> ----> 1 from lens.client import LensClient
> /data/d1/users/ds-exp/python-virtualenvs/python3.5/src/lenspythonclient/contrib/clients/python/lens/client/__init__.py in <module>()
> 15 # limitations under the License.
> 16 #
> ---> 17 from .main import LensClient
> 18
> 19 __all__ = ['LensClient']
> /data/d1/users/ds-exp/python-virtualenvs/python3.5/src/lenspythonclient/contrib/clients/python/lens/client/main.py in <module>()
> 18
> 19 from six import string_types
> ---> 20 from .log import LensLogClient
> 21 from .session import LensSessionClient
> 22 from .query import LensQueryClient
> /data/d1/users/ds-exp/python-virtualenvs/python3.5/src/lenspythonclient/contrib/clients/python/lens/client/log.py in <module>()
> 15 # limitations under the License.
> 16 #
> ---> 17 from .auth import SpnegoAuth
> 18 import requests
> 19
> /data/d1/users/ds-exp/python-virtualenvs/python3.5/src/lenspythonclient/contrib/clients/python/lens/client/auth.py in <module>()
> 19 import subprocess
> 20 import threading
> ---> 21 from urlparse import urlparse
> 22
> 23
> ImportError: No module named 'urlparse'
> {noformat}
> This appears to be due to the fact that in Python3, {{urlparse}} is {{urllib.parse}}.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)