Skip to content

Apparently pip install gcloud fails? #402

Closed

Description

@jgeewax

Output from a Googler:

pip install gcloud                                                                                                                                           
Downloading/unpacking gcloud
  Running setup.py egg_info for package gcloud

    warning: no previously-included files matching '*.pyc' found anywhere in distribution
Installing collected packages: gcloud
  Running setup.py install for gcloud

    warning: no previously-included files matching '*.pyc' found anywhere in distribution
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/uabbasi/build/gcloud/setup.py", line 44, in <module>
        'Topic :: Internet',
      File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
        dist.run_commands()
      File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
        self.run_command(cmd)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 53, in run
        return _install.run(self)
      File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
        self.run_command('build')
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
        self.run_command(cmd_name)
      File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
        self.distribution.run_command(command)
      File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
        cmd_obj.run()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 92, in run
        self.build_package_data()
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 147, in build_package_data
        for package, src_dir, build_dir, filenames in self.data_files:
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 104, in __getattr__
        self.data_files = files = self._get_data_files(); return files
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 129, in _get_data_files
        file[plen:] for file in self.find_data_files(package, src_dir)
      File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 137, in find_data_files
       + self.package_data.get(package, []))
    TypeError: cannot concatenate 'str' and 'list' objects
    Complete output from command /usr/bin/python -c "import setuptools;__file__='/home/uabbasi/build/gcloud/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file
__, 'exec'))" install --single-version-externally-managed --record /tmp/pip-2uBk4c-record/install-record.txt:
    running install
running build
running build_py
running egg_info
writing gcloud.egg-info/PKG-INFO
writing top-level names to gcloud.egg-info/top_level.txt
writing dependency_links to gcloud.egg-info/dependency_links.txt
warning: manifest_maker: standard file '-c' not found
reading manifest file 'gcloud.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no previously-included files matching '*.pyc' found anywhere in distribution
writing manifest file 'gcloud.egg-info/SOURCES.txt'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/home/uabbasi/build/gcloud/setup.py", line 44, in <module>
    'Topic :: Internet',
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/install.py", line 53, in run
    return _install.run(self)
  File "/usr/lib/python2.7/distutils/command/install.py", line 601, in run
    self.run_command('build')
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/distutils/command/build.py", line 128, in run
    self.run_command(cmd_name)
  File "/usr/lib/python2.7/distutils/cmd.py", line 326, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 92, in run
    self.build_package_data()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 147, in build_package_data

    for package, src_dir, build_dir, filenames in self.data_files:
  File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 104, in __getattr__
    self.data_files = files = self._get_data_files(); return files
  File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 129, in _get_data_files
    file[plen:] for file in self.find_data_files(package, src_dir)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/build_py.py", line 137, in find_data_files
    + self.package_data.get(package, []))
TypeError: cannot concatenate 'str' and 'list' objects
----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/home/uabbasi/build/gcloud/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --s
ingle-version-externally-managed --record /tmp/pip-2uBk4c-record/install-record.txt failed with error code 1 in /home/uabbasi/build/gcloud
Storing complete log in /root/.pip/pip.log

Activity

  1. dhermes commented on Dec 3, 2014

    @dhermes
    Contributor

    It gets installed from pip every time tox runs so I don't think this is a "valid" issue.

    Searching for --single-version-externally-managed yielded this:
    http://stackoverflow.com/a/15258644/1068170
    suggesting an out of date version of pip.

    To check I ran

    $ mkdir tmp
    $ cd tmp/
    $ virtualenv gcloud-venv
    New python executable in gcloud-venv/bin/python
    Installing setuptools, pip...source done.
    $ source gcloud-venv/bin/activate
    (gcloud-venv)$ pip install gcloud
    

    and had no issues.

  2. silvolu commented on Dec 3, 2014

    @silvolu
    Contributor

    And I just tried and I can install on both my workstation and my Mac.

  3. tseaver commented on Dec 3, 2014

    @tseaver
    Contributor

    Installs cleanly on Ubuntu 12.04:

    $ /opt/Python-2.7.6/bin/virtualenv /tmp/issue402
    New python executable in /tmp/issue402/bin/python
    Installing setuptools, pip...done.
    $ /tmp/issue402/bin/pip install gcloud
    Downloading/unpacking gcloud
    ...
    
      Running setup.py install for pycparser
    
    Successfully installed gcloud httplib2 oauth2client protobuf pycrypto pyopenssl pytz six pyasn1 pyasn1-modules rsa cryptography cffi pycparser
    Cleaning up...
    
  4. silvolu commented on Dec 15, 2014

    @silvolu
    Contributor

    Closing because we cannot reproduce. Please re-open the issue if needed.

  5. modified the milestone: on Jan 30, 2015
  6. added
    🚨
    triage me
    on Apr 6, 2020
  7. 6 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

🚨packagingtriage me

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions