davea@think2:~/temppython$ python aram.py
error: no input files
compilation terminated
These messages are triggered by sys.argv being less than 2. Cure is to
pass some string as the first argument on the command line.
Fixed that:
davea@think2:~/temppython$ ./aram.py myfile.txt
Traceback (most recent call last):
File "./aram.py", line 33, in <module>
jadeFile = open(fileName, 'r')
IOError: [Errno 2] No such file or directory: 'myfile.txt'
(notice that I pasted the full traceback into this message.)
Problem is that the program is treating that parameter as a filename,
and I don't have a file by that filename.
davea@think2:~/temppython$ ./aram.py aram.py
) != -1:
)
(' stripLabel = line.find("::label")', ':', 20)
('!= -1:', ':', 19)
Worked perfectly. Of course, nobody has said what it's supposed to do.
So anything that doesn't display an error must be okay.
How about describing what version of Python this is intended for, how
you ran it, and what errors you're getting. Don't paraphrase, don't
summarize (lots of errors ???!), just copy/paste.
And if it's appropriate, show a sample data file for it to open, not
attached, but pasted into your email message.
--
DaveA