[f2py] installing f2py

Pearu Peterson pearu@cens.ioc.ee
Thu, 14 Feb 2002 22:06:02 +0200 (EET)


On Thu, 14 Feb 2002, SungPil Yoon wrote:

> Hi,
> 
> I am trying to install f2py on HP workstation. Now after I install f2py and try
> 
> Traceback (most recent call last):
>   File "/home/yoonseo/Python2.2/bin/f2py", line 4, in ?
>     import f2py2e
>   File "/home/yoonseo/Python2.2/lib/python2.2/site-packages/f2py2e/f2py2e.py", line 5, in ?
>     f2py2e.main()
> AttributeError: 'module' object has no attribute 'main'

> and they all give the same message. How can I solve this problem?

See if directory /home/yoonseo/Python2.2/bin/ contains files like
f2py2e.py or a link to it. Remove them (in fact, remove all f2py related
files that you find in this bin directory) and re-install the latest f2py.

Regards,
	Pearu