María GH created BEAM-1753:
------------------------------

             Summary: ImportError (cannot import name descriptor) in new venv 
after 'python setup.py install'
                 Key: BEAM-1753
                 URL: https://issues.apache.org/jira/browse/BEAM-1753
             Project: Beam
          Issue Type: Bug
          Components: sdk-py
            Reporter: María GH
            Assignee: Ahmet Altay


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=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_plugin = 
test_config:BeamTestPlugin: (dill 0.2.5 
(/Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packages), 
Requirement.parse('dill==0.2.6'))
  RuntimeWarning)
Failure: ImportError (cannot import name descriptor) ... ERROR

======================================================================
ERROR: Failure: ImportError (cannot import name descriptor)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packages/nose/loader.py",
 line 418, in loadTestsFromName
    addr.filename, addr.module)
  File 
"/Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packages/nose/importer.py",
 line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File 
"/Users/mariagh/Documents/venvs/dataflow/lib/python2.7/site-packages/nose/importer.py",
 line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File 
"/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_beam/__init__.py",
 line 77, in <module>
    from apache_beam import coders
  File 
"/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_beam/coders/__init__.py",
 line 18, in <module>
    from apache_beam.coders.coders import *
  File 
"/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_beam/coders/coders.py",
 line 26, in <module>
    from apache_beam.utils import proto_utils
  File 
"/Users/mariagh/Documents/beam/incubator-beam/sdks/python/apache_beam/utils/proto_utils.py",
 line 18, in <module>
    from google.protobuf import any_pb2
  File "build/bdist.macosx-10.11-x86_64/egg/google/protobuf/any_pb2.py", line 
6, in <module>
ImportError: cannot import name descriptor

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to