Re: ImportError: __import__ not found on python job

2021-12-08 Thread Steve Niemitz
hm, interesting, are we using pybind anywhere? I didn't see any references to it. I can give it a try on python 3.8 too though. On Wed, Dec 8, 2021 at 9:19 AM Brian Hulette wrote: > A google search for "__import__ not found" turned up an issue filed with > pybind [1]. I can't deduce a root cau

Re: ImportError: __import__ not found on python job

2021-12-08 Thread Steve Niemitz
Yeah, I can't imagine this is a "normal" problem. I'm on linux w/ py 3.7. My script does have a __name__ == '__main__' block. On Wed, Dec 8, 2021 at 12:38 AM Ning Kang wrote: > I tried a pipeline: > > p = beam.Pipeline(DataflowRunner(), options=options) > text = p | beam.Create(['Hello World,

ImportError: __import__ not found on python job

2021-12-07 Thread Steve Niemitz
I have a fairly simple python word count job (although the packaging is a little more complicated) that I'm trying to run. (note: I'm explicitly NOT using save_main_session.) In it is a method to tokenize the incoming text to words, and I used something similar to how the wordcount example worked