Can't get this case to work

Issue #26 invalid
Former user created an issue

Hi,

I have the following bibtex file:

@article{dardickdigital,
  title={Digital Evidence and Forensic Readiness},
  author={Dardick, Glenn S and Endicott-Popovsky, Barbara and Gladyshev, Pavel and Kemmerich, Thomas and Rudolph, Carsten}
}

@article{dardick4digital,
  title={Digital Evidence and Forensic Readiness (Dagstuhl Seminar 14092)$\}$$\}$},
  author={Dardick, Glenn S and Endicott-Popovsky, Barbara and Gladyshev, Pavel and Kemmerich, Thomas and Rudolph, Carsten and Dardick, Glenn S and Endicott-Popovsky, Barbara and Gladyshev, Pavel and Kemmerich, Thomas and Rudolph, Carsten},
  journal={Dagstuhl Reports$\}$},
  volume={4},
  pages={150--190},
  publisher={Schloss Dagstuhl--Leibniz-Zentrum fuer Informatik$\}$}
}

@article{tobin2014reverse,
  title={Reverse engineering a CCTV system, a case study},
  author={Tobin, Lee and Shosha, Ahmed and Gladyshev, Pavel},
  journal={Digital Investigation},
  year={2014},
  publisher={Elsevier}
}

@article{james2014automated,
  title={Automated inference of past action instances in digital investigations},
  author={James, Joshua I and Gladyshev, Pavel},
  journal={International Journal of Information Security},
  pages={1--13},
  year={2014},
  publisher={Springer}
}

When I run:

python bibtex2json.py output.bib

I get:

Traceback (most recent call last):
  File "bibtex2json.py", line 67, in <module>
    main()
  File "bibtex2json.py", line 61, in main
    sys.stdout.write(json.dumps(parser.parse(sys.argv[1]), sort_keys=True, indent=4, ensure_ascii=False))
  File "bibtex2json.py", line 52, in parse
    bib = self.parser.parse_file(bibtexfile)
  File "build/bdist.linux-x86_64/egg/pybtex/database/input/__init__.py", line 51, in parse_file
  File "build/bdist.linux-x86_64/egg/pybtex/database/input/bibtex.py", line 365, in parse_stream
  File "build/bdist.linux-x86_64/egg/pybtex/database/input/bibtex.py", line 178, in parse_bibliography
  File "build/bdist.linux-x86_64/egg/pybtex/database/input/bibtex.py", line 350, in handle_error
  File "build/bdist.linux-x86_64/egg/pybtex/errors.py", line 78, in report_error
pybtex.scanner.TokenRequired: '}' expected

I'm using Python 2.7.6

Any ideas?

Comments (2)

  1. Former user Account Deleted

    Looks like you have unbalanced braces. Especially this stuff looks very suspicous:

    $}$$}$},
    
  2. Log in to comment