You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beam.apache.org by Elliotte Rusty Harold <el...@ibiblio.org> on 2019/11/18 18:45:43 UTC

Python tests and setup

My Python tests are now failing like so with a simple .gradlew check
and a clean checkout:

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sdks:python:test-suites:tox:py36:setupVirtualenv'.
> Process 'command 'virtualenv'' finished with non-zero exit value 1

Any suggestions?

The setup instructions on github do not appear to be up to date. See
https://issues.apache.org/jira/browse/BEAM-8735
It wouldn't be a surprise if there  are other missing steps to be followed.

Related, is there a way to run all the Java tests and only the Java tests?

-- 
Elliotte Rusty Harold
elharo@ibiblio.org

Re: Python tests and setup

Posted by Udi Meiri <eh...@google.com>.
I've been looking at using pyenv in the past few days.
I've also had a broken 3.6.8 install on my machine for a while now, but
using pyenv I managed to install 3.6.9 with little difficulty:
pyenv install 3.6.9
PYENV_VERSION=3.6.9 ./gradlew
:sdks:python:test-suites:tox:py36:setupVirtualenv

(You can also use "pyenv global 3.6.9" instead setting an environment
variable.)

On Fri, Nov 22, 2019 at 9:05 AM Tomo Suzuki <su...@google.com> wrote:

> I resolved my Python3.6 problem by installing Python3.6 from source:
> https://issues.apache.org/jira/browse/BEAM-8787#comment-16979785
>
> On Mon, Nov 18, 2019 at 1:49 PM Elliotte Rusty Harold <el...@ibiblio.org>
> wrote:
>
>> and probably related to that:
>>
>> https://github.com/pyinstaller/pyinstaller/issues/4064
>>
>> On Mon, Nov 18, 2019 at 1:47 PM Elliotte Rusty Harold
>> <el...@ibiblio.org> wrote:
>> >
>> > Probably related:
>> >
>> >
>> > > Task :sdks:python:test-suites:tox:py36:setupVirtualenv FAILED
>> > Traceback (most recent call last):
>> >   File "/usr/lib/python3/dist-packages/virtualenv.py", line 25, in
>> <module>
>> >     import distutils.sysconfig
>> > ModuleNotFoundError: No module named 'distutils.sysconfig'
>> > Running virtualenv with interpreter /usr/bin/python3.6
>> >
>> > On Mon, Nov 18, 2019 at 1:45 PM Elliotte Rusty Harold
>> > <el...@ibiblio.org> wrote:
>> > >
>> > > My Python tests are now failing like so with a simple .gradlew check
>> > > and a clean checkout:
>> > >
>> > > FAILURE: Build failed with an exception.
>> > >
>> > > * What went wrong:
>> > > Execution failed for task
>> ':sdks:python:test-suites:tox:py36:setupVirtualenv'.
>> > > > Process 'command 'virtualenv'' finished with non-zero exit value 1
>> > >
>> > > Any suggestions?
>> > >
>> > > The setup instructions on github do not appear to be up to date. See
>> > > https://issues.apache.org/jira/browse/BEAM-8735
>> > > It wouldn't be a surprise if there  are other missing steps to be
>> followed.
>> > >
>> > > Related, is there a way to run all the Java tests and only the Java
>> tests?
>> > >
>> > > --
>> > > Elliotte Rusty Harold
>> > > elharo@ibiblio.org
>> >
>> >
>> >
>> > --
>> > Elliotte Rusty Harold
>> > elharo@ibiblio.org
>>
>>
>>
>> --
>> Elliotte Rusty Harold
>> elharo@ibiblio.org
>>
>
>
> --
> Regards,
> Tomo
>

Re: Python tests and setup

Posted by Tomo Suzuki <su...@google.com>.
I resolved my Python3.6 problem by installing Python3.6 from source:
https://issues.apache.org/jira/browse/BEAM-8787#comment-16979785

On Mon, Nov 18, 2019 at 1:49 PM Elliotte Rusty Harold <el...@ibiblio.org>
wrote:

> and probably related to that:
>
> https://github.com/pyinstaller/pyinstaller/issues/4064
>
> On Mon, Nov 18, 2019 at 1:47 PM Elliotte Rusty Harold
> <el...@ibiblio.org> wrote:
> >
> > Probably related:
> >
> >
> > > Task :sdks:python:test-suites:tox:py36:setupVirtualenv FAILED
> > Traceback (most recent call last):
> >   File "/usr/lib/python3/dist-packages/virtualenv.py", line 25, in
> <module>
> >     import distutils.sysconfig
> > ModuleNotFoundError: No module named 'distutils.sysconfig'
> > Running virtualenv with interpreter /usr/bin/python3.6
> >
> > On Mon, Nov 18, 2019 at 1:45 PM Elliotte Rusty Harold
> > <el...@ibiblio.org> wrote:
> > >
> > > My Python tests are now failing like so with a simple .gradlew check
> > > and a clean checkout:
> > >
> > > FAILURE: Build failed with an exception.
> > >
> > > * What went wrong:
> > > Execution failed for task
> ':sdks:python:test-suites:tox:py36:setupVirtualenv'.
> > > > Process 'command 'virtualenv'' finished with non-zero exit value 1
> > >
> > > Any suggestions?
> > >
> > > The setup instructions on github do not appear to be up to date. See
> > > https://issues.apache.org/jira/browse/BEAM-8735
> > > It wouldn't be a surprise if there  are other missing steps to be
> followed.
> > >
> > > Related, is there a way to run all the Java tests and only the Java
> tests?
> > >
> > > --
> > > Elliotte Rusty Harold
> > > elharo@ibiblio.org
> >
> >
> >
> > --
> > Elliotte Rusty Harold
> > elharo@ibiblio.org
>
>
>
> --
> Elliotte Rusty Harold
> elharo@ibiblio.org
>


-- 
Regards,
Tomo

Re: Python tests and setup

Posted by Elliotte Rusty Harold <el...@ibiblio.org>.
and probably related to that:

https://github.com/pyinstaller/pyinstaller/issues/4064

On Mon, Nov 18, 2019 at 1:47 PM Elliotte Rusty Harold
<el...@ibiblio.org> wrote:
>
> Probably related:
>
>
> > Task :sdks:python:test-suites:tox:py36:setupVirtualenv FAILED
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/virtualenv.py", line 25, in <module>
>     import distutils.sysconfig
> ModuleNotFoundError: No module named 'distutils.sysconfig'
> Running virtualenv with interpreter /usr/bin/python3.6
>
> On Mon, Nov 18, 2019 at 1:45 PM Elliotte Rusty Harold
> <el...@ibiblio.org> wrote:
> >
> > My Python tests are now failing like so with a simple .gradlew check
> > and a clean checkout:
> >
> > FAILURE: Build failed with an exception.
> >
> > * What went wrong:
> > Execution failed for task ':sdks:python:test-suites:tox:py36:setupVirtualenv'.
> > > Process 'command 'virtualenv'' finished with non-zero exit value 1
> >
> > Any suggestions?
> >
> > The setup instructions on github do not appear to be up to date. See
> > https://issues.apache.org/jira/browse/BEAM-8735
> > It wouldn't be a surprise if there  are other missing steps to be followed.
> >
> > Related, is there a way to run all the Java tests and only the Java tests?
> >
> > --
> > Elliotte Rusty Harold
> > elharo@ibiblio.org
>
>
>
> --
> Elliotte Rusty Harold
> elharo@ibiblio.org



-- 
Elliotte Rusty Harold
elharo@ibiblio.org

Re: Python tests and setup

Posted by Elliotte Rusty Harold <el...@ibiblio.org>.
Probably related:


> Task :sdks:python:test-suites:tox:py36:setupVirtualenv FAILED
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 25, in <module>
    import distutils.sysconfig
ModuleNotFoundError: No module named 'distutils.sysconfig'
Running virtualenv with interpreter /usr/bin/python3.6

On Mon, Nov 18, 2019 at 1:45 PM Elliotte Rusty Harold
<el...@ibiblio.org> wrote:
>
> My Python tests are now failing like so with a simple .gradlew check
> and a clean checkout:
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':sdks:python:test-suites:tox:py36:setupVirtualenv'.
> > Process 'command 'virtualenv'' finished with non-zero exit value 1
>
> Any suggestions?
>
> The setup instructions on github do not appear to be up to date. See
> https://issues.apache.org/jira/browse/BEAM-8735
> It wouldn't be a surprise if there  are other missing steps to be followed.
>
> Related, is there a way to run all the Java tests and only the Java tests?
>
> --
> Elliotte Rusty Harold
> elharo@ibiblio.org



-- 
Elliotte Rusty Harold
elharo@ibiblio.org