Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-2964

Latest six (1.11.0) produces "metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.2.0
    • Component/s: sdk-py-core
    • Labels:
      None
    • Environment:
      Python 2.7 in a virtualenv on MacOS

      Description

      $ virtualenv venv
      [...]
      $ source venv/bin/activate
      [...]
      $ pip install apache-beam[gcp]==2.1.0 six==1.11.0
      [...]
      $ python -c 'import apache_beam'
      Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/_init_.py", line 78, in <module>
      from apache_beam import io
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/io/_init_.py", line 21, in <module>
      from apache_beam.io.avroio import *
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/io/avroio.py", line 29, in <module>
      from apache_beam.io import filebasedsource
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/io/filebasedsource.py", line 33, in <module>
      from apache_beam.io.filesystems import FileSystems
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/io/filesystems.py", line 31, in <module>
      from apache_beam.io.gcp.gcsfilesystem import GCSFileSystem
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/io/gcp/gcsfilesystem.py", line 27, in <module>
      from apache_beam.io.gcp import gcsio
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/io/gcp/gcsio.py", line 36, in <module>
      from apache_beam.utils import retry
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apache_beam/utils/retry.py", line 38, in <module>
      from apitools.base.py.exceptions import HttpError
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apitools/base/py/_init_.py", line 21, in <module>
      from apitools.base.py.base_api import *
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apitools/base/py/base_api.py", line 31, in <module>
      from apitools.base.protorpclite import message_types
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apitools/base/protorpclite/message_types.py", line 25, in <module>
      from apitools.base.protorpclite import messages
      File "/Users/snormore/Workspace/beam-six/venv/lib/python2.7/site-packages/apitools/base/protorpclite/messages.py", line 1165, in <module>
      class Field(six.with_metaclass(_FieldMeta, object)):
      TypeError: Error when calling the metaclass bases
      metaclass conflict: the metaclass of a derived class must be a (non-strict) subclass of the metaclasses of all its bases
      (venv)
      $ pip install six==1.10.0
      [...]
      $ python -c 'import apache_beam'
      [success]

        Attachments

          Activity

            People

            • Assignee:
              altay Ahmet Altay
              Reporter:
              snormore Steven Normore
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: