Thanks mate, appreciated.
Checking the module with IDLE, it doesn't stop at invalid syntax and opens the Python shell, which I suppose is a good sign. However, I'm still stuck at launching the script.
If I just run the module via IDLE, I get:
EDIT: Alright, so "-L 10" refer to options define at the end of the script. So, like other languages, I suppose that default is assumed if I skip them. Somehow, it works better using the windows command prompt, I get:
Checking the module with IDLE, it doesn't stop at invalid syntax and opens the Python shell, which I suppose is a good sign. However, I'm still stuck at launching the script.
GMLMaker.py -L 10 filename.csv
doesn't work. It still stops at "10" being invalid syntax. What does "-L 10" in the command define?If I just run the module via IDLE, I get:
Error:========================= RESTART: D:\Milky\GMLMaker.py ========================
** Loading Stars
Traceback (most recent call last):
File "D:\Milky\GMLMaker.py", line 637, in <module>
starSystems, boundingBox = LoadStars(starfilePrefix)
File "D:\Milky\GMLMaker.py", line 201, in LoadStars
habHYG = int(row[InputFields.HABHYG])
ValueError: invalid literal for int() with base 10: 'a'
If you don't mind downloading a .csv, here's a sample input file. The output GML file should look like this.EDIT: Alright, so "-L 10" refer to options define at the end of the script. So, like other languages, I suppose that default is assumed if I skip them. Somehow, it works better using the windows command prompt, I get:
Error:D:\Milky>GMLMaker.py HabHYG50ly.csv
Traceback (most recent call last):
File "D:\Milky\GMLMaker.py", line 606, in <module>
starfilePrefix = starfileName[:-4]
NameError: name 'starfileName' is not defined
So this must be a basic problem of my input file not being read... Or maybe it's not read because of the issue mentioned above?