on startup, fails in mathexp

Bug #592287 reported by Dan O'Huiginn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Wikipedia Dump Reader
New
Undecided
Unassigned

Bug Description

Just discovered this project, took a code checkout & tried to starrt with
$ bzr clone lp:wikipediadumpreader
$ cd wikipediadumpreader
$ python dumpReader.py
dumpReader.py:12: RuntimeWarning: Python C API version mismatch for module bz2: This Python has API version 1013, module bz2 has version 1012.
  import mod.bz2 as bz2
sh: latex: not found
Traceback (most recent call last):
  File "dumpReader.py", line 17, in <module>
    import mathexp
  File "/tmp/wikipediadumpreader/mathexp.py", line 97, in <module>
    tex_consumer = TexVcConsumer()
  File "/tmp/wikipediadumpreader/mathexp.py", line 88, in __init__
    self.math_parser = Texvc(False)
  File "/tmp/wikipediadumpreader/mathexp.py", line 56, in __init__
    raise NameError
NameError

Commenting out that test lets the program start (although presumably by hiding the problem, rather than fixing it)

$ bzr diff
Format <RepositoryFormatKnit1> for file:///tmp/wikipediadumpreader/.bzr/ is deprecated - please use 'bzr upgrade' to get better performance
=== modified file 'mathexp.py'
--- mathexp.py 2010-03-25 11:49:23 +0000
+++ mathexp.py 2010-06-10 15:16:22 +0000
@@ -52,8 +52,8 @@
                os.mkdir(self.images_path)
        # test again (paranoid mode ;-)
        test = self.parse("test")
- if not os.path.exists(test[26:-3]):
- raise NameError
+ #if not os.path.exists(test[26:-3]):
+ # raise NameError
        if keepMathImageFiles:
                print "Info : maths images are generated in %s and are not deleted after exiting" % self.images_path

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.