rca / PySPICE

Python wrapper around the NAIF CSPICE library
http://naif.jpl.nasa.gov/naif/
BSD 3-Clause "New" or "Revised" License
38 stars 15 forks source link

Manual installation fails in mkwrapper.py #17

Open ghost opened 10 years ago

ghost commented 10 years ago

Dear all, I would like to make you aware that the manual installation as described in ReadMe.rst fails because mkwrapper throws an exception in line 837. The problem occurs while the wrapper tries to determine the size of one function parameter that is defined in the cspice header SpiceZpr.h. The function is "void edterm_c(...)". The problem is that the last input parameter is "SpiceDouble termpts [ ][3]" and the wrapper tries to identify the size of this array. However, because the first bracket is empty, instead of an integer, the wrapper gets an empty string. With the empty string, the wrapper cannot continue to work and throws the exception.

I tried to run everything on Windows and on Linux. The same error occurs in both cases. I hope that I can add to the progress of this great project with this comment. I would really like to see SPICE for Python.

Cheers

michaelaye commented 10 years ago

Thanks. As already said in #16 (which I closed now for cleanliness and keeping this open), this happens for the toolkit N0065 currently. In #16 you will find a link to toolkit N0064 which works. Thanks for the patience.

ghost commented 10 years ago

Hi Michael, thanks for your response. I checked the cspice version provided via dropbox link in #16 and noticed that it is for unix (based on the file makeall.csh). I am using Windows 7. I used the dropbox version of cspice and replaced makeall.csh with makeall.bat from the newest cspice version. Following the manual installation procedure and after running the first command, I now get the following error message:

" File "mkwrapper.py", line 1077, in print main(cspice_toolkit)

File "mkwrapper.py", line 1023, in main gen_wrapper(curr_prototype, buffer)

File "mkwrapper.py", line 537, in gen_wrapper doc = get_doc(prototype_obj.function_name)

File "mkwrapper.py", line 193, in get_doc f.seek(f.tell()-input_len) IOError: [Errno 22] Invalid argument "

Thanks for your work on this project!

michaelaye commented 10 years ago

Sorry, don't have a Windows machine for debugging. I'm quite annoyed that NAIF does not seem to offer links to older versions, maybe something changed in between N64 and N65 there as well? Hopefully somebody else can help? Also I will be out of network for the next 2 weeks of my holidays.

drbitboy commented 10 years ago

Old versions:

ftp://naif.jpl.nasa.gov/pub/naif/misc/

?

michaelaye commented 10 years ago

Ah, thanks! Didn't know about that one. The website does not mention anything about it, at least I could not find it.

drbitboy commented 10 years ago

A quick fix for SPICE toolkit N0065

https://github.com/drbitboy/PySPICE

Basically just excludes a few new functions that trip up mkwrapper.py.