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/11/01 18:40:35 UTC
[GitHub] [beam] demongolem-biz opened a new issue, #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
demongolem-biz opened a new issue, #23758:
URL: https://github.com/apache/beam/issues/23758
### What happened?
WIth python 3.8 on rhel 8, I ran `python3.8 -m apache_beam.examples.wordcount`. I did this from a fresh virtual environment where I pip installed apache-beam.
The error I get is `ModuleNotFoundError: No module named 'apache_beam.portability.api`. This exception is raised in `apache_beam/portability/common_urns.py` on line 22 with the line `from .api import beam_runner_api_pb2_urns`
I was following the instructions on [Apache Beam Get Started](https://beam.apache.org/get-started/quickstart-py) to attempt to run the example code.
### Issue Priority
Priority: 2
### Issue Component
Component: examples-python
--
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] demongolem-biz commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
demongolem-biz commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1295259460
No, getting protobuf to a higher version does not change the error.
--
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] demongolem-biz commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
demongolem-biz commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1294948906
Sorry don't have access to the machine currently (later today will). However I did click on that link and I noticed protobuf which has been an issue for us before. We generally go with 3.17.3 and the link says 3.20.1 and so it could be that. Will find out more and report back.
--
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] BjornPrime commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
BjornPrime commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1295319932
Did you run `python gen_protos.py` once you upgraded protobuf?
--
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] tvalentyn commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1286172337
nvm, i saw you mentioned rhel 8
--
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] BjornPrime commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
BjornPrime commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1291030211
You might try the process described here: https://github.com/apache/beam/issues/22742#issuecomment-1218216468
It was intended for M1 Macs but since you seem to be having a similar issue, it might be worth a try. Let us know whether or not it works for you.
--
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] github-actions[bot] closed issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
URL: https://github.com/apache/beam/issues/23758
--
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] tvalentyn commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1286171942
Are you by chance a Macbook M1 user ?
--
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] tvalentyn commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1298952574
@BjornPrime would you mind adding helpful info to s.apache.org/beam-python-dev-wiki ?
--
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] tvalentyn commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1286173526
would you mind posting full sequence of commands you run?
--
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] damccorm commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
damccorm commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1334435581
This got added to the 2.44 milestone via close/reopen and is probably not a real release blocker
--
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] BjornPrime commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
BjornPrime commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1355201993
.close-issue
--
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] tvalentyn commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1290968402
Is it reproducible with some docker container?
--
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] demongolem-biz closed issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
demongolem-biz closed issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
URL: https://github.com/apache/beam/issues/23758
--
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] BjornPrime commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
BjornPrime commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1355201302
Added a link to https://github.com/apache/beam/issues/22742#issuecomment-1218216468 to the wiki, which seems to resolve the issue in many cases and is the closest thing we have to a solution at this point. If that doesn't work for them, hopefully the discussion on the issue will help or they can contribute their own experience to the discussion.
--
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] demongolem-biz commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
demongolem-biz commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1295370371
No I hadn't and that did get me past that particular error with protobuf 3.20.3 installed. Yes now I can successfully run on my own provided .txt file. 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
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [beam] tvalentyn commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1290969613
cc: @BjornPrime who encountered a similar issue on an M1 machine.
--
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] tvalentyn commented on issue #23758: [Bug]: Cannot run Python wordcount quickstart example, ModuleNotFoundError
Posted by GitBox <gi...@apache.org>.
tvalentyn commented on issue #23758:
URL: https://github.com/apache/beam/issues/23758#issuecomment-1298953060
(you can communicate the M1 workarounds there)
--
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