[Numpy-discussion] Trouble using f2py on successful numpy build from SVN (1.0.5 dev4951)
Joshua Lippai
discerptor@gmail....
Mon Mar 31 09:11:41 CDT 2008
Ah, good call. I did previously have an easy_install of numpy but I
assumed the setup.py install would just overwrite anything from that
install outside the site-packages folder. Thanks. Is there anything
else I might run into as a side effect of my sloppiness?
Josh
On Mon, Mar 31, 2008 at 2:10 AM, Robert Kern <robert.kern@gmail.com> wrote:
>
> On Mon, Mar 31, 2008 at 12:45 AM, Joshua Lippai <discerptor@gmail.com> wrote:
> > I am using Mac OS X 10.5.2, with Python 2.5.2. My build output for
> > NumPy is clean and successful and my numpy.test produces no errors or
> > failures, but when I type f2py from Terminal, I get the following:
> >
> > $ f2py
> > Traceback (most recent call last):
> > File "/Library/Frameworks/Python.framework/Versions/Current/bin/f2py",
> > line 5, in <module>
> > pkg_resources.run_script('numpy==1.0.5.dev4951', 'f2py')
> > File "build/bdist.macosx-10.3-i386/egg/pkg_resources.py", line 448,
> > in run_script
> > File "build/bdist.macosx-10.3-i386/egg/pkg_resources.py", line 1160,
> > in run_script
> > pkg_resources.ResolutionError: No script named 'f2py'
> >
> > Any ideas what could be up here?
>
> Exactly how did you install numpy? Did you use easy_install? What does
> the egg directory look like? For example inside my egg, there is a
> subdirectory called EGG-INFO/ which has another subdirectory called
> scripts/ which has the actual f2py script.
>
> [scripts]$ pwd
> /Library/Frameworks/Python.framework/Versions/Current/lib/python2.5/site-packages/numpy-1.0.5.dev4951-py2.5-macosx-10.3-fat.egg/EGG-INFO/scripts
> [scripts]$ ls
> f2py
>
> This is what the bootstrap script installed to /Library/.../bin/f2py
> is looking for.
>
> If you did not intend to install an egg of numpy, this might be a
> leftover from a previous try. Delete the /Library/.../bin/f2py script
> and install numpy again.
>
> --
> Robert Kern
>
> "I have come to believe that the whole world is an enigma, a harmless
> enigma that is made terrible by our own mad attempt to interpret it as
> though it had an underlying truth."
> -- Umberto Eco
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion@scipy.org
> http://projects.scipy.org/mailman/listinfo/numpy-discussion
>
More information about the Numpy-discussion
mailing list