[f2py] __version__ causing some problems in latest CVS
Pearu Peterson
pearu@cens.ioc.ee
Fri, 25 Jan 2002 15:29:24 +0200 (EET)
On Thu, 24 Jan 2002, eric wrote:
> Hey Pearu,
>
> I'm getting the following error when I try and run the latest f2py out of
> the CVS.
>
> C:\WINDOWS\SYSTEM32>f2py
> Traceback (most recent call last):
> File "C:\python21\Scripts\f2py.py", line 55, in ?
> f2py_version=f2py_version+eval(v[string.find(v,'.')+1:])
> File "C:\Python21\lib\string.py", line 171, in find
> return s.find(*args)
> AttributeError: '__version__' module has no attribute 'find'
You should not use f2py.py for running f2py. When you install f2py with
setup.py install
then the intallation script should create f2py.bat file under windows
(if f2py.bat does not work for some reasons, please, fix it and send me
the fixed version; I have never tried f2py.bat mayself).
Also you must remove f2py.py (under unices also f2py2e.py) file that was
created by earlier installations of f2py.
Pearu