You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/07/04 19:07:30 UTC

[GitHub] [beam] wilsonwang371 opened a new issue, #22149: Problem with manual compiled beam python package

wilsonwang371 opened a new issue, #22149:
URL: https://github.com/apache/beam/issues/22149

   Hi,
   
   I compiled apache beam package and installed it in my own environment.
   
   However, when i tried to load apache_beam using
   ```python
   import apache_beam
   ```
   
   I saw the following error:
   
   ```
   Traceback (most recent call last):
     File "<stdin>", line 1, in <module>
     File "/usr/local/lib/python3.9/site-packages/apache_beam/__init__.py", line 92, in <module>
       from apache_beam import coders
     File "/usr/local/lib/python3.9/site-packages/apache_beam/coders/__init__.py", line 17, in <module>
       from apache_beam.coders.coders import *
     File "/usr/local/lib/python3.9/site-packages/apache_beam/coders/coders.py", line 58, in <module>
       from apache_beam.coders import coder_impl
     File "/usr/local/lib/python3.9/site-packages/apache_beam/coders/coder_impl.py", line 62, in <module>
       from apache_beam.typehints.schemas import named_tuple_from_schema
     File "/usr/local/lib/python3.9/site-packages/apache_beam/typehints/schemas.py", line 72, in <module>
       from apache_beam.portability import common_urns
     File "/usr/local/lib/python3.9/site-packages/apache_beam/portability/common_urns.py", line 22, in <module>
       from .api import beam_runner_api_pb2_urns
   ImportError: cannot import name 'beam_runner_api_pb2_urns' from 'apache_beam.portability.api' (unknown location)
   ```
   
   Can someone help me out on this?
   
   Thanks
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] Abacn commented on issue #22149: Problem with manual compiled beam python package

Posted by GitBox <gi...@apache.org>.
Abacn commented on issue #22149:
URL: https://github.com/apache/beam/issues/22149#issuecomment-1174447505

   Sounds like protos are not generated. It should be executed automatically as part of the install: https://github.com/apache/beam/blob/b53b16f1fb41913b0e8bbe9d64d71b8e3ebfbbf6/sdks/python/setup.py#L164
   If not could manually run `python gen_protos.py` at sdks/python folder before install.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] wilsonwang371 commented on issue #22149: Problem with manual compiled beam python package

Posted by GitBox <gi...@apache.org>.
wilsonwang371 commented on issue #22149:
URL: https://github.com/apache/beam/issues/22149#issuecomment-1174515631

   I think I found the root cause. My python was 3.5 and it has problem compiling beam with this python version.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [beam] wilsonwang371 closed issue #22149: Problem with manual compiled beam python package

Posted by GitBox <gi...@apache.org>.
wilsonwang371 closed issue #22149: Problem with manual compiled beam python package
URL: https://github.com/apache/beam/issues/22149


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org