Bug#1000950: python3-mshr: error processing line 3 of /usr/lib/python3/dist-packages/mshr.pth

2021-12-05 Thread Drew Parsons
Source: mshr
Followup-For: Bug #1000950

It's probably happening because petsc is not configured yet. I guess
you're installing mshr and petsc in the same installation step?
(i.e. petsc will be pulled in automatically as a dependency).

/usr/lib/petsc is an alternatives symlink, so it won't be available
until libpetsc-real3.15-dev has been processed and configured.

Can you confirm you *don't* get the mshr.pth warning if
libpetsc-real3.15-dev has been installed prior to installing mshr?

Can probably fix it with Pre-Depends instead of Depends.

Drew



Bug#1000950: python3-mshr: error processing line 3 of /usr/lib/python3/dist-packages/mshr.pth

2021-11-30 Thread Andrius Merkys
Package: python3-mshr
Version: 2019.2.0~git20200924.c27eb18+dfsg1-7

Hello,

When installing python3-mshr in clean sid chroot, the following message
is displayed multiple times:

"""
Error processing line 3 of /usr/lib/python3/dist-packages/mshr.pth:

  Traceback (most recent call last):
File "/usr/lib/python3.9/site.py", line 175, in addpackage
  exec(line)
File "", line 1, in 
  FileNotFoundError: [Errno 2] No such file or directory:
'/usr/lib/petsc/include/petscconf.h'

Remainder of file ignored
"""

Despite the message, python3-mshr seems to install successfully.
Nevertheless the message gives an impression of installation failure [1].

[1]
https://alioth-lists.debian.net/pipermail/debian-science-maintainers/2021-November/095683.html

Andrius