[SciPy-User] scipy.pkgload() error

Ralf Gommers ralf.gommers@googlemail....
Mon Jul 30 14:52:01 CDT 2012


On Thu, Jul 26, 2012 at 9:56 PM, Johann Rohwer <jr@sun.ac.za> wrote:

> 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?
>

Must have been broken by e11bf1d24. Now scipy.pkgload() is just an alias
for numpy.pkgload(), which simply looks broken.

My proposal would be to delete pkgload from the scipy namespace.

Ralf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/scipy-user/attachments/20120730/51dc5f88/attachment.html 


More information about the SciPy-User mailing list