Skip to content
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

Error: invalid literal for int #1

Closed
GoogleCodeExporter opened this issue Apr 8, 2015 · 3 comments
Closed

Error: invalid literal for int #1

GoogleCodeExporter opened this issue Apr 8, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Clone current code: git clone https://code.google.com/p/ccl-asl/
2. cd ccl-asl
3. python OSX_asl_login_timeline.py /var/log/asl login.csv

What is the expected output? What do you see instead?
Expected an output file login.csv

instead saw this error:
Reading: "/var/log/asl/2012.08.09.G80.asl"
Traceback (most recent call last):
  File "OSX_asl_login_timeline.py", line 194, in <module>
    __main__()
  File "OSX_asl_login_timeline.py", line 191, in __main__
    __dowork__(work_input, work_output)
  File "OSX_asl_login_timeline.py", line 112, in __dowork__
    for record in db:
  File "/Users/asalamon/Dev/ExternalProjects/ccl-asl/ccl_asldb.py", line 177, in __iter__
    yield self._parse_record(o)
  File "/Users/asalamon/Dev/ExternalProjects/ccl-asl/ccl_asldb.py", line 138, in _parse_record
    facility = self._parse_asl_str(facility_ref)
  File "/Users/asalamon/Dev/ExternalProjects/ccl-asl/ccl_asldb.py", line 115, in _parse_asl_str
    str_len = int(str_bytes[0]) & 0x7F
ValueError: invalid literal for int() with base 10: '\x86'


What version of the product are you using? On what operating system?
Mac OS X 10.7.4
Python 2.7.1
OSX_asl_login_timeline.py  0.1.1
ccl_asldb.py 0.2.1

Please provide any additional information below.

Original issue reported on code.google.com by bleyddyn...@gmail.com on 15 Aug 2012 at 6:12

@GoogleCodeExporter
Copy link
Author

The script is designed to be run under a 3.x version of Python. I will add a 
'shebang' at the top of the file to make this fact clearer

Original comment by i...@ccl-forensics.com on 10 Sep 2012 at 5:09

@GoogleCodeExporter
Copy link
Author

I've added a shebang to the head of the scripts. If you have an opportunity to 
re-run under 3.2 please let us know how you get on.

Original comment by i...@ccl-forensics.com on 11 Sep 2012 at 7:41

@GoogleCodeExporter
Copy link
Author

Original comment by i...@ccl-forensics.com on 11 Sep 2012 at 7:42

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant