[petsc-dev] [petsc-users] PETSc Make error
Satish Balay
balay at mcs.anl.gov
Fri Jul 31 14:34:31 CDT 2020
Yes - [mentioned earlier in this thread] this check is in petsc-3.13.3
Satish
On Fri, 31 Jul 2020, Barry Smith wrote:
>
> If PETSc requires distutils.sysconfig then ./Configure should check for it and print a very useful error message if it does not find it.
>
> We can't have python crashes off at build time with confusing error messages that users cannot decipher.
>
> Barry
>
>
> > On Jul 31, 2020, at 11:00 AM, Satish Balay via petsc-users <petsc-users at mcs.anl.gov> wrote:
> >
> > You still get this error message - so its likely not installed. To confirm you [and the admin] can run:
> >
> > python3 -c "import distutils.sysconfig"
> >
> > [and see if you get an error or not]
> >
> > You can also try python2 as I suggested in my earlier e-mail [if distutils is installed for python2]
> >
> > python2 -c "import distutils.sysconfig"
> >
> > python2 ./configure ...
> >
> > Satish
> >
> >
> > On Fri, 31 Jul 2020, Eda Oktay wrote:
> >
> >> Dear Matt,
> >>
> >> Administrator installed python3-dib-utils but still I am getting the
> >> same error message. I attached configure.log and make.log again.
> >>
> >> Thanks!
> >>
> >> Eda
> >>
> >> Matthew Knepley <knepley at gmail.com>, 31 Tem 2020 Cum, 13:20 tarihinde
> >> şunu yazdı:
> >>>
> >>> On Fri, Jul 31, 2020 at 4:15 AM Eda Oktay <eda.oktay at metu.edu.tr> wrote:
> >>>>
> >>>> Dear Satish,
> >>>>
> >>>> I configured petsc-3.13.2. Is this still the same problem?
> >>>
> >>>
> >>> Yes, you need the distutils package installed.
> >>>
> >>> Thanks,
> >>>
> >>> Matt
> >>>
> >>>>
> >>>> Thanks!
> >>>>
> >>>> Eda
> >>>>
> >>>> On Fri, Jul 31, 2020, 10:50 AM Satish Balay <balay at mcs.anl.gov> wrote:
> >>>>>
> >>>>>
> >>>>>>>>>>>>>
> >>>>> File "./config/gmakegen.py", line 4, in <module>
> >>>>> from distutils.sysconfig import parse_makefile
> >>>>> ModuleNotFoundError: No module named 'distutils.sysconfig'
> >>>>> <<<<<
> >>>>>
> >>>>> For one - if you used petsc-3.13.3 - it would have also tried python2 - or given a reasonable error message.
> >>>>>
> >>>>> If you have python2 - you can try:
> >>>>>
> >>>>> python2 ./configure ...
> >>>>>
> >>>>> Or you can ask sysadmin on this machine to install python3-distutils or equivalent package.
> >>>>>
> >>>>> Satish
> >>>>>
> >>>>> On Fri, 31 Jul 2020, Eda Oktay wrote:
> >>>>>
> >>>>>> Hi all,
> >>>>>>
> >>>>>> I configured petsc-3.13.2 with following options:
> >>>>>>
> >>>>>> ./configure --with-cc=gcc --with-cxx=g++ --with-fc=gfortran
> >>>>>> --download-mpich --download-openblas --download-metis
> >>>>>> --download-parmetis --download-chaco --download-slepc --with-X=1
> >>>>>>
> >>>>>> However, I got a make error.
> >>>>>>
> >>>>>> I attached make.log and configure.log, how can I fix that problem?
> >>>>>>
> >>>>>> Thanks!
> >>>>>>
> >>>>>> Eda
> >>>>>>
> >>>>>
> >>>
> >>>
> >>> --
> >>> What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.
> >>> -- Norbert Wiener
> >>>
> >>> https://www.cse.buffalo.edu/~knepley/
> >>
>
More information about the petsc-dev
mailing list