namedtuple is no package, you import it like this:
import  collections
collections.namedtuple("a", "b")

the traceback is  a local issue:
 File "collections.py", line 20, in <module>   
     import numpy as np
   File "/usr/local/lib/python2.7/dist-packages/numpy/__init__.py", line 137, 
in <module>

you have a collections.py in your working dir that gets imported instead of the 
system collections
that file then again imports a local numpy, not the system one
please be careful when filing bugs on this system, make sure its not a local 
installation interfering with the packaged ones

** Changed in: python-defaults (Ubuntu)
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/997046

Title:
  Trying to import namedtuple results in import error leading to
  downstream problems.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-defaults/+bug/997046/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to