pugna@pugna-pc:~/Mesos/mesos-0.23.0/src/examples/python$
./test_framework.py 127.0.0.1:5050
Traceback (most recent call last):
  File "./test_framework.py", line 25, in <module>
    import mesos.native
ImportError: No module named native

On Tue, Aug 4, 2015 at 10:10 AM, haosdent <[email protected]> wrote:

> Hi, @JianBo Could you try "./src/examples/python/test-framework
> 127.0.0.1:5050" under ~/Mesos/mesos-0.23.0/build/, not in ~/Mesos/mesos-
> 0.23.0/build/src/examples/python.
>
> On Tue, Aug 4, 2015 at 9:54 AM, Jian Bo <[email protected]> wrote:
>
> > This is my environment:
> > pugna@pugna-pc:~/Mesos/mesos-0.23.0/build/src/examples/python$
> > ./test-framework 127.0.0.1:5050
> > Traceback (most recent call last):
> >   File
> >
> >
> "/home/pugna/Mesos/mesos-0.23.0/build/../src/examples/python/test_framework.py",
> > line 25, in <module>
> >     import mesos.native
> > ImportError: No module named native
> > pugna@pugna-pc:~/Mesos/mesos-0.23.0/build/src/examples/python$
> > pugna@pugna-pc:~/Mesos/mesos-0.23.0/build/src/examples/python$
> > pugna@pugna-pc:~/Mesos/mesos-0.23.0/build/src/examples/python$
> > pugna@pugna-pc:~/Mesos/mesos-0.23.0/build/src/examples/python$
> > pugna@pugna-pc:~/Mesos/mesos-0.23.0/build/src/examples/python$ python -c
> > 'import mesos; print mesos.__dict__;'
> > {'__name__': 'mesos', '__doc__': None, '__path__':
> > ['/usr/local/lib/python2.7/dist-packages/mesos']}
> > pugna@pugna-pc:~/Mesos/mesos-0.23.0/build/src/examples/python$
> >
> >
> > And "mesos.native-0.23.0-py2.6-linux-x86_64.egg
> > mesos.interface-0.23.0-py2.6.egg"
> >  these two packages are in /usr/local/lib/python2.7/dist-packages.
> >
> > On Tue, Aug 4, 2015 at 9:38 AM, Jian Bo <[email protected]> wrote:
> >
> > > I'm sorry to give you no reply for a long time,
> > > Here  is  the ticket:
> > > https://issues.apache.org/jira/browse/MESOS-3198?filter=-4
> > > MESOS-3198 <https://issues.apache.org/jira/browse/MESOS-3198>
> > > I'll take your achievements for reference carefully and give you
> feedback
> > > later.
> > > Thank you.
> > >
> > >
> > > On Mon, Aug 3, 2015 at 9:56 PM, haosdent <[email protected]> wrote:
> > >
> > >> And If I want to install mesos python eggs to sys.path. I need to
> > execute
> > >> these steps:
> > >>
> > >> ```
> > >> cd build/src/python/interface
> > >> sudo python setup.py install
> > >> ```
> > >>
> > >> ```
> > >> cd build/src/python/native
> > >> sudo python setup.py install
> > >> ```
> > >>
> > >> And the eggs would install
> > >> to /usr/lib/python2.6/site-packages/mesos.interface-0.23.0-py2.6.egg
> > >> and
> > >>
> >
> /usr/lib64/python2.6/site-packages/mesos.native-0.23.0-py2.6-linux-x86_64.egg
> > >> (CentOS 6.6 and python 2.6) finally.
> > >>
> > >> On Mon, Aug 3, 2015 at 9:49 PM, haosdent <[email protected]> wrote:
> > >>
> > >> > Hi, @Jian Bo Although I don't execute "make install", I also could
> > >> execute
> > >> > "./src/examples/python/test-framework 127.0.0.1:5050". Because
> > >> > "./src/examples/python/test-framework" would export PYTHONPATH
> > contains
> > >> > mesos eggs. Could you execute this in you build directory?
> > >> >
> > >> > On Mon, Aug 3, 2015 at 8:48 PM, haosdent <[email protected]>
> wrote:
> > >> >
> > >> >> Could you create a ticket in issues.apache.org/jira/browse/MESOS
> to
> > >> >> track this? Thank you.
> > >> >>
> > >> >> On Mon, Aug 3, 2015 at 8:47 PM, haosdent <[email protected]>
> wrote:
> > >> >>
> > >> >>> Hi, @Jian Bo. After I clear my server environment. I think it
> should
> > >> >>> have a bug in the mesos python package, but I am not sure about
> > this.
> > >> I
> > >> >>> execute these steps in Ubuntu/CentOS, and could "import mesos"
> > >> finally.
> > >> >>>
> > >> >>> ```
> > >> >>> sudo make uninstall
> > >> >>> sudo make install
> > >> >>> ```
> > >> >>> ```
> > >> >>> touch /usr/local/lib/python2.7/site-packages/mesos/__init__.py (If
> > use
> > >> >>> python 2.7) or
> > >> >>> touch /usr/local/lib/python2.7/site-packages/mesos/__init__.py (If
> > use
> > >> >>> python 2.6)
> > >> >>> ```
> > >> >>>
> > >> >>> And
> > >> >>> ```
> > >> >>> python -c 'import mesos; print mesos.__dict__;'
> > >> >>> ```
> > >> >>>
> > >> >>> could pass.
> > >> >>>
> > >> >>> On Mon, Aug 3, 2015 at 6:07 PM, haosdent <[email protected]>
> > wrote:
> > >> >>>
> > >> >>>> I afraid it also some problem. I could import mesos.native in OSX
> > >> >>>> success while import mesos.native failed in CentOS. I am not sure
> > it
> > >> is
> > >> >>>> because of the bug of code or just because of my dirty
> environment.
> > >> Let me
> > >> >>>> deep into it and give you feedback later.
> > >> >>>>
> > >> >>>> On Mon, Aug 3, 2015 at 5:23 PM, Jian Bo <[email protected]>
> > >> wrote:
> > >> >>>>
> > >> >>>>> It is very kind of you .
> > >> >>>>> In my   /usr/local/lib/python2.7/site-packages/mesos    ,
>  there
> > >> are
> > >> >>>>> two
> > >> >>>>> directory : interface/  native/
> > >> >>>>>
> > >> >>>>> interface/    :
> > >> >>>>> containerizer_pb2.py  containerizer_pb2.pyc  __init__.py
> > >> __init__.pyc
> > >> >>>>>  mesos_pb2.py  mesos_pb2.pyc
> > >> >>>>>
> > >> >>>>> native/   :
> > >> >>>>> __init__.py  __init__.pyc  _mesos.so*
> > >> >>>>>
> > >> >>>>> same to yours?
> > >> >>>>>
> > >> >>>>> On Mon, Aug 3, 2015 at 5:17 PM, haosdent <[email protected]>
> > >> wrote:
> > >> >>>>>
> > >> >>>>> > In server (CentOS 6.6), it is located
> > >> >>>>> > in /usr/local/lib/python2.6/site-packages/mesos/
> > >> >>>>> >
> > >> >>>>> > On Mon, Aug 3, 2015 at 5:15 PM, haosdent <[email protected]>
> > >> wrote:
> > >> >>>>> >
> > >> >>>>> > > In my machine(OS X), it is located
> > >> >>>>> > > in /usr/local/lib/python2.7/site-packages/mesos.
> > >> >>>>> > >
> > >> >>>>> > > On Mon, Aug 3, 2015 at 4:40 PM, Jian Bo <
> > [email protected]
> > >> >
> > >> >>>>> wrote:
> > >> >>>>> > >
> > >> >>>>> > >> Thank you , but it doesn't work, the same error comes
> agaig.
> > I
> > >> >>>>> doubt it
> > >> >>>>> > >> doesn't exist .
> > >> >>>>> > >> Can you tell me where this lib file should be located?
> > >> >>>>> > >>
> > >> >>>>> > >> On Mon, Aug 3, 2015 at 4:29 PM, haosdent <
> [email protected]
> > >
> > >> >>>>> wrote:
> > >> >>>>> > >>
> > >> >>>>> > >> > I think you need add
> /usr/local/libpython2.7/site-packages/
> > >> to
> > >> >>>>> your
> > >> >>>>> > >> > sys.path
> > >> >>>>> > >> >
> > >> >>>>> > >> > On Mon, Aug 3, 2015 at 3:54 PM, Jian Bo <
> > >> [email protected]
> > >> >>>>> >
> > >> >>>>> > wrote:
> > >> >>>>> > >> >
> > >> >>>>> > >> > > 1 There is no explicit words like "error, warning", and
> > all
> > >> >>>>> the step
> > >> >>>>> > >> of
> > >> >>>>> > >> > > "make check " run well(  .....[OK] ).
> > >> >>>>> > >> > > 2 Yeah, I find "mesos/
> >  mesos.interface-0.23.0.dist-info/
> > >> >>>>> > >> > >  mesos.interface-0.23.0-py2.7-nspkg.pth
> > >> >>>>> > >> mesos.native-0.23.0.dist-info/
> > >> >>>>> > >> > >  mesos.native-0.23.0-py2.7-nspkg.pth "  in
> > >> >>>>> > >> > > /usr/local/libpython2.7/site-packages/
> > >> >>>>> > >> > >
> > >> >>>>> > >> > > On Mon, Aug 3, 2015 at 3:34 PM, haosdent <
> > >> [email protected]>
> > >> >>>>> > wrote:
> > >> >>>>> > >> > >
> > >> >>>>> > >> > > > After you execute "make install", could you find some
> > >> error
> > >> >>>>> in the
> > >> >>>>> > >> log?
> > >> >>>>> > >> > > Or
> > >> >>>>> > >> > > > find some thing like
> > >> >>>>> /usr/lib64/python2.7/site-packages/mesos* in
> > >> >>>>> > >> > python
> > >> >>>>> > >> > > > sys.path?
> > >> >>>>> > >> > > >
> > >> >>>>> > >> > > > On Mon, Aug 3, 2015 at 3:22 PM, Jian Bo <
> > >> >>>>> [email protected]>
> > >> >>>>> > >> > wrote:
> > >> >>>>> > >> > > >
> > >> >>>>> > >> > > > > I follow the gettingstarted page of the official
> > >> website,
> > >> >>>>> then
> > >> >>>>> > >> > download
> > >> >>>>> > >> > > > the
> > >> >>>>> > >> > > > > tar package.
> > >> >>>>> > >> > > > > Furthermore , all steps above run well.
> > >> >>>>> > >> > > > >
> > >> >>>>> > >> > > > > On Mon, Aug 3, 2015 at 3:13 PM, haosdent <
> > >> >>>>> [email protected]>
> > >> >>>>> > >> wrote:
> > >> >>>>> > >> > > > >
> > >> >>>>> > >> > > > > > Hello, how you install mesos-0.23? You install
> from
> > >> >>>>> build
> > >> >>>>> > >> source?
> > >> >>>>> > >> > > > > >
> > >> >>>>> > >> > > > > > On Mon, Aug 3, 2015 at 3:01 PM, Jian Bo <
> > >> >>>>> > [email protected]
> > >> >>>>> > >> >
> > >> >>>>> > >> > > > wrote:
> > >> >>>>> > >> > > > > >
> > >> >>>>> > >> > > > > > > Hi dev-friends,
> > >> >>>>> > >> > > > > > >   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
> > >> >>>>> > >> > > > > > > <
> > >> >>>>> > >> > > > > > >
> > >> >>>>> > >> > > > > >
> > >> >>>>> > >> > > > >
> > >> >>>>> > >> > > >
> > >> >>>>> > >> > >
> > >> >>>>> > >> >
> > >> >>>>> > >>
> > >> >>>>> >
> > >> >>>>>
> > >>
> >
> http://stackoverflow.com/questions/31778838/mesos-src-examples-python-test-framework-py-line-25-mesos-native-could-not-foun
> > >> >>>>> > >> > > > > > > >
> > >> >>>>> > >> > > > > > >
> > >> >>>>> > >> > > > > > > Anyone who can help me solve this problem?
> > >> >>>>> > >> > > > > > >
> > >> >>>>> > >> > > > > >
> > >> >>>>> > >> > > > > >
> > >> >>>>> > >> > > > > >
> > >> >>>>> > >> > > > > > --
> > >> >>>>> > >> > > > > > Best Regards,
> > >> >>>>> > >> > > > > > Haosdent Huang
> > >> >>>>> > >> > > > > >
> > >> >>>>> > >> > > > >
> > >> >>>>> > >> > > >
> > >> >>>>> > >> > > >
> > >> >>>>> > >> > > >
> > >> >>>>> > >> > > > --
> > >> >>>>> > >> > > > Best Regards,
> > >> >>>>> > >> > > > Haosdent Huang
> > >> >>>>> > >> > > >
> > >> >>>>> > >> > >
> > >> >>>>> > >> >
> > >> >>>>> > >> >
> > >> >>>>> > >> >
> > >> >>>>> > >> > --
> > >> >>>>> > >> > Best Regards,
> > >> >>>>> > >> > Haosdent Huang
> > >> >>>>> > >> >
> > >> >>>>> > >>
> > >> >>>>> > >
> > >> >>>>> > >
> > >> >>>>> > >
> > >> >>>>> > > --
> > >> >>>>> > > Best Regards,
> > >> >>>>> > > Haosdent Huang
> > >> >>>>> > >
> > >> >>>>> >
> > >> >>>>> >
> > >> >>>>> >
> > >> >>>>> > --
> > >> >>>>> > Best Regards,
> > >> >>>>> > Haosdent Huang
> > >> >>>>> >
> > >> >>>>>
> > >> >>>>
> > >> >>>>
> > >> >>>>
> > >> >>>> --
> > >> >>>> Best Regards,
> > >> >>>> Haosdent Huang
> > >> >>>>
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>> --
> > >> >>> Best Regards,
> > >> >>> Haosdent Huang
> > >> >>>
> > >> >>
> > >> >>
> > >> >>
> > >> >> --
> > >> >> Best Regards,
> > >> >> Haosdent Huang
> > >> >>
> > >> >
> > >> >
> > >> >
> > >> > --
> > >> > Best Regards,
> > >> > Haosdent Huang
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> Best Regards,
> > >> Haosdent Huang
> > >>
> > >
> > >
> >
>
>
>
> --
> Best Regards,
> Haosdent Huang
>

Reply via email to