Return-Path: X-Original-To: apmail-aurora-dev-archive@minotaur.apache.org Delivered-To: apmail-aurora-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8E359175A2 for ; Tue, 17 Feb 2015 17:40:06 +0000 (UTC) Received: (qmail 28544 invoked by uid 500); 17 Feb 2015 17:40:00 -0000 Delivered-To: apmail-aurora-dev-archive@aurora.apache.org Received: (qmail 28495 invoked by uid 500); 17 Feb 2015 17:40:00 -0000 Mailing-List: contact dev-help@aurora.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aurora.incubator.apache.org Delivered-To: mailing list dev@aurora.incubator.apache.org Received: (qmail 28484 invoked by uid 99); 17 Feb 2015 17:40:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 17:40:00 +0000 X-ASF-Spam-Status: No, hits=-1997.8 required=5.0 tests=ALL_TRUSTED,HTML_MESSAGE,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO mail.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Feb 2015 17:39:58 +0000 Received: (qmail 26266 invoked by uid 99); 17 Feb 2015 17:39:36 -0000 Received: from mail-relay.apache.org (HELO mail-relay.apache.org) (140.211.11.15) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Feb 2015 17:39:36 +0000 Received: from mail-qa0-f50.google.com (mail-qa0-f50.google.com [209.85.216.50]) by mail-relay.apache.org (ASF Mail Server at mail-relay.apache.org) with ESMTPSA id 1C0F21A025E for ; Tue, 17 Feb 2015 17:39:35 +0000 (UTC) Received: by mail-qa0-f50.google.com with SMTP id f12so27372464qad.9 for ; Tue, 17 Feb 2015 09:39:34 -0800 (PST) X-Gm-Message-State: ALoCoQllwcOBru2Sr4TW10QXugKkcpQgaPG2MVGnlWNR6kHsW6v6wOqsGWKDNo/VArwDypEMgI5M MIME-Version: 1.0 X-Received: by 10.140.39.84 with SMTP id u78mr1943414qgu.63.1424194771249; Tue, 17 Feb 2015 09:39:31 -0800 (PST) Received: by 10.140.95.197 with HTTP; Tue, 17 Feb 2015 09:39:31 -0800 (PST) In-Reply-To: <1424164012427.90087@blue-yonder.com> References: <1424164012427.90087@blue-yonder.com> Date: Tue, 17 Feb 2015 09:39:31 -0800 Message-ID: Subject: Re: Build issues: Thermos executor not working From: Kevin Sweeney To: Aurora Content-Type: multipart/alternative; boundary=001a11c129686e838e050f4c2f61 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c129686e838e050f4c2f61 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I ran into this issue as well - it looks like the problem is that Mesos requires protobuf<3, which 3.0.0-alpha1 technically is (pants uses a different resolver than pip - pip will ignore alpha versions unless run with --pre). A workaround is to add an explicit dependency on protobuf=3D=3D2.6.1 to our 3rdparty/python/requirements.txt and add a dependency on 3rdpary/python:protobuf everywhere that depends on 3rdparty/python:mesos.native. If you fix this, it'd be awesome if you could submit a patch. Thanks, Kevin On Tue, Feb 17, 2015 at 1:06 AM, Erb, Stephan wrote: > Hi everyone, > > we try to build the latest Aurora git version on a Debian 7 host. > Unfortunately, the resulting executor seems to be broken, as it fails to > start with the following message: > > > WARNING: Logging before InitGoogleLogging() is written to STDERR > I0216 18:16:51.178513 25237 fetcher.cpp:76] Fetching URI > '/opt/thermos/bin/thermos_executor.sh' > I0216 18:16:51.178513 25237 fetcher.cpp:179] Copying resource from > '/opt/thermos/bin/thermos_executor.sh' to > '/var/lib/mesos/slaves/20141218-095422-1985259712-5050-31688-0/frameworks= /20140919-174559-16842879-5050-27194-0000/executors/thermos-1424107010619-s= tratosphere-staging-strato-stage-service-71-0-9120fb5c-4b4b-425e-90f5-0d832= 24b9d64/runs/fe198e72-d41e-41c3-a006-27dad0ed758b' > Traceback (most recent call last): > File "/opt/thermos/bin/thermos_executor.pex/.bootstrap/_pex/pex.py", > line 272, in execute > self.execute_entry(entry_point, args) > File "/opt/thermos/bin/thermos_executor.pex/.bootstrap/_pex/pex.py", > line 320, in execute_entry > runner(entry_point) > File "/opt/thermos/bin/thermos_executor.pex/.bootstrap/_pex/pex.py", > line 342, in execute_pkg_resources > runner =3D entry.load(require=3DFalse) # trust that the environment = is > sane > File > "/opt/thermos/bin/thermos_executor.pex/.bootstrap/pkg_resources.py", line > 2048, in load > entry =3D __import__(self.module_name, globals(),globals(), ['__name_= _']) > File > "/opt/thermos/bin/thermos_executor.pex/apache/aurora/executor/bin/thermos= _executor_main.py", > line 24, in > File > "/.pex/install/mesos.native-0.21.1-py2.7-linux-x86_64.egg.b3704775c8aad2e= 57af36756ac89f16a8ca72ae1/mesos.native-0.21.1-py2.7-linux-x86_64.egg/mesos/= native/__init__.py", > line 17, in > from ._mesos import MesosExecutorDriverImpl > File > "/.pex/install/mesos.interface-0.21.1-py2-none-any.whl.00a9556e7f26cf49f0= 9f1542a1ee274c058ea78c/mesos.interface-0.21.1-py2-none-any.whl/mesos/interf= ace/mesos_pb2.py", > line 4, in > from google.protobuf.internal import enum_type_wrapper > ImportError: cannot import name enum_type_wrapper > > > I have attached the pants build log. It seems like pants is pulling in a > wrong protobuf version (protobuf-3.0.0_alpha_1 instead of protobuf 2.6.1)= . > > The issue can even be simulated locally: > * pip install mesos.interface with an old virtualenv 1.11 (including pip > 1.5 and setuptools 2.0.2) pulls in protobuf-3.0.0-alpha-1 > * pip install mesos.interface with the latest and greatest pip 6.0.8 and > setuptools 12.2 pulls protobuf-2.6.1 > > How can this happen? Isn't the "build-support/virtualenv" script supposed > to prevent that? I also tried patching the setuptools_version in pants.in= i, > but it did not help. > > Any ideas? > > Best Regards, > Stephan > > > > > --001a11c129686e838e050f4c2f61--