You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "Piotr Filipiuk (Jira)" <ji...@apache.org> on 2020/04/22 19:00:03 UTC

[jira] [Created] (BEAM-9806) Error running examples with avro-python3 1.9.2.1 on HEAD

Piotr Filipiuk created BEAM-9806:
------------------------------------

             Summary: Error running examples with avro-python3 1.9.2.1 on HEAD
                 Key: BEAM-9806
                 URL: https://issues.apache.org/jira/browse/BEAM-9806
             Project: Beam
          Issue Type: Bug
          Components: dependencies
         Environment: Python 3.6.5
setuptools-46.1.3
pip-20.0.2
            Reporter: Piotr Filipiuk


**Running examples from HEAD fails when using avro-python3 1.9.2.1.

*Repro steps*:

{{python3 -m venv apache-beam-fresh}}

{{workon apache-beam-fresh}}

{{pip install -r build-requirements.txt}}

{{python setup.py build}}

{{python setup.py install}}

 

*Running example errors out*:

{{python -m apache_beam.examples.wordcount --input /tmp/input --output /tmp/count}}
{{Traceback (most recent call last):}}
{{ File "/Users/piotr.filipiuk/.pyenv/versions/3.6.5/lib/python3.6/runpy.py", line 183, in _run_module_as_main}}
{{ mod_name, mod_spec, code = _get_module_details(mod_name, _Error)}}
{{ File "/Users/piotr.filipiuk/.pyenv/versions/3.6.5/lib/python3.6/runpy.py", line 109, in _get_module_details}}
{{ __import__(pkg_name)}}
{{ File "/Users/piotr.filipiuk/src/github.com/apache/beam/sdks/python/apache_beam/__init__.py", line 96, in <module>}}
{{ from apache_beam import io}}
{{ File "/Users/piotr.filipiuk/src/github.com/apache/beam/sdks/python/apache_beam/io/__init__.py", line 23, in <module>}}
{{ from apache_beam.io.avroio import *}}
{{ File "/Users/piotr.filipiuk/src/github.com/apache/beam/sdks/python/apache_beam/io/avroio.py", line 57, in <module>}}
{{ import avro}}
{{ File "<frozen importlib._bootstrap>", line 971, in _find_and_load}}
{{ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked}}
{{ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked}}
{{ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible}}
{{ File "/Users/piotr.filipiuk/.virtualenvs/apache-beam-fresh/lib/python3.6/site-packages/avro_python3-1.9.2.1-py3.6.egg/avro/__init__.py", line 34, in <module>}}
{{ File "/Users/piotr.filipiuk/.virtualenvs/apache-beam-fresh/lib/python3.6/site-packages/avro_python3-1.9.2.1-py3.6.egg/avro/__init__.py", line 30, in LoadResource}}
{{NotADirectoryError: [Errno 20] Not a directory: '/Users/piotr.filipiuk/.virtualenvs/apache-beam-fresh/lib/python3.6/site-packages/avro_python3-1.9.2.1-py3.6.egg/avro/VERSION.txt}}

 

Running examples works fine with e.g. avro-python3 1.9.1.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)