Michael McCarthy created LENS-1517:
--------------------------------------

             Summary: 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


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)

Reply via email to