Bug#631589: python-dolfin: python -c import dolfin fails with MPI error

2011-08-16 Thread Johannes Ring
Hi Luk,

thanks for the report and sorry for the late reply.

On Sat, Jun 25, 2011 at 7:57 AM, LUK ShunTim shuntim@polyu.edu.hk wrote:
 $ python -c import dolfin
 *** The MPI_comm_size() function was called before MPI_INIT was invoked.
 *** This is disallowed by the MPI standard.
 *** Your MPI job will now abort.

Does importing PyTrilinos before dolfin fix this problem for you? Try:

$ python -c import PyTrilinos;import dolfin

This fixes the problem for me.

Johannes



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#631589: python-dolfin: python -c import dolfin fails with MPI error

2011-08-16 Thread LUK ShunTim
On 08/16/2011 05:30 PM, Johannes Ring wrote:
 Hi Luk,
 
 thanks for the report and sorry for the late reply.
 
 On Sat, Jun 25, 2011 at 7:57 AM, LUK ShunTim shuntim@polyu.edu.hk wrote:
 $ python -c import dolfin
 *** The MPI_comm_size() function was called before MPI_INIT was invoked.
 *** This is disallowed by the MPI standard.
 *** Your MPI job will now abort.
 
 Does importing PyTrilinos before dolfin fix this problem for you? Try:
 
 $ python -c import PyTrilinos;import dolfin
 
 This fixes the problem for me.

Yes, it does.

 
 Johannes
 

Now an OT bug. :-)

I added the import PyTrilinos to demo_poisson.py and got a ufl.Form error.

$ python demo_poisson.py

Deprecated: ufl.Form has no properties '*_domains'.
To associate domains with a form, use dss = ds[mydomains]; a = f*dss(1).
Traceback (most recent call last):
  File demo_poisson.py, line 63, in module
problem = VariationalProblem(a, L, bc)
  File
/usr/lib/python2.6/dist-packages/dolfin/fem/variationalproblem.py,
line 64, in __init__
self.a = Form(a, form_compiler_parameters=form_compiler_parameters)
  File /usr/lib/python2.6/dist-packages/dolfin/fem/form.py, line 70,
in __init__
if form.cell_domains is not None:
  File /usr/lib/python2.6/dist-packages/ufl/form.py, line 58, in
_get_domains
self._trigger_domain_error()
  File /usr/lib/python2.6/dist-packages/ufl/form.py, line 56, in
_trigger_domain_error
error(msg)
  File /usr/lib/python2.6/dist-packages/ufl/log.py, line 148, in error
raise self._exception_type(self._format_raw(*message))
ufl.log.UFLException: Deprecated: ufl.Form has no properties '*_domains'.
To associate domains with a form, use dss = ds[mydomains]; a = f*dss(1).

I guess this will be fixed with the pending 1.0 release.

Regards,
ST
-- 







-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#631589: python-dolfin: python -c import dolfin fails with MPI error

2011-08-16 Thread Johannes Ring
On Tue, Aug 16, 2011 at 1:00 PM, LUK ShunTim shuntim@polyu.edu.hk wrote:
 Yes, it does.

Good. I will add import PyTrilinos at the top of dolfin/__init__.py
to make sure that it will be imported before dolfin.

 Now an OT bug. :-)

 I added the import PyTrilinos to demo_poisson.py and got a ufl.Form error.

 $ python demo_poisson.py

 Deprecated: ufl.Form has no properties '*_domains'.
 To associate domains with a form, use dss = ds[mydomains]; a = f*dss(1).
 Traceback (most recent call last):
  File demo_poisson.py, line 63, in module
    problem = VariationalProblem(a, L, bc)
  File
 /usr/lib/python2.6/dist-packages/dolfin/fem/variationalproblem.py,
 line 64, in __init__
    self.a = Form(a, form_compiler_parameters=form_compiler_parameters)
  File /usr/lib/python2.6/dist-packages/dolfin/fem/form.py, line 70,
 in __init__
    if form.cell_domains is not None:
  File /usr/lib/python2.6/dist-packages/ufl/form.py, line 58, in
 _get_domains
    self._trigger_domain_error()
  File /usr/lib/python2.6/dist-packages/ufl/form.py, line 56, in
 _trigger_domain_error
    error(msg)
  File /usr/lib/python2.6/dist-packages/ufl/log.py, line 148, in error
    raise self._exception_type(self._format_raw(*message))
 ufl.log.UFLException: Deprecated: ufl.Form has no properties '*_domains'.
 To associate domains with a form, use dss = ds[mydomains]; a = f*dss(1).

 I guess this will be fixed with the pending 1.0 release.

Yes, it's probably an incompatibility between ufl 1.0-beta2 and dolfin
0.9.11, and it should be fixed with the 1.0-beta release. I'm about to
prepare a RFS now.

Thanks,

Johannes



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#631589: python-dolfin: python -c import dolfin fails with MPI error

2011-06-25 Thread LUK ShunTim
Package: python-dolfin
Version: 0.9.11-1+b1
Severity: grave
Justification: renders package unusable

Hi,

Here's a transcript.

$ python -c import dolfin
*** The MPI_comm_size() function was called before MPI_INIT was invoked.
*** This is disallowed by the MPI standard.
*** Your MPI job will now abort.

Same error as reported in
https://answers.launchpad.net/dolfin/+question/152620
which was fixed in ubuntu ppa.

Please upload a fixed package for debian as well.

Regards,
ST
-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'gutsy')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.39-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_HK.UTF-8, LC_CTYPE=en_US.UTF8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages python-dolfin depends on:
ii  libamd2.2.0  1:3.4.0-2   approximate minimum degree orderin
ii  libarmadillo21.99.3+dfsg-1   streamlined C++ linear algebra lib
ii  libarpack2   2.1+parpack96.dfsg-3+b1 Fortran77 subroutines to solve lar
ii  libatlas3gf-base 3.8.4-3 Automatically Tuned Linear Algebra
ii  libblas3gf [libb 1.2-8   Basic Linear Algebra Reference imp
ii  libboost-filesys 1.46.1-6filesystem operations (portable pa
ii  libboost-program 1.46.1-6program options library for C++
ii  libboost-system1 1.46.1-6Operating system (e.g. diagnostics
ii  libboost-thread1 1.46.1-6portable C++ multi-threading
pn  libc6none  (no description available)
ii  libcamd2.2.0 1:3.4.0-2   symmetric approximate minimum degr
ii  libccolamd2.7.1  1:3.4.0-2   constrained column approximate lib
ii  libcholmod1.7.1  1:3.4.0-2   sparse Cholesky factorization libr
ii  libcolamd2.7.1   1:3.4.0-2   column approximate minimum degree
ii  libdolfin0   0.9.11-1+b1 shared libraries for DOLFIN
ii  libdolfin0-dev   0.9.11-1+b1 Shared links and header files for
ii  libgcc1  1:4.6.0-14  GCC support library
ii  libgomp1 4.6.0-14GCC OpenMP (GOMP) support library
ii  liblapack3gf [li 3.3.0-4 library of linear algebra routines
ii  libopenmpi1.31.4.3-2.1   high performance message passing l
ii  libpetsc3.1  3.1.dfsg-11 Shared libraries for version 3.1 o
ii  libptscotch-5.1  5.1.11.dfsg-7   MPI programs and libraries for gra
ii  libpython2.6 2.6.7-1 Shared Python runtime library (ver
ii  libpython2.7 2.7.2-1 Shared Python runtime library (ver
ii  libslepc3.1  3.1-p6.dfsg-1   Scalable Library for Eigenvalue Pr
ii  libstdc++6   4.6.0-14GNU Standard C++ Library v3
ii  libtrilinos  10.4.0.dfsg-1   parallel solver libraries within a
ii  libumfpack5.4.0  1:3.4.0-2   sparse LU factorization library
ii  libxml2  2.7.8.dfsg-3GNOME XML library
ii  python   2.6.6-14interactive high-level object-orie
ii  python-ffc   0.9.10-2compiler for finite element variat
ii  python-instant   0.9.10-1simple inlining of C / C++ code in
ii  python-numpy 1:1.5.1-2+b1Numerical Python adds a fast array
ii  python-pytrilino 10.4.0.dfsg-1   parallel solver libraries within a
ii  python-ufc   2.0.1-1 Python utilities (templates) for g
ii  python-ufl   0.9.1-1 unified language for form-compiler
ii  python-viper 0.4.7-2 minimalistic scientific plotter an
ii  python2.62.6.7-1 An interactive high-level object-o
ii  python2.72.7.2-1 An interactive high-level object-o
ii  swig2.0  2.0.4-2 Generate scripting interfaces to C
ii  zlib1g   1:1.2.3.4.dfsg-3compression library - runtime

python-dolfin recommends no packages.

Versions of packages python-dolfin suggests:
ii  dolfin-doc0.9.11-1   Documentation and demo programs fo

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org