Bug#663235: fails to import an existing directory as a new project -- AttributeError: 'NoneType' object has no attribute 'rfind'

Yaroslav Halchenko debian at onerussian.com
Fri Mar 9 17:29:29 UTC 2012


Package: spyder
Version: 2.1.8-1
Severity: normal


Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/projectexplorer.py", line 830, in import_existing_directory
    self.add_project(folder)
  File "/usr/lib/python2.7/dist-packages/spyderlib/widgets/projectexplorer.py", line 686, in add_project
    shutil.copytree(folder, dst)
  File "/usr/lib/python2.7/shutil.py", line 175, in copytree
    os.makedirs(dst)
  File "/usr/lib/python2.7/os.py", line 145, in makedirs
    head, tail = path.split(name)
  File "/usr/lib/python2.7/posixpath.py", line 83, in split
    i = p.rfind('/') + 1
AttributeError: 'NoneType' object has no attribute 'rfind'


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (300, 'experimental')
Architecture: amd64 (x86_64)

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

Versions of packages spyder depends on:
ii  python            2.7.2-9
ii  python-spyderlib  2.1.8-1

spyder recommends no packages.

spyder suggests no packages.

Versions of packages python-spyderlib depends on:
ii  libjs-sphinxdoc  1.1.2+dfsg-4
ii  python           2.7.2-9     
ii  python-qt4       4.9-2       
ii  python2.6        2.6.7-4     
ii  python2.7        2.7.2-8     

Versions of packages python-spyderlib recommends:
ii  ipython            0.10.2-1        
ii  pep8               0.6.1-2         
ii  pyflakes           0.5.0-1         
ii  pylint             0.24.0-1        
ii  python-matplotlib  1.1.0-1         
ii  python-numpy       1:1.5.1-4       
ii  python-rope        0.9.2-1         
ii  python-scipy       0.9.0+dfsg1-1+b2
ii  python-sphinx      1.1.2+dfsg-4    

Versions of packages python-qt4 depends on:
ii  libc6                     2.13-18           
ii  libgcc1                   1:4.6.1-4         
ii  libpython2.7              2.7.2-8           
ii  libqt4-dbus               4:4.7.3-5         
ii  libqt4-declarative        4:4.7.3-5         
ii  libqt4-designer           4:4.7.3-5         
ii  libqt4-help               4:4.7.3-5         
ii  libqt4-network            4:4.7.3-5         
ii  libqt4-script             4:4.7.3-5         
ii  libqt4-scripttools        4:4.7.3-5         
ii  libqt4-svg                4:4.7.3-5         
ii  libqt4-test               4:4.7.3-5         
ii  libqt4-xml                4:4.7.3-5         
ii  libqt4-xmlpatterns        4:4.7.3-5         
ii  libqtassistantclient4     4.6.3-3           
ii  libqtcore4                4:4.7.3-5         
ii  libqtgui4                 4:4.7.3-5         
ii  libqtwebkit4              2.1.0~2011week13-2
ii  libstdc++6                4.6.1-4           
ii  python                    2.7.2-9           
ii  python-sip [sip-api-8.1]  4.12.4-1          
ii  python2.6                 2.6.7-4           
ii  python2.7                 2.7.2-8           

Versions of packages python-qt4 suggests:
pn  python-qt4-dbg  <none>

-- no debconf information





More information about the debian-science-maintainers mailing list