After upgrading my scipy installation to the latest source form git,
scipy.pkgload() no longer works and gives the following traceback:
In [2]: scipy.pkgload()
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-2-5383005a8d36> in <module>()
----> 1 scipy.pkgload()
/usr/local/lib/python2.7/dist-packages/numpy/__init__.pyc in
pkgload(*packages, **options)
132
133 def pkgload(*packages, **options):
--> 134 loader = PackageLoader(infunc=True)
135 return loader(*packages, **options)
136
/usr/local/lib/python2.7/dist-packages/numpy/_import_tools.pyc in
__init__(self, verbose, infunc)
15 self.parent_frame = frame = sys._getframe(_level)
16 self.parent_name =
eval('__name__',frame.f_globals,frame.f_locals)
---> 17 parent_path = eval('__path__',frame.f_globals,frame.f_locals)
18 if isinstance(parent_path, str):
19 parent_path = [parent_path]
<string> in <module>()
NameError: name '__path__' is not defined
In [3]: scipy.__version__
Out[3]: '0.12.0.dev-8e918cd'
------------------------------------------------------------------------------
I see the pkgload() method is actually called from within numpy (and not
scipy, although it's called from scipy), but am not sure whether this is
expected. Any ideas?
--Johann