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


Groups > comp.lang.python > #95798

AttributeError: 'module' object has no attribute '__path__'

Newsgroups comp.lang.python
Date 2015-08-31 12:29 -0700
Message-ID <97927258-d389-4bd6-a861-e122e4247ac0@googlegroups.com> (permalink)
Subject AttributeError: 'module' object has no attribute '__path__'
From kbtyo <ahlusar.ahluwalia@gmail.com>

Show all headers | View raw


I am using Jupyter notebooks, with Python 3.4. The error below references the Anaconda distribution package. This error occurred quite precipitously (only 2 minutes before I was able to import the modules). I am using Windows 7. My path in the console uses Python27. I also have python 34 as well. I am not sure where to start modifying the path and fear that I will break my initial setup. I welcome feedback on next steps.


---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
C:\Program Files\New\lib\importlib\_bootstrap.py in _find_and_load_unlocked(name, import_)

AttributeError: 'module' object has no attribute '__path__'

During handling of the above exception, another exception occurred:

ImportError                               Traceback (most recent call last)
<ipython-input-4-0ed85c3e8b64> in <module>()
      8 import fnmatch
      9 # import xml.etree.cElementTree as ElementTree
---> 10 from xml.etree.ElementTree import XMLParser
     11 import xml.etree.ElementTree as ElementTree
     12 import glob

ImportError: No module named 'xml.etree'; 'xml' is not a package

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

AttributeError: 'module' object has no attribute '__path__' kbtyo <ahlusar.ahluwalia@gmail.com> - 2015-08-31 12:29 -0700
  Re: AttributeError: 'module' object has no attribute '__path__' Laura Creighton <lac@openend.se> - 2015-08-31 22:17 +0200
  Re: AttributeError: 'module' object has no attribute '__path__' Laura Creighton <lac@openend.se> - 2015-09-01 00:15 +0200
    Re: AttributeError: 'module' object has no attribute '__path__' Rustom Mody <rustompmody@gmail.com> - 2015-08-31 20:32 -0700
      Re: AttributeError: 'module' object has no attribute '__path__' Chris Angelico <rosuav@gmail.com> - 2015-09-01 14:07 +1000

csiph-web