You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Steve Niemitz <sn...@apache.org> on 2021/10/19 18:13:08 UTC

Running python tests in an IDE (IntelliJ, PyCharm)

Has anyone gotten the beam python sdk tests running in an IDE (I'm
specifically trying with IntelliJ/PyCharm)?  I didn't see anything on the
wiki about it and haven't gotten it working yet.

Re: Running python tests in an IDE (IntelliJ, PyCharm)

Posted by Udi Meiri <eh...@google.com>.
You're not far off. Here are our official instructions:
https://cwiki-test.apache.org/confluence/display/BEAM/Python+Tips#PythonTips-VirtualEnvironmentSetup

On Tue, Oct 19, 2021 at 12:28 PM Steve Niemitz <sn...@apache.org> wrote:

> I eventually got it working by `pip install -e .` into my beam dev virtual
> env.  Otherwise I was getting a lot of errors around source roots not being
> found, weird problems with packages shadowing builtin names (io, etc) and
> others.  Are there setup instructions anywhere like the java side for the
> "right" way to do it?
>
> On Tue, Oct 19, 2021 at 3:23 PM Svetak Sundhar <sv...@google.com>
> wrote:
>
>> Yes, I was able to. Specifically, are you having trouble running
>> individual unit tests? If so, what errors are you getting?
>>
>>
>> Svetak Sundhar
>>
>>   Technical Solutions Engineer, Data
>> s <ne...@google.com>vetaksundhar@google.com
>>
>>
>>
>> On Tue, Oct 19, 2021 at 2:13 PM Steve Niemitz <sn...@apache.org>
>> wrote:
>>
>>> Has anyone gotten the beam python sdk tests running in an IDE (I'm
>>> specifically trying with IntelliJ/PyCharm)?  I didn't see anything on the
>>> wiki about it and haven't gotten it working yet.
>>>
>>

Re: Running python tests in an IDE (IntelliJ, PyCharm)

Posted by Steve Niemitz <sn...@apache.org>.
I eventually got it working by `pip install -e .` into my beam dev virtual
env.  Otherwise I was getting a lot of errors around source roots not being
found, weird problems with packages shadowing builtin names (io, etc) and
others.  Are there setup instructions anywhere like the java side for the
"right" way to do it?

On Tue, Oct 19, 2021 at 3:23 PM Svetak Sundhar <sv...@google.com>
wrote:

> Yes, I was able to. Specifically, are you having trouble running
> individual unit tests? If so, what errors are you getting?
>
>
> Svetak Sundhar
>
>   Technical Solutions Engineer, Data
> s <ne...@google.com>vetaksundhar@google.com
>
>
>
> On Tue, Oct 19, 2021 at 2:13 PM Steve Niemitz <sn...@apache.org> wrote:
>
>> Has anyone gotten the beam python sdk tests running in an IDE (I'm
>> specifically trying with IntelliJ/PyCharm)?  I didn't see anything on the
>> wiki about it and haven't gotten it working yet.
>>
>

Re: Running python tests in an IDE (IntelliJ, PyCharm)

Posted by Svetak Sundhar <sv...@google.com>.
Yes, I was able to. Specifically, are you having trouble running individual
unit tests? If so, what errors are you getting?


Svetak Sundhar

  Technical Solutions Engineer, Data
s <ne...@google.com>vetaksundhar@google.com



On Tue, Oct 19, 2021 at 2:13 PM Steve Niemitz <sn...@apache.org> wrote:

> Has anyone gotten the beam python sdk tests running in an IDE (I'm
> specifically trying with IntelliJ/PyCharm)?  I didn't see anything on the
> wiki about it and haven't gotten it working yet.
>