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

AssertionError in gen_zip_code_seed.py #272

Closed
GoogleCodeExporter opened this issue Apr 22, 2015 · 2 comments
Closed

AssertionError in gen_zip_code_seed.py #272

GoogleCodeExporter opened this issue Apr 22, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Checkout Mozc 2.16.2016.102 (r482) on Ubuntu 14.04
2. cd data/dictionary_oss
3. Download following postal code files from Japan Post website (as of 2015 Jan 
18th) and unzip them.
   - http://www.post.japanpost.jp/zipcode/dl/oogaki/zip/ken_all.zip
   - http://www.post.japanpost.jp/zipcode/dl/jigyosyo/zip/jigyosyo.zip
4. python ../../dictionary/gen_zip_code_seed.py --zip_code=KEN_ALL.CSV 
--jigyosyo=JIGYOSYO.CSV >> dictionary09.txt

What is the expected output?
gen_zip_code_seed.py finished without any error.

What do you see instead?
The command fails with following error:

Traceback (most recent call last):
  File "../../dictionary/gen_zip_code_seed.py", line 270, in <module>
    sys.exit(main())
  File "../../dictionary/gen_zip_code_seed.py", line 261, in main
    ProcessZipCodeCSV(options.zip_code)
  File "../../dictionary/gen_zip_code_seed.py", line 91, in ProcessZipCodeCSV
    for entry in ReadZipCodeEntries(tokens[2], tokens[6], tokens[7], tokens[8]):
  File "../../dictionary/gen_zip_code_seed.py", line 189, in ReadZipCodeEntries
    for town in ParseTownName(level3)]
  File "../../dictionary/gen_zip_code_seed.py", line 204, in ParseTownName
    % level3.encode('utf-8'))
AssertionError: failed to be merged 
大桑町(ア、イ、ヰ、ウ、上野、ヲ、オ乙、鐘搗山、上川��
�、上猫下、

Please use labels and text to provide additional information.
This issue was originally reported as Issue 205.

Original issue reported on code.google.com by [email protected] on 17 Jan 2015 at 4:05

@GoogleCodeExporter
Copy link
Author

This issue was closed by revision r483.

Original comment by [email protected] on 17 Jan 2015 at 4:10

  • Changed state: Fixed

@GoogleCodeExporter
Copy link
Author

Issue 205 has been merged into this issue.

Original comment by [email protected] on 17 Jan 2015 at 4:11

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