From dev-return-115895-archive-asf-public=cust-asf.ponee.io@kafka.apache.org Tue Jun 30 17:32:45 2020 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id 910B5180643 for ; Tue, 30 Jun 2020 19:32:45 +0200 (CEST) Received: (qmail 47966 invoked by uid 500); 30 Jun 2020 17:32:44 -0000 Mailing-List: contact dev-help@kafka.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kafka.apache.org Delivered-To: mailing list dev@kafka.apache.org Received: (qmail 47953 invoked by uid 99); 30 Jun 2020 17:32:44 -0000 Received: from Unknown (HELO mailrelay1-lw-us.apache.org) (10.10.3.159) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jun 2020 17:32:44 +0000 Received: from auth2-smtp.messagingengine.com (auth2-smtp.messagingengine.com [66.111.4.228]) by mailrelay1-lw-us.apache.org (ASF Mail Server at mailrelay1-lw-us.apache.org) with ESMTPSA id BFB3946FB4 for ; Tue, 30 Jun 2020 17:32:43 +0000 (UTC) Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailauth.nyi.internal (Postfix) with ESMTP id 9AFDB27C0054 for ; Tue, 30 Jun 2020 13:32:43 -0400 (EDT) Received: from imap1 ([10.202.2.51]) by compute4.internal (MEProxy); Tue, 30 Jun 2020 13:32:43 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduiedrtddtgdekgecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesthdtre dtreertdenucfhrhhomhepfdevohhlihhnucfotgevrggsvgdfuceotghmtggtrggsvges rghprggthhgvrdhorhhgqeenucggtffrrghtthgvrhhnpedtgfeiuddvvedvgfdvvdduje eiveevtdfgkedvfefhfeelveduiefhueekueehkeenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpegtmhgttggrsggvfedugedomhgvshhmthhprg huthhhphgvrhhsohhnrghlihhthidqgeeiudekgedufedtqdduheehkeekhedugedqtghm tggtrggsvgeppegrphgrtghhvgdrohhrghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 08471C200A5; Tue, 30 Jun 2020 13:32:43 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.3.0-dev0-576-gfe2cd66-fm-20200629.001-gfe2cd668 Mime-Version: 1.0 Message-Id: In-Reply-To: References: Date: Tue, 30 Jun 2020 10:32:20 -0700 From: "Colin McCabe" To: dev@kafka.apache.org Subject: Re: Running system tests on mac Content-Type: text/plain Ducktape runs on Python 2. You can't use it with Python 3, as you are trying to do here. If anyone's interested in porting it to Python 3 it would be a good change. Otherwise, using docker as suggested here seems to be the best way to go. best, Colin On Mon, Jun 29, 2020, at 02:14, Gokul Ramanan Subramanian wrote: > Hi. > > Has anyone had luck running Kafka system tests on a Mac. I have a MacOS > Mojave 10.14.6. I got Python 3.6.9 using pyenv. However, the command > *ducktape tests/kafkatest/tests* yields the following error, making it look > like some Python incompatibility issue. > > $ ducktape tests/kafkatest/tests > Traceback (most recent call last): > File "/Users/gokusubr/.pyenv/versions/3.6.9/bin/ducktape", line 11, in > > load_entry_point('ducktape', 'console_scripts', 'ducktape')() > File > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > line 487, in load_entry_point > return get_distribution(dist).load_entry_point(group, name) > File > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > line 2728, in load_entry_point > return ep.load() > File > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > line 2346, in load > return self.resolve() > File > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/pkg_resources/__init__.py", > line 2352, in resolve > module = __import__(self.module_name, fromlist=['__name__'], > level=0) > File > "/Users/gokusubr/.pyenv/versions/3.6.9/lib/python3.6/site-packages/ducktape-0.7.6-py3.6.egg/ducktape/command_line/main.py", > line 127 > print "parameters are not valid json: " + str(e.message) > ^ > SyntaxError: invalid syntax > > I followed the instructions in tests/README.md to setup a cluster of 9 > worker machines. That worked well. When I ran *python setup.py develop* to > install the necessary dependencies (including ducktape), I got similar > errors to above, but the overall command completed successfully. > > Any help appreciated. > > Thanks. >