Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 7FD4B200C52 for ; Mon, 10 Apr 2017 19:31:49 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7E400160B99; Mon, 10 Apr 2017 17:31:49 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C556A160B7F for ; Mon, 10 Apr 2017 19:31:48 +0200 (CEST) Received: (qmail 97513 invoked by uid 500); 10 Apr 2017 17:31:47 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 97504 invoked by uid 99); 10 Apr 2017 17:31:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Apr 2017 17:31:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 27D4E1A03DC for ; Mon, 10 Apr 2017 17:31:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id BBs-DJqX61kg for ; Mon, 10 Apr 2017 17:31:43 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 1CD6C5FBFC for ; Mon, 10 Apr 2017 17:31:43 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B8965E0A2B for ; Mon, 10 Apr 2017 17:31:42 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 9FEF92406B for ; Mon, 10 Apr 2017 17:31:41 +0000 (UTC) Date: Mon, 10 Apr 2017 17:31:41 +0000 (UTC) From: "Ahmet Altay (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (BEAM-1753) ImportError (cannot import name descriptor) in new venv after 'python setup.py install' MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 10 Apr 2017 17:31:49 -0000 [ https://issues.apache.org/jira/browse/BEAM-1753?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:all-tabpanel ] Ahmet Altay resolved BEAM-1753. ------------------------------- Resolution: Cannot Reproduce Fix Version/s: Not applicable > ImportError (cannot import name descriptor) in new venv after 'python set= up.py install' > -------------------------------------------------------------------------= -------------- > > Key: BEAM-1753 > URL: https://issues.apache.org/jira/browse/BEAM-1753 > Project: Beam > Issue Type: Bug > Components: sdk-py > Reporter: Mar=C3=ADa GH > Assignee: Mar=C3=ADa GH > Fix For: Not applicable > > > After 'python setup.py install' in a clean virtual environment, I get the= following when running nosetest: > (dataflow) mariagh (ppp_inmaster *) python $ nosetests --logging-level=3D= INFO apache_beam/io/fileio_test.py > /Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packages/nose/= plugins/manager.py:395: RuntimeWarning: Unable to load plugin beam_test_plu= gin =3D test_config:BeamTestPlugin: (dill 0.2.5 (/Users/mariagh/Documents/v= envs/dataflow/lib/python2.7/site-packages), Requirement.parse('dill=3D=3D0.= 2.6')) > RuntimeWarning) > Failure: ImportError (cannot import name descriptor) ... ERROR > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > ERROR: Failure: ImportError (cannot import name descriptor) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packag= es/nose/loader.py", line 418, in loadTestsFromName > addr.filename, addr.module) > File "/Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packag= es/nose/importer.py", line 47, in importFromPath > return self.importFromDir(dir_path, fqname) > File "/Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packag= es/nose/importer.py", line 94, in importFromDir > mod =3D load_module(part_fqname, fh, filename, desc) > File "/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_b= eam/__init__.py", line 77, in > from apache_beam import coders > File "/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_b= eam/coders/__init__.py", line 18, in > from apache_beam.coders.coders import * > File "/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_b= eam/coders/coders.py", line 26, in > from apache_beam.utils import proto_utils > File "/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_b= eam/utils/proto_utils.py", line 18, in > from google.protobuf import any_pb2 > File "build/bdist.macosx-10.11-x86_64/egg/google/protobuf/any_pb2.py", = line 6, in > ImportError: cannot import name descriptor > ---------------------------------------------------------------------- > Ran 1 test in 0.001s > FAILED (errors=3D1) -- This message was sent by Atlassian JIRA (v6.3.15#6346)