Skip to content

getnaifspicetoolkit.py, KeyError: 'X86_64' on Mac (10.9) x86_64 #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gorticus opened this issue Dec 9, 2013 · 0 comments
Open

getnaifspicetoolkit.py, KeyError: 'X86_64' on Mac (10.9) x86_64 #14

gorticus opened this issue Dec 9, 2013 · 0 comments

Comments

@gorticus
Copy link

gorticus commented Dec 9, 2013

On a Mac OS 10.9:

$ uname -a
Darwin gothmog.maiar.lan 13.0.2 Darwin Kernel Version 13.0.2: Sun Sep 29 19:38:57 PDT 2013; root:xnu-2422.75.4~1/RELEASE_X86_64 x86_64

Running getnaifspicetoolkit.py produces

$ ./getnaifspicetoolkit.py
Traceback (most recent call last):
  File "./getnaifspicetoolkit.py", line 278, in <module>
    main(sys.argv[1:])
  File "./getnaifspicetoolkit.py", line 206, in main
    nstkurl = getnstkurl(force=testOption,log=True)
  File "./getnaifspicetoolkit.py", line 159, in getnstkurl
    subdir='_'.join([ dSys1[opsys][machine], dSys1[opsys]['sis2'], compiler, unbit ])
KeyError: 'X86_64'

This patch seems to correct it.

--- a/getnaifspicetoolkit.py
+++ b/getnaifspicetoolkit.py
@@ -100,7 +100,7 @@ Index of http://naif.jpl.nasa.gov/pub/naif/toolkit/C/:
   ###   SUNOS and SUN4U => SunSPARC_Solaris
   ###

-  dSys1 = dict( OSX=dict( I386='MacIntel', PPC='MacPPC', sis2='OSX', zSfx='tar.Z' )
+  dSys1 = dict( OSX=dict( I386='MacIntel', X86_64='MacIntel', PPC='MacPPC', sis2='OSX', zSfx='tar.Z' )
               , LINUX=dict( I386='PC', X86_64='PC', sis2='Linux', zSfx='tar.Z' )
               , CYGWIN=dict( I386='PC', X86_64='PC', sis2='Cygwin', zSfx='tar.Z' )
               , WINDOWS=dict( I386='PC', X86_64='PC', sis2='Windows', zSfx='zip' )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant