You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm testing the latest master branch to convert Iranian_Geologist.BGL file to .csv, using Python35-32 on Windows.
The program gives me this error:
Traceback (most recent call last):
File "pyglossary\pyglossary\glossary.py", line 522, in read
Reader = self.readerClasses[format]
KeyError: 'BabylonBgl'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "pyglossary\ui\ui_tk.py", line 86, in CallWrapper__call__
return self.func(*args)
File "pyglossary\ui\ui_tk.py", line 728, in load
ex = self.glos.read(iPath, format=format)
File "pyglossary\pyglossary\glossary.py", line 529, in read
**options
File "pyglossary\pyglossary\plugins\babylon_bgl.py", line 2835, in read
for index, (words, defis) in enumerate(reader):
File "pyglossary\pyglossary\plugins\babylon_bgl.py", line 1778, in __iter__
yield self.readEntry()
File "pyglossary\pyglossary\plugins\babylon_bgl.py", line 1759, in readEntry
[res, pos, defi, key_defi] = self.readEntry_defi(block, pos, raw_key)
File "pyglossary\pyglossary\plugins\babylon_bgl.py", line 1850, in readEntry_defi
defi = self.processEntryDefinition(raw_defi, raw_key)
File "pyglossary\pyglossary\plugins\babylon_bgl.py", line 2277, in processEntryDefinition
fields.utf8_defi = self.replace_html_entries(fields.utf8_defi)
File "pyglossary\pyglossary\plugins\babylon_bgl.py", line 1917, in replace_html_entries
return re.sub(pat_entry, replace_html_entry, text)
File "C:\Python35-32\lib\re.py", line 182, in sub
return _compile(pattern, flags).sub(repl, string, count)
File "pyglossary\pyglossary\plugins\babylon_bgl.py", line 243, in replace_html_entry
return xml_escape(res)
File "pyglossary\pyglossary\xml_utils.py", line 15, in xml_escape
data = data.replace("&", "&")
TypeError: a bytes-like object is required, not 'str'
The text was updated successfully, but these errors were encountered:
Split into a package with 8 files
Fix bytes/str bugs (fix#54)
Fix CRC check bug (fix#55) by shipping and modifying gzip module:
https://hg.python.org/cpython/file/3.5/Lib/gzip.py
Migrate to Reader class
Rename bytes and str variables to b_* and u_*
Fix logic and a lot of cleanings
Split into a package with 8 files
Fix bytes/str bugs (fix#54)
Fix CRC check bug (fix#55) by shipping and modifying gzip module:
https://hg.python.org/cpython/file/3.5/Lib/gzip.py
Migrate to Reader class
Rename bytes and str variables to b_* and u_*
Fix logic and a lot of cleanings
I'm testing the latest master branch to convert Iranian_Geologist.BGL file to .csv, using
Python35-32
onWindows
.The program gives me this error:
The text was updated successfully, but these errors were encountered: