Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

cloudera director python client 6.0.0 failed installation

Master Collaborator

Hi Cloudera employees, 

please can somebody have a look at this error, why the new installation fails?

OS: CentOS Linux release 7.5.1804 (Core)



 sudo pip install cloudera-director-python-client


  copying build/lib/cloudera/director/v9/models/ -> build/bdist.linux-x86_64/wheel/cloudera/director/v9/models
  running install_egg_info
  Copying cloudera_director_python_client.egg-info to build/bdist.linux-x86_64/wheel/cloudera_director_python_client-6.0.0-py2.7.egg-info
  running install_scripts
  Traceback (most recent call last):
    File "<string>", line 1, in <module>
    File "/tmp/pip-install-rWjXLN/cloudera-director-python-client/", line 47, in <module>
    File "/usr/lib64/python2.7/distutils/", line 152, in setup
    File "/usr/lib64/python2.7/distutils/", line 953, in run_commands
    File "/usr/lib64/python2.7/distutils/", line 972, in run_command
    File "/usr/lib/python2.7/site-packages/wheel/", line 237, in run
      self.egg2dist(self.egginfo_dir, distinfo_dir)
    File "/usr/lib/python2.7/site-packages/wheel/", line 344, in egg2dist
      pkg_info = pkginfo_to_metadata(egginfo_path, pkginfo_path)
    File "/usr/lib/python2.7/site-packages/wheel/", line 88, in pkginfo_to_metadata
      for key, value in generate_requirements({extra: reqs}):
    File "/usr/lib/python2.7/site-packages/wheel/", line 67, in generate_requirements
      for new_req in convert_requirements(depends):
    File "/usr/lib/python2.7/site-packages/wheel/", line 36, in convert_requirements
      spec = requires_to_requires_dist(parsed_requirement)
    File "/usr/lib/python2.7/site-packages/wheel/", line 21, in requires_to_requires_dist
      if requirement.url:
  AttributeError: Requirement instance has no attribute 'url'

  Failed building wheel for cloudera-director-python-client
  Running clean for cloudera-director-python-client
Failed to build cloudera-director-python-client
Installing collected packages: urllib3, six, certifi, python-dateutil, cloudera-director-python-client
  Found existing installation: urllib3 1.10.2
    Uninstalling urllib3-1.10.2:
      Successfully uninstalled urllib3-1.10.2
  Found existing installation: six 1.9.0
    Uninstalling six-1.9.0:
      Successfully uninstalled six-1.9.0
  Running install for cloudera-director-python-client ... done
Successfully installed certifi-2018.8.24 cloudera-director-python-client-6.0.0 python-dateutil-2.7.3 six-1.11.0 urllib3-1.23



Master Collaborator
sudo pip install --upgrade setuptools resolved the issue

View solution in original post


Cloudera Employee

Was this a local install of CentOS 7.5 from source media, or a VM running in a public cloud?  If it's a cloud VM, can you point to the specific AMI or VM Image that was used?

Master Collaborator
Cloud VM ami-3548444c plus yum -y update

Cloudera Employee

I tried the same on a vm provisioned from a similar AMI in a US region and I'm not seeing any errors.  Is this happening consistently, even on new VMs?  

Master Collaborator
sudo pip install --upgrade setuptools resolved the issue
Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.