Return-Path: X-Original-To: apmail-mesos-dev-archive@www.apache.org Delivered-To: apmail-mesos-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D90AE10CEE for ; Fri, 8 Nov 2013 21:41:17 +0000 (UTC) Received: (qmail 96939 invoked by uid 500); 8 Nov 2013 21:41:17 -0000 Delivered-To: apmail-mesos-dev-archive@mesos.apache.org Received: (qmail 96899 invoked by uid 500); 8 Nov 2013 21:41:17 -0000 Mailing-List: contact dev-help@mesos.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@mesos.apache.org Delivered-To: mailing list dev@mesos.apache.org Received: (qmail 96828 invoked by uid 99); 8 Nov 2013 21:41:17 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Nov 2013 21:41:17 +0000 Date: Fri, 8 Nov 2013 21:41:17 +0000 (UTC) From: "Niklas Quarfot Nielsen (JIRA)" To: dev@mesos.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MESOS-798) ExamplesTest.PythonFramework failing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MESOS-798?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13817719#comment-13817719 ] Niklas Quarfot Nielsen commented on MESOS-798: ---------------------------------------------- Cool, that looks like a clang built _mesos.so. While I need to test the last steps in a python egg patch, here is what you need: ---- diff --git a/src/Makefile.am b/src/Makefile.am index a73d6e1..e1313db 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -678,7 +678,7 @@ PROTOBUF_EGG = ../$(PROTOBUF)/python/dist/protobuf-$(PROTOBUF_EGG_SUFFIX) $(PROTOBUF_EGG): @echo "Building protobuf Python egg ..." cd ../$(PROTOBUF)/python && \ - PYTHONPATH=$(DISTRIBUTE_EGG) $(PYTHON) setup.py bdist_egg + CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS)" CXXFLAGS="$(CXXFLAGS)" PYTHONPATH=$(DISTRIBUTE_EGG) $(PYTHON) setup.py bdist_egg CLEANFILES += $(PROTOBUF_EGG) ---- TL;DR The chosen c and c++ compiler was not propagated to setup.py. Also, when you rebuild the python egg remember to delete the build/src/python/build & dist directories. > 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 > import mesos > File "build/bdist.linux-x86_64/egg/mesos.py", line 26, in > File "build/bdist.linux-x86_64/egg/_mesos.py", line 7, in > 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 > 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)