[From nobody Tue May 26 11:13:10 2026
Received: (at submit) by bugs.debian.org; 22 Jul 2020 11:26:32 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.2-bugs.debian.org_2005_01_02
 (2018-09-13) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-17.4 required=4.0 tests=BAYES_00,
 FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,
 FROMDEVELOPER,HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_NONE,
 RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham
 autolearn_force=no version=3.4.2-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 21; hammy, 123; neutral, 53; spammy,
 1. spammytokens:0.953-+--receiving hammytokens:0.000-+--H*r:TLS1_3,
 0.000-+--shachnev, 0.000-+--Shachnev,
 0.000-+--Hx-spam-relays-external:sk:mitya57, 0.000-+--qtcore
Return-path: &lt;mitya57@gmail.com&gt;
Received: from mail-lj1-f173.google.com ([209.85.208.173]:35376)
 by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.92) (envelope-from &lt;mitya57@gmail.com&gt;) id 1jyCtM-0007j3-M6
 for submit@bugs.debian.org; Wed, 22 Jul 2020 11:26:32 +0000
Received: by mail-lj1-f173.google.com with SMTP id q4so2107965lji.2
 for &lt;submit@bugs.debian.org&gt;; Wed, 22 Jul 2020 04:26:32 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:date:from:to:subject:message-id:mime-version
 :content-disposition;
 bh=jFtHOJyM6Gxhk2mByDQyJThop0l8ssBRcER+QY8tqRU=;
 b=HTA5bnzEeO0hPcnGcZpoHBaYj42T0C2ARhfDPj0UMp+U7/RMknkUymoiee60acTIjR
 dyk0YhdrmeOKf3LNoPfd2qLSfcxk1oTSI0e9kcqlfPOoQobCDo+demtS/+PXw8fjKT8X
 D3fUSJX9xpFzejGX4mPtqotW/T29r67iRQxSWsJkxRj16GIeTEv4mGijYmw0OajdisDP
 039RiEJtU/LH3NR1HQMT6m3X6k+EYGhU+sfDLjMXE4F2KFwfl29EUbt/nUhWCZtmWMqY
 +k6lTtWuOP+rbRq2zHXM7/Y7hldpsdLxgHO4QVC3hzJZMIPu5TpnrTmAFNlupQ6DWLAD
 Anyg==
X-Gm-Message-State: AOAM532ESeoZZZeW/LnbzjoTFUFppeOwF0qQCpe/79xn5mlMCe25JvBJ
 CslfkORdwu9lNGQ6NJdmVYUCOAGDODY=
X-Google-Smtp-Source: ABdhPJyKys5w/BH/YMWHuVPkENmPc81bgA7glth0FpD7eIE54hA6LlZIaVqcUKqahu57bSyCZoREUQ==
X-Received: by 2002:a2e:8316:: with SMTP id a22mr14092823ljh.246.1595417189519; 
 Wed, 22 Jul 2020 04:26:29 -0700 (PDT)
Received: from mitya57.me (109-252-15-151.nat.spd-mgts.ru. [109.252.15.151])
 by smtp.gmail.com with ESMTPSA id l1sm6530842ljc.65.2020.07.22.04.26.28
 for &lt;submit@bugs.debian.org&gt;
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 22 Jul 2020 04:26:28 -0700 (PDT)
Date: Wed, 22 Jul 2020 14:26:26 +0300
From: Dmitry Shachnev &lt;mitya57@debian.org&gt;
To: submit@bugs.debian.org
Subject: code-saturne: Uses old name of sip module
Message-ID: &lt;20200722112626.GA291627@mitya57.me&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Delivered-To: submit@bugs.debian.org

Source: code-saturne
Version: 6.0.2-2
Usertags: sip5

Dear Maintainer,

You are receiving this bug because your package seems to be using PyQt5
and has Python files with &quot;import sip&quot; lines.

With the latest version of PyQt5 in experimental, the private sip module
used by PyQt5 is called &quot;PyQt5.sip&quot;, not just &quot;sip&quot;. I am going to upload
this version to unstable around end of August.

You may need to update your imports to do something like this:

try:
    from PyQt5 import sip
except ModuleNotFoundError:
    import sip

Alternatively, you may import sip after importing PyQt5. So the following
will work too:

from PyQt5 import QtCore
import sip

Please see the following link for details:

https://www.riverbankcomputing.com/static/Docs/PyQt5/incompatibilities.html#importing-the-sip-module

If you use sip for reasons unrelated to PyQt5, you may leave the old import
as is, but please bear in mind that sip4 is deprecated.

Also, calls like &quot;sip.setapi('QDate', 2)&quot; are not needed at all with PyQt5.
They were needed only with PyQt4 and Python 2. It is safe to delete them.

For the actual documentation of sip module, see the following link:

https://www.riverbankcomputing.com/static/Docs/PyQt5/api/sip/sip-module.html

--
Dmitry Shachnev
]