[
https://issues.apache.org/jira/browse/BEAM-8527?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16965484#comment-16965484
]
Kenneth Knowles commented on BEAM-8527:
---------------------------------------
[~tvalentyn] any ideas?
> Apache Beam with Python 3 module module error
> ---------------------------------------------
>
> Key: BEAM-8527
> URL: https://issues.apache.org/jira/browse/BEAM-8527
> Project: Beam
> Issue Type: Bug
> Components: runner-direct
> Reporter: Sascha Heyer
> Priority: Major
>
> Hi Folks,
> * apache-beam==2.16.0
> when running Apache Beam with Python 3 I get the following error message
> {code:java}
> module 'apache_beam.coders.coders' has no attribute 'VarIntCoder'
> {code}
> *Full Error*
> {code:java}
> Traceback (most recent call last):
> File "pipeline/pipeline.py", line 13, in <module>
> import apache_beam as beam
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/__init__.py",
> line 97, in <module>
> from apache_beam import coders
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/coders/__init__.py",
> line 19, in <module>
> from apache_beam.coders.coders import *
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/coders/coders.py",
> line 30, in <module>
> from future.moves import pickle
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/future/moves/__init__.py",
> line 8, in <module>
> import_top_level_modules()
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/future/standard_library/__init__.py",
> line 810, in import_top_level_modules
> with exclude_local_folder_imports(*TOP_LEVEL_MODULES):
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/future/standard_library/__init__.py",
> line 781, in __enter__
> module = __import__(m, level=0)
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/pipeline/test.py",
> line 14, in <module>
> from apache_beam.options.pipeline_options import PipelineOptions
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/options/pipeline_options.py",
> line 31, in <module>
> from apache_beam.transforms.display import HasDisplayData
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/transforms/__init__.py",
> line 23, in <module>
> from apache_beam.transforms import combiners
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/transforms/combiners.py",
> line 41, in <module>
> from apache_beam.transforms import core
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/transforms/core.py",
> line 38, in <module>
> from apache_beam.coders import typecoders
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/coders/typecoders.py",
> line 182, in <module>
> registry = CoderRegistry()
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/coders/typecoders.py",
> line 84, in __init__
> self.register_standard_coders(fallback_coder)
> File
> "/TWT/Development/machine-learning-framework/image-feature-extraction/python3/lib/python3.6/site-packages/apache_beam/coders/typecoders.py",
> line 88, in register_standard_coders
> self._register_coder_internal(int, coders.VarIntCoder)
> AttributeError: module 'apache_beam.coders.coders' has no attribute
> 'VarIntCoder'
> {code}
> Are there any known issues or recommendations to solve this issue?
> Best regards
> Sascha
--
This message was sent by Atlassian Jira
(v8.3.4#803005)