You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by Yu Wei <yu...@hotmail.com> on 2016/11/01 06:17:48 UTC

mesos 1.0.1 build error on CentOS 7.2

Hi Guys,

I tried to build mesos 1.0.1 on centos 7.2 and met following error.

Building protobuf Python egg ...
cd ../3rdparty/protobuf-2.6.1/python &&            \
  CC="gcc"                    \
  CXX="g++"                    \
  CFLAGS="-g1 -O0 -Wno-unused-local-typedefs"                \
  CXXFLAGS="-g1 -O0 -Wno-unused-local-typedefs -std=c++11"            \
  PYTHONPATH=/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0    \
  /usr/bin/python setup.py build bdist_egg

Installed /home/dcos/repo/mesos-1.0.1/build/3rdparty/protobuf-2.6.1/python/.eggs/google_apputils-0.4.2-py2.7.egg
Traceback (most recent call last):
  File "setup.py", line 200, in <module>
    "Protocol Buffers are Google's data interchange format.",
  File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
    _setup_distribution = dist = klass(attrs)
  File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py", line 269, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py", line 313, in fetch_build_eggs
    replace_conflicting=True,
  File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/pkg_resources/__init__.py", line 826, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/pkg_resources/__init__.py", line 1085, in best_match
    dist = working_set.find(req)
  File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/pkg_resources/__init__.py", line 695, in find
    raise VersionConflict(dist, req)
pkg_resources.VersionConflict: (pytz 2012d (/usr/lib/python2.7/site-packages), Requirement.parse('pytz>=2010'))
make[2]: *** [../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg] Error 1
make[2]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
make: *** [all-recursive] Error 1


Any thoughts about this?


Thanks,

Jared, (??)
Software developer
Interested in open source software, big data, Linux

Re: mesos 1.0.1 build error on CentOS 7.2

Posted by Yu Wei <yu...@hotmail.com>.
The correct approach to fix this problem is as below,

1, sudo yum install python-pip
2, sudo pip install --upgrade pytz
3, need to remove /usr/lib/python2.7/site-packages/pytz-2012d-py2.7.egg-info or rename it


Maybe need to update document.


Thanks,

Jared, (韦煜)
Software developer
Interested in open source software, big data, Linux

________________________________
From: Yu Wei <yu...@hotmail.com>
Sent: Tuesday, November 1, 2016 2:50:12 PM
To: dev
Subject: Re: mesos 1.0.1 build error on CentOS 7.2

It seems that it's python problem. It failed to get correct result when comparing "pytz 2012d" and "pytz 2010".

After update "pytz>=2010d" to "pytz>=2010d" in mesos-1.0.1/build/3rdparty/protobuf-2.6.1/python/.eggs/google_apputils-0.4.2-py2.7.egg/EGG-INFOrequires.txt, build succeeded.


Thanks,

Jared, (韦煜)
Software developer
Interested in open source software, big data, Linux

________________________________
From: haosdent <ha...@gmail.com>
Sent: Tuesday, November 1, 2016 2:30:54 PM
To: dev
Subject: Re: mesos 1.0.1 build error on CentOS 7.2

Have you install pytz in your operate system? What's the output of `pip
freeze|grep pytz`?

On Tue, Nov 1, 2016 at 2:17 PM, Yu Wei <yu...@hotmail.com> wrote:

> Hi Guys,
>
> I tried to build mesos 1.0.1 on centos 7.2 and met following error.
>
> Building protobuf Python egg ...
> cd ../3rdparty/protobuf-2.6.1/python &&            \
>   CC="gcc"                    \
>   CXX="g++"                    \
>   CFLAGS="-g1 -O0 -Wno-unused-local-typedefs"                \
>   CXXFLAGS="-g1 -O0 -Wno-unused-local-typedefs -std=c++11"            \
>   PYTHONPATH=/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0
>   \
>   /usr/bin/python setup.py build bdist_egg
>
> Installed /home/dcos/repo/mesos-1.0.1/build/3rdparty/protobuf-2.6.1/
> python/.eggs/google_apputils-0.4.2-py2.7.egg
> Traceback (most recent call last):
>   File "setup.py", line 200, in <module>
>     "Protocol Buffers are Google's data interchange format.",
>   File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
>     _setup_distribution = dist = klass(attrs)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py",
> line 269, in __init__
>     self.fetch_build_eggs(attrs['setup_requires'])
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py",
> line 313, in fetch_build_eggs
>     replace_conflicting=True,
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 826, in resolve
>     dist = best[req.key] = env.best_match(req, ws, installer)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 1085, in best_match
>     dist = working_set.find(req)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 695, in find
>     raise VersionConflict(dist, req)
> pkg_resources.VersionConflict: (pytz 2012d (/usr/lib/python2.7/site-packages),
> Requirement.parse('pytz>=2010'))
> make[2]: *** [../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg]
> Error 1
> make[2]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
> make: *** [all-recursive] Error 1
>
>
> Any thoughts about this?
>
>
> Thanks,
>
> Jared, (??)
> Software developer
> Interested in open source software, big data, Linux
>



--
Best Regards,
Haosdent Huang

Re: mesos 1.0.1 build error on CentOS 7.2

Posted by Yu Wei <yu...@hotmail.com>.
It seems that it's python problem. It failed to get correct result when comparing "pytz 2012d" and "pytz 2010".

After update "pytz>=2010d" to "pytz>=2010d" in mesos-1.0.1/build/3rdparty/protobuf-2.6.1/python/.eggs/google_apputils-0.4.2-py2.7.egg/EGG-INFOrequires.txt, build succeeded.


Thanks,

Jared, (韦煜)
Software developer
Interested in open source software, big data, Linux

________________________________
From: haosdent <ha...@gmail.com>
Sent: Tuesday, November 1, 2016 2:30:54 PM
To: dev
Subject: Re: mesos 1.0.1 build error on CentOS 7.2

Have you install pytz in your operate system? What's the output of `pip
freeze|grep pytz`?

On Tue, Nov 1, 2016 at 2:17 PM, Yu Wei <yu...@hotmail.com> wrote:

> Hi Guys,
>
> I tried to build mesos 1.0.1 on centos 7.2 and met following error.
>
> Building protobuf Python egg ...
> cd ../3rdparty/protobuf-2.6.1/python &&            \
>   CC="gcc"                    \
>   CXX="g++"                    \
>   CFLAGS="-g1 -O0 -Wno-unused-local-typedefs"                \
>   CXXFLAGS="-g1 -O0 -Wno-unused-local-typedefs -std=c++11"            \
>   PYTHONPATH=/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0
>   \
>   /usr/bin/python setup.py build bdist_egg
>
> Installed /home/dcos/repo/mesos-1.0.1/build/3rdparty/protobuf-2.6.1/
> python/.eggs/google_apputils-0.4.2-py2.7.egg
> Traceback (most recent call last):
>   File "setup.py", line 200, in <module>
>     "Protocol Buffers are Google's data interchange format.",
>   File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
>     _setup_distribution = dist = klass(attrs)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py",
> line 269, in __init__
>     self.fetch_build_eggs(attrs['setup_requires'])
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py",
> line 313, in fetch_build_eggs
>     replace_conflicting=True,
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 826, in resolve
>     dist = best[req.key] = env.best_match(req, ws, installer)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 1085, in best_match
>     dist = working_set.find(req)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 695, in find
>     raise VersionConflict(dist, req)
> pkg_resources.VersionConflict: (pytz 2012d (/usr/lib/python2.7/site-packages),
> Requirement.parse('pytz>=2010'))
> make[2]: *** [../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg]
> Error 1
> make[2]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
> make: *** [all-recursive] Error 1
>
>
> Any thoughts about this?
>
>
> Thanks,
>
> Jared, (??)
> Software developer
> Interested in open source software, big data, Linux
>



--
Best Regards,
Haosdent Huang

Re: mesos 1.0.1 build error on CentOS 7.2

Posted by haosdent <ha...@gmail.com>.
Have you install pytz in your operate system? What's the output of `pip
freeze|grep pytz`?

On Tue, Nov 1, 2016 at 2:17 PM, Yu Wei <yu...@hotmail.com> wrote:

> Hi Guys,
>
> I tried to build mesos 1.0.1 on centos 7.2 and met following error.
>
> Building protobuf Python egg ...
> cd ../3rdparty/protobuf-2.6.1/python &&            \
>   CC="gcc"                    \
>   CXX="g++"                    \
>   CFLAGS="-g1 -O0 -Wno-unused-local-typedefs"                \
>   CXXFLAGS="-g1 -O0 -Wno-unused-local-typedefs -std=c++11"            \
>   PYTHONPATH=/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0
>   \
>   /usr/bin/python setup.py build bdist_egg
>
> Installed /home/dcos/repo/mesos-1.0.1/build/3rdparty/protobuf-2.6.1/
> python/.eggs/google_apputils-0.4.2-py2.7.egg
> Traceback (most recent call last):
>   File "setup.py", line 200, in <module>
>     "Protocol Buffers are Google's data interchange format.",
>   File "/usr/lib64/python2.7/distutils/core.py", line 112, in setup
>     _setup_distribution = dist = klass(attrs)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py",
> line 269, in __init__
>     self.fetch_build_eggs(attrs['setup_requires'])
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.9.0/setuptools/dist.py",
> line 313, in fetch_build_eggs
>     replace_conflicting=True,
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 826, in resolve
>     dist = best[req.key] = env.best_match(req, ws, installer)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 1085, in best_match
>     dist = working_set.find(req)
>   File "/home/dcos/repo/mesos-1.0.1/build/3rdparty/setuptools-20.
> 9.0/pkg_resources/__init__.py", line 695, in find
>     raise VersionConflict(dist, req)
> pkg_resources.VersionConflict: (pytz 2012d (/usr/lib/python2.7/site-packages),
> Requirement.parse('pytz>=2010'))
> make[2]: *** [../3rdparty/protobuf-2.6.1/python/dist/protobuf-2.6.1-py2.7.egg]
> Error 1
> make[2]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
> make[1]: *** [all] Error 2
> make[1]: Leaving directory `/home/dcos/repo/mesos-1.0.1/build/src'
> make: *** [all-recursive] Error 1
>
>
> Any thoughts about this?
>
>
> Thanks,
>
> Jared, (??)
> Software developer
> Interested in open source software, big data, Linux
>



-- 
Best Regards,
Haosdent Huang