Uploaded image for project: 'Apache Lens (Retired)'
  1. Apache Lens (Retired)
  2. LENS-1517

Python3 compatibility issues with python client

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0, 2.8
    • None
    • python-client
    • None
    • Python 3.5.2
      Commit: c6423ae01a4776383f0edcd8591124ac643b9e3e
    • Important

    Description

      Using the python client in Python3 fails on import:

      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'
      

      This appears to be due to the fact that in Python3, urlparse is urllib.parse.

      Attachments

        Activity

          People

            Michael.McCarthy Michael McCarthy
            Michael.McCarthy Michael McCarthy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: