← Back to team overview

pyneighborhood team mailing list archive

[Bug 846882] Re: Exception in thread: TypeError: 'NoneType' object is not subscriptable

 

Please fix your /etc/samba/smb.conf, "testparm" is your friend!

-- 
You received this bug notification because you are a member of
pyNeighborhood, which is a bug assignee.
https://bugs.launchpad.net/bugs/846882

Title:
  Exception in thread:  TypeError: 'NoneType' object is not
  subscriptable

Status in pyNeighborhood:
  Incomplete

Bug description:
  Reported in
  https://answers.launchpad.net/pyneighborhood/+question/170801:

  I am using Ubuntu 11.04, I can browse Windows shares using Gigolo and copy files from my fileserver running Server 2008.
  Installed 0.5.1 using Synaptic ( the repository is still not updated), and could not browse Windows share ( file manager is Thunar)
  Updated to 0.5.4, still cannot browse shares, the error is consistent after rebooting.
  When I enter the URL, IP and share name, I get a generic error: TypeError: 'NoneType' object is not subscriptable

  ed@whitebox:~/Desktop$ pyNeighborhood
  Exception in thread Thread-1:
  Traceback (most recent call last):
    File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner
      self.run()
    File "/usr/lib/pymodules/python2.7/pyneighborhood/browsing.py", line 56, in run
      workgroup, workgroupid = query_workgroup(master)
    File "/usr/lib/pymodules/python2.7/pyneighborhood/nmblookup.py", line 114, in query_workgroup
      return (workgroup, cursor.fetchone()[0])
  TypeError: 'NoneType' object is not subscriptable

  Traceback (most recent call last):
    File "/usr/lib/pymodules/python2.7/pyneighborhood/addwindow.py", line 113, in response_handler
      query_workgroup(ip, True)
    File "/usr/lib/pymodules/python2.7/pyneighborhood/nmblookup.py", line 114, in query_workgroup
      return (workgroup, cursor.fetchone()[0])
  TypeError: 'NoneType' object is not subscriptable

To manage notifications about this bug go to:
https://bugs.launchpad.net/pyneighborhood/+bug/846882/+subscriptions


References