Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-5244

Compilation failure on Ubuntu 16.04

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Component/s: python api
    • Labels:

      Description

      I saw the following error when trying to compile Mesos on Ubuntu 16.04:

      dekaksi:...mesos/build/src> make ../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg
      Building protobuf Python egg ...
      cd ../3rdparty/protobuf-2.6.1/python &&                 \
        CC="gcc"                                      \
        CXX="g++"                                     \
        CFLAGS="-g -O2 -Wno-unused-local-typedefs -g1 -O0"                            \
        CXXFLAGS="-g -O2 -Wno-unused-local-typedefs -Wno-maybe-uninitialized -std=c++11 -g1 -O0"   \
        PYTHONPATH=/home/kapil/mesos/build/3rdparty/distribute-0.6.26 \
        /usr/bin/python setup.py build bdist_egg
      Traceback (most recent call last):
        File "setup.py", line 11, in <module>
          from setuptools import setup, Extension
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/setuptools/__init__.py", line 2, in <module>
          from setuptools.extension import Extension, Library
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/setuptools/extension.py", line 5, in <module>
          from setuptools.dist import _get_unpatched
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/setuptools/dist.py", line 6, in <module>
          from setuptools.command.install import install
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/setuptools/command/__init__.py", line 8, in <module>
          from setuptools.command import install_scripts
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/setuptools/command/install_scripts.py", line 3, in <module>
          from pkg_resources import Distribution, PathMetadata, ensure_directory
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/pkg_resources.py", line 2731, in <module>
          add_activation_listener(lambda dist: dist.activate())
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/pkg_resources.py", line 704, in subscribe
          callback(dist)
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/pkg_resources.py", line 2731, in <lambda>
          add_activation_listener(lambda dist: dist.activate())
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/pkg_resources.py", line 2231, in activate
          self.insert_on(path)
        File "/home/kapil/mesos/build/3rdparty/distribute-0.6.26/pkg_resources.py", line 2332, in insert_on
          "with distribute. Found one at %s" % str(self.location))
      ValueError: A 0.7-series setuptools cannot be installed with distribute. Found one at /usr/lib/python2.7/dist-packages
      Makefile:10869: recipe for target '../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg' failed
      make: *** [../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg] Error 1
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                chenzhiwei Chen Zhiwei
                Reporter:
                karya Kapil Arya
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: