error loading language-maps/ca-gutenberg.lm.bz2

Bug #1009290 reported by Tom Hoar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
langmatch
Fix Released
High
Jeroen T. Vermeulen

Bug Description

Tried to run langmatch from fresh download with no changes. Got the following error.

tahoar@library1:~/installbuilder-8.2.0/domy/lib/langmatch$ ./langmatch.py -m language-maps README.txt
Traceback (most recent call last):
  File "./langmatch.py", line 317, in <module>
    exit(LangMatch().main())
  File "./langmatch.py", line 311, in main
    return self.run()
  File "./langmatch.py", line 238, in run
    self.options.ignore_map_errors)
  File "/home/tahoar/installbuilder-8.2.0/domy/lib/langmatch/langmatchlib/comparison.py", line 99, in load_langmaps
    self.load_langmap(opener.uri, skip_errors=skip_errors)
  File "/home/tahoar/installbuilder-8.2.0/domy/lib/langmatch/langmatchlib/comparison.py", line 74, in load_langmap
    "Error loading '%s'. %s" % (uri.full_uri, e))
langmatchlib.langmap.BadLanguageMap: Error loading 'file://language-maps/ca-gutenberg.lm.bz2'. 'bz2.BZ2File' object has no attribute '__enter__'

Tags: maps

Related branches

Revision history for this message
Jeroen T. Vermeulen (jtv) wrote :

This only seems to happen in python 2.6. In that version, BZ2File is not yet a context manager.

Changed in langmatch:
assignee: nobody → Jeroen T. Vermeulen (jtv)
importance: Undecided → High
status: New → Fix Committed
Changed in langmatch:
status: Fix Committed → Fix Released
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.