You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "James Peach (JIRA)" <ji...@apache.org> on 2015/08/04 07:17:05 UTC
[jira] [Comment Edited] (MESOS-3198) mesos.native could not found
[ https://issues.apache.org/jira/browse/MESOS-3198?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14653059#comment-14653059 ]
James Peach edited comment on MESOS-3198 at 8/4/15 5:16 AM:
------------------------------------------------------------
FWIW, this is broken in my environment too. The mesos build seems to sprinkle python packages into both {{/usr/lib/python2.7/site-packages}} and {{/usr/libexec/mesos/python}}. At least in the default install, the packages {{site-packages}} end up missing dependencies (eg. protobuf). You end up with mesos packages in 2 separate paths and python seems to only look at the first one:
{code}
$ rpm -ql mesos | grep python
/usr/lib/python2.7/site-packages/mesos
...
/usr/libexec/mesos/python/mesos
...
$ PYTHONPATH=/usr/libexec/mesos/python python2.7
>>> import mesos
>>> dir(mesos)
['__doc__', '__name__', '__path__']
>>> mesos.__path__
['/usr/lib/python2.7/site-packages/mesos']
>>> import sys
>>> sys.path
['', '/usr/libexec/mesos/python', '/usr/lib64/python27.zip', '/usr/lib64/python2.7', '/usr/lib64/python2.7/plat-linux2', '/usr/lib64/python2.7/lib-tk', '/usr/lib64/python2.7/lib-old', '/usr/lib64/python2.7/lib-dynload', '/usr/lib64/python2.7/site-packages', '/usr/lib/python2.7/site-packages']
{code}
A separate but related bug is that the python tools do not install using the requested python version. We force the use of python 2.7 in the build by setting {{PYTHON_VERSION}} in the build, but various tools like {{mesos-ps}} just use {{/usr/bin/env python}}.
was (Author: jamespeach):
FWIW, this is broken in my environment too. The mesos build seems to sprinkle python packages into both {{/usr/lib/python2.7/site-packages}} and {{/usr/libexec/mesos/python}}. At least in the default install, the packages {{site-packages}} end up missing dependencies (eg. protobuf).
A separate but related bug is that the python tools do not install using the requested python version. We force the use of python 2.7 in the build by setting {{PYTHON_VERSION}} in the build, but various tools like {{mesos-ps}} just use {{/usr/bin/env python}}.
> mesos.native could not found
> ----------------------------
>
> Key: MESOS-3198
> URL: https://issues.apache.org/jira/browse/MESOS-3198
> Project: Mesos
> Issue Type: Bug
> Components: build
> Affects Versions: 0.23.0
> Environment: Ubuntu14.04 Mesos0.23.0
> Reporter: pugna
> Labels: build, newbie, python
> Attachments: Re mesos.native could not found.msg
>
>
> I deploy apache mesos-0.23 on Ubuntu14.04 This error comes from the last step "# Run Python framework (Exits after successfully running some tasks.). $ ./src/examples/python/test-framework 127.0.0.1:5050"
> Mesos/src/examples/python/test_framework.py line 25, mesos.native could not found
> Anyone who can help me solve this problem?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)