Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.python > #10969

Bug#909990: Stange import error for nibabel when trying to import from .pybuild

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Andreas Tille <andreas@an3as.eu>
Newsgroups linux.debian.bugs.dist, linux.debian.maint.python
Subject Bug#909990: Stange import error for nibabel when trying to import from .pybuild
Date Mon, 08 Oct 2018 15:40:01 +0200
Message-ID <wGDVn-7T2-1@gated-at.bofh.it> (permalink)
References <wDT0B-87w-15@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Mon Oct 8 13:39:12 2018
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -2.05
Reply-To Andreas Tille <andreas@an3as.eu>, 909990@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc NeuroDebian Team <team@neuro.debian.net>
X-Debian-Pr-Message followup 909990
X-Debian-Pr-Package src:nibabel
X-Debian-Pr-Keywords ftbfs
X-Debian-Pr-Source nibabel
X-Spam-Bayes score:0.0000 Tokens: new, 33; hammy, 150; neutral, 73; spammy, 0. spammytokens: hammytokens:0.000-+--python3, 0.000-+--sk:salsa.d, 0.000-+--sk:salsad, 0.000-+--UD:salsa.debian.org, 0.000-+--salsadebianorg
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent NeoMutt/20170113 (1.7.2)
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1490220
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 56
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Mon, 8 Oct 2018 15:38:10 +0200
X-Original-Message-ID <20181008133810.eonf3xod422w4w37@an3as.eu>
X-Original-References <E1g6kki-0006jJ-DW@paradis.debian.org>
Xref csiph.com linux.debian.bugs.dist:921524 linux.debian.maint.python:10969

Cross-posted to 2 groups.

Show key headers only | View raw


Hi,

to see what I can do about bug #909990 I've imported the latest version
into the packaging Git[1].  When beeing inside the main dir of the Git
repository I can easily do

neurodebian-team/pynifti(debian) $ python3
Python 3.6.6 (default, Jun 27 2018, 14:44:17) 
[GCC 8.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nibabel
>>>

However, if I try inside the .pybuild dir I get:

/build/nibabel-2.3.0/.pybuild/cpython3_3.6_nibabel/build# python3.6
Python 3.6.7rc1 (default, Sep 27 2018, 09:51:25) 
[GCC 8.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import nibabel
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/build/nibabel-2.3.0/.pybuild/cpython3_3.6_nibabel/build/nibabel/__init__.py", line 45, in <module>
    from .loadsave import load, save
  File "/build/nibabel-2.3.0/.pybuild/cpython3_3.6_nibabel/build/nibabel/loadsave.py", line 18, in <module>
    from .imageclasses import all_image_classes
  File "/build/nibabel-2.3.0/.pybuild/cpython3_3.6_nibabel/build/nibabel/imageclasses.py", line 16, in <module>
    from .minc1 import Minc1Image
  File "/build/nibabel-2.3.0/.pybuild/cpython3_3.6_nibabel/build/nibabel/minc1.py", line 20, in <module>
    from .deprecated import FutureWarningMixin
ImportError: cannot import name 'FutureWarningMixin'
>>>      


This leads to errors when the build process is trying to create the
docs via

  export PYTHONPATH=`pybuild --print build_dir --interpreter python3` ; \
  cd doc && /usr/bin/make html-only

(which triggers exactly the above error message).

Any idea what might went wrong here?  Its definitely not the slightly
different Python 3.6 version - I tried a local build using 3.6.6 with
the very same effect.

Kind regards

       Andreas.

[1] Vcs-Git: https://salsa.debian.org/neurodebian-team/pynifti.git -b debian
    (yes, I switched to Branch debian instead of current package 2.3.0-1
     which has non-default Branch dist/debian/proper)

-- 
http://fam-tille.de

Back to linux.debian.maint.python | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#909990: Stange import error for nibabel when trying to import from .pybuild Andreas Tille <andreas@an3as.eu> - 2018-10-08 15:40 +0200
  Bug#909990: Stange import error for nibabel when trying to import from .pybuild Yaroslav Halchenko <debian@onerussian.com> - 2018-10-08 17:30 +0200

csiph-web