[ 
https://issues.apache.org/jira/browse/BEAM-1753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15933611#comment-15933611
 ] 

Ahmet Altay commented on BEAM-1753:
-----------------------------------

I cannot reproduce this on a Mac.

Here is what I did:
- Fresh clone/fresh virtualenv
- python setup.py install
- pip install nose
- pip install pyhamcrest
- nosetests --logging-level=INFO apache_beam/io/fileio_test.py

Output I got:

$ nosetests --logging-level=INFO apache_beam/io/fileio_test.py
/Users/altay/Desktop/beam/tesm/beam/sdks/python/venv_tesm/lib/python2.7/site-packages/nose/plugins/manager.py:395:
 RuntimeWarning: Unable to load plugin beam_test_plugin = 
test_config:BeamTestPlugin: No module named test_config
  RuntimeWarning)
test_size_of_files_in_glob_complete 
(apache_beam.io.fileio_test.TestChannelFactory) ... ok
test_size_of_files_in_glob_incomplete 
(apache_beam.io.fileio_test.TestChannelFactory) ... ok
test_seekable (apache_beam.io.fileio_test.TestCompressedFile) ... ok
test_tell (apache_beam.io.fileio_test.TestCompressedFile) ... ok
test_empty_write (apache_beam.io.fileio_test.TestFileSink) ... ok
test_file_sink_display_data (apache_beam.io.fileio_test.TestFileSink) ... ok
test_file_sink_io_error (apache_beam.io.fileio_test.TestFileSink) ... ok
test_file_sink_multi_shards (apache_beam.io.fileio_test.TestFileSink) ... ok
test_file_sink_writing (apache_beam.io.fileio_test.TestFileSink) ... ok
test_fixed_shard_write (apache_beam.io.fileio_test.TestFileSink) ... 
/Users/altay/Desktop/beam/tesm/beam/sdks/python/apache_beam/coders/typecoders.py:132:
 UserWarning: Using fallback coder for typehint: Any.
  warnings.warn('Using fallback coder for typehint: %r.' % typehint)
ok
test_rename_batch (apache_beam.io.fileio_test.TestFileSink) ... ok

----------------------------------------------------------------------
Ran 11 tests in 1.227s

OK

This is the output of 'pip list':
apache-beam (0.7.0.dev0)
appdirs (1.4.3)
avro (1.8.1)
crcmod (1.7)
dill (0.2.6)
funcsigs (1.0.2)
httplib2 (0.9.2)
mock (2.0.0)
nose (1.3.7)
oauth2client (3.0.0)
packaging (16.8)
pbr (2.0.0)
pip (9.0.1)
protobuf (3.2.0)
pyasn1 (0.2.3)
pyasn1-modules (0.0.8)
PyHamcrest (1.9.0)
pyparsing (2.2.0)
PyYAML (3.12)
rsa (3.4.2)
setuptools (34.3.2)
six (1.10.0)
wheel (0.30.0a0)

> 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