You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Bernardo Gomez Palacio (JIRA)" <ji...@apache.org> on 2013/11/05 19:04:19 UTC

[jira] [Commented] (MESOS-798) ExamplesTest.PythonFramework failing

    [ https://issues.apache.org/jira/browse/MESOS-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814079#comment-13814079 ] 

Bernardo Gomez Palacio commented on MESOS-798:
----------------------------------------------

This specific error 

AttributeError: 'FileDescriptor' object has no attribute 'message_types_by_name' `

Will happen when protobuf-python-2.3 gets in the way of the protobuf-python-2.4.1 library bundled with Mesos.

In my specific case I am building for CentOS 6.4 using Mock, the SPEC file specifies the build requirements. To fix this issue I had to remove the protobuf-python package
(e.g. remove BuildRequires:  protobuf-python). By default the EPEL package installs version 2.3.0.

Available Packages
Name        : protobuf-python
Arch        : x86_64
Version     : 2.3.0
Release     : 7.el6
Size        : 98 k
Repo        : epel
Summary     : Python bindings for Google Protocol Buffers
URL         : http://code.google.com/p/protobuf/
License     : BSD
Description : This package contains Python libraries for Google Protocol Buffers

> ExamplesTest.PythonFramework failing 
> -------------------------------------
>
>                 Key: MESOS-798
>                 URL: https://issues.apache.org/jira/browse/MESOS-798
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>    Affects Versions: 0.16.0
>         Environment: Linux 2.6.32-279.el6.x86_64
> Python 2.6.6
> Python Packages installed
> python-2.6.6-37.el6_4.x86_64
> protobuf-python-2.3.0-7.el6.x86_64
> python-libs-2.6.6-37.el6_4.x86_64
> python-devel-2.6.6-37.el6_4.x86_64
> python-setuptools-0.6.10-3.el6.noarch
> python-boto-2.13.3-1.el6.noarch
>            Reporter: Bernardo Gomez Palacio
>              Labels: test
>
> (Based on Git Commit Hash 03b9407)
> Running `make check` fails while executing ExamplesTest.PythonFramework with the following trace:
> [ RUN      ] ExamplesTest.PythonFramework
> Using temporary directory '/tmp/ExamplesTest_PythonFramework_5Vv4TM'
> Traceback (most recent call last):
>   File "/builddir/build/BUILD/mesos-03b94076caddceda4c0a6a03aa44ebe4d64f1acc/src/examples/python/test_framework.py", line 23, in <module>
>     import mesos
>   File "build/bdist.linux-x86_64/egg/mesos.py", line 26, in <module>
>   File "build/bdist.linux-x86_64/egg/_mesos.py", line 7, in <module>
>   File "build/bdist.linux-x86_64/egg/_mesos.py", line 6, in __bootstrap__
>   File "build/bdist.linux-x86_64/egg/mesos_pb2.py", line 1545, in <module>
> AttributeError: 'FileDescriptor' object has no attribute 'message_types_by_name'
> tests/script.cpp:77: Failure
> Failed
> python_framework_test.sh exited with status 1
> [  FAILED  ] ExamplesTest.PythonFramework (432 ms)
> [----------] 5 tests from ExamplesTest (4346 ms total)



--
This message was sent by Atlassian JIRA
(v6.1#6144)