Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

cloudera director python client 6.0.0 failed installation

Solved Go to solution

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)

Thanks

 

 sudo pip install cloudera-director-python-client

 

  copying build/lib/cloudera/director/v9/models/warning_info.py -> 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/setup.py", line 47, in <module>
      """
    File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
      dist.run_commands()
    File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
      self.run_command(cmd)
    File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
      cmd_obj.run()
    File "/usr/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 237, in run
      self.egg2dist(self.egginfo_dir, distinfo_dir)
    File "/usr/lib/python2.7/site-packages/wheel/bdist_wheel.py", line 344, in egg2dist
      pkg_info = pkginfo_to_metadata(egginfo_path, pkginfo_path)
    File "/usr/lib/python2.7/site-packages/wheel/metadata.py", line 88, in pkginfo_to_metadata
      for key, value in generate_requirements({extra: reqs}):
    File "/usr/lib/python2.7/site-packages/wheel/metadata.py", line 67, in generate_requirements
      for new_req in convert_requirements(depends):
    File "/usr/lib/python2.7/site-packages/wheel/metadata.py", line 36, in convert_requirements
      spec = requires_to_requires_dist(parsed_requirement)
    File "/usr/lib/python2.7/site-packages/wheel/metadata.py", 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 setup.py 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 setup.py 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

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: cloudera director python client 6.0.0 failed installation

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

Re: cloudera director python client 6.0.0 failed installation

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?

Re: cloudera director python client 6.0.0 failed installation

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

Re: cloudera director python client 6.0.0 failed installation

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?  

Highlighted

Re: cloudera director python client 6.0.0 failed installation

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