Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

Can't import apache_beam #46

Closed
thelonelyvulpes opened this issue Sep 20, 2017 · 2 comments
Closed

Can't import apache_beam #46

thelonelyvulpes opened this issue Sep 20, 2017 · 2 comments

Comments

@thelonelyvulpes
Copy link

thelonelyvulpes commented Sep 20, 2017

used 'pip install google-cloud-dataflow' from inside virtualenv, any time I try to access apache_beam I get a spew of errors

(dataflow_lab) C:\Users\grant.lodge\dataflow_lab>python
Python 2.7.14 (v2.7.14:84471935ed, Sep 16 2017, 20:19:30) [MSC v.1500 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.

import apache_beam
Traceback (most recent call last):
File "", line 1, in
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam_init_.py", line 78, in
from apache_beam import io
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam\io_init_.py", line 21, in
from apache_beam.io.avroio import *
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam\io\avroio.py", line 29, in
from apache_beam.io import filebasedsource
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam\io\filebasedsource.py", line 33, in
from apache_beam.io.filesystems import FileSystems
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam\io\filesystems.py", line 31, in
from apache_beam.io.gcp.gcsfilesystem import GCSFileSystem
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam\io\gcp\gcsfilesystem.py", line 27, in
from apache_beam.io.gcp import gcsio
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam\io\gcp\gcsio.py", line 36, in
from apache_beam.utils import retry
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apache_beam\utils\retry.py", line 38, in
from apitools.base.py.exceptions import HttpError
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apitools\base\py_init_.py", line 21, in
from apitools.base.py.base_api import *
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apitools\base\py\base_api.py", line 31, in
from apitools.base.protorpclite import message_types
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apitools\base\protorpclite\message_types.py", line 25, in
from apitools.base.protorpclite import messages
File "C:\Users\grant.lodge\dataflow_lab\lib\site-packages\apitools\base\protorpclite\messages.py", line 1165, in
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

Python 2.7.14
virtualenv 15.1.0
pip 9.0.1
dataflow 2.1.0
Windows 10 using cmd

@charlesccychen
Copy link
Contributor

charlesccychen commented Sep 20, 2017

Hi there, please run pip install six==1.10. This is a known issue in Beam (https://issues.apache.org/jira/browse/BEAM-2964) which we are trying to get fixed upstream.

@thelonelyvulpes
Copy link
Author

this does work. Should I leave the issue open until it is fixed upstream?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants