Path: csiph.com!fu-berlin.de!bofh.it!news.nic.it!robomod From: =?UTF-8?B?SsOpcsOpbXkgTGFs?= Newsgroups: linux.debian.maint.python Subject: Re: sphinx-build module not found in sbuild Date: Mon, 08 Jan 2024 14:00:01 +0100 Message-ID: References: X-Mailbox-Line: From debian-python-request@lists.debian.org Mon Jan 8 12:52:09 2024 Old-Return-Path: X-Amavis-Spam-Status: No, score=-5.658 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, BODY_8BITS=1.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.25, HTML_MESSAGE=2, LDO_WHITELIST=-5, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate:hard: -5.5 X-Gm-Message-State: AOJu0YxAcMOVX6lMosBDuGxpwcrGN3SRR/frZYkdjOQ1llTig4ETJkpK xBmEGybDSvHwMABNvFc+vB2uQeL6RlJqrLq1GoQ1hqJFpzhx X-Google-SMTP-Source: AGHT+IHT0Mr1sAdG8MSdKPA+icudYG+ZSLMADTbTwtUHgaPJPyKyNGA8PMHHqrAmUScGPr2ktX8B8IATo3NOR8c/AOM= X-Received: by 2002:a0d:c306:0:b0:5d7:1940:b377 with SMTP id f6-20020a0dc306000000b005d71940b377mr2181998ywd.67.1704718305384; Mon, 08 Jan 2024 04:51:45 -0800 (PST) MIME-Version: 1.0 X-Gmail-Original-Message-ID: Content-Type: multipart/alternative; boundary="00000000000008edd3060e6ea9ae" X-Av-Checked: ClamAV using ClamSMTP at svoboda.polytechnique.org (Mon Jan 8 13:51:46 2024 +0100 (CET)) X-Org-Mail: jeremy.lal.1997@polytechnique.org X-Mailing-List: archive/latest/21350 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/CAJxTCxw4Lv==ZGYTKGkyoMtrC3itnOes=pKRvyfWsRaaP88_OQ@mail.gmail.com Approved: robomod@news.nic.it Lines: 63 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 8 Jan 2024 13:51:09 +0100 X-Original-Message-ID: X-Original-References: Xref: csiph.com linux.debian.maint.python:15400 --00000000000008edd3060e6ea9ae Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Le lun. 8 janv. 2024 =C3=A0 13:46, Julian Gilbey a =C3= =A9crit : > On Mon, Jan 08, 2024 at 01:22:54PM +0100, J=C3=A9r=C3=A9my Lal wrote: > > Hi, > > I'm stuck at this odd behavior: > > when I build a package in my current environment (debian/testing), > > sphinx-build ... works correctly. > > when building in sbuild, sphinx-build doesn't find current module: > > ModuleNotFoundError: No module named 'xxx' > > in docs/conf.py at > > from xxx import __version__ > > I don't understand which other debian package is modifying that outcome= . > > Any idea ? > > Perhaps your local build is importing from a globally-installed > version of the package? (For example, you're building version 1.3 of > python3-foo, but you already have version 1.2 of python3-foo > installed.) > Damn, that new package I'm working on already exists =EF=BD=A1=E2=80=A2=CC= =81=EF=B8=BF=E2=80=A2=CC=80=EF=BD=A1 --00000000000008edd3060e6ea9ae Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
Le=C2=A0lun. 8 janv. 2024 =C3=A0=C2= =A013:46, Julian Gilbey <julian@d-= and-j.net> a =C3=A9crit=C2=A0:
On Mon, Jan 08, 2024 at 01:22:54PM +0100, J=C3=A9r=C3= =A9my Lal wrote:
> Hi,
> I'm stuck at this odd behavior:
> when I build a=C2=A0package in my current environment (debian/testing)= ,
> sphinx-build ... works correctly.
> when building in sbuild, sphinx-build doesn't find current module:=
> ModuleNotFoundError: No module named 'xxx'
> in=C2=A0docs/conf.py at
> from xxx import __version__
> I don't understand which other debian package is modifying that ou= tcome.
> Any idea ?

Perhaps your local build is importing from a globally-installed
version of the package?=C2=A0 (For example, you're building version 1.3= of
python3-foo, but you already have version 1.2 of python3-foo
installed.)

Damn, that new package I= 9;m working on already exists =EF=BD=A1=E2=80=A2=CC=81=EF=B8=BF=E2=80=A2=CC= =80=EF=BD=A1
--00000000000008edd3060e6ea9ae--