Hello NG,

    I am using the latest Numpy release 1.0rc2 which includes F2PY. I
have switched to Python 2.5 so this is the only alternative I have
(IIUC). With Python 2.4, I was able to build a very simple fortran
extension without problems.

My extension contains 4 subroutines that scan a file and do simple operations.
Now, attempting to run the second subroutine as:

dprops, dwgnames, dunits = readsmspec.readsmspec(smspec, dimens)

Prompt a ValueError from Python:

  File "D:\MyProjects\Carolina\MainPanel.py", line 894, in ReadSMSPECFile
    dprops, dwgnames, dunits = readsmspec.readsmspec(smspec, dimens)
ValueError: data type must provide an itemsize

?!? I have never seen anything like that and googling around didn't
give me any answer. The function accepts two inputs:

- smspec: a filename, maximum 1000 characters long
- dimens: an integer

and returns 3 array of chars, each of them with size (8, dimens). Does
anyone know what I may be doing wrong?

Thank you very much for every pointer.

Andrea.

"Imagination Is The Only Weapon In The War Against Reality."
http://xoomer.virgilio.it/infinity77/

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to