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

Parsing error #207

Open
meekutlap opened this issue Jan 18, 2021 · 0 comments
Open

Parsing error #207

meekutlap opened this issue Jan 18, 2021 · 0 comments

Comments

@meekutlap
Copy link

meekutlap commented Jan 18, 2021

  • badX12 version: downloaded on Jan18,2021
  • Python version: 3.9
  • Operating System: MacOS Bis Sur V11.1

Description

Trying to convert EDI to JSON format

I get this below error

badx12 parse medline867s_1.prn
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.9/bin/badx12", line 8, in
sys.exit(cli())
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 764, in call
return self.main(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 717, in main
rv = self.invoke(ctx)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 1137, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/click/core.py", line 555, in invoke
return callback(*args, **kwargs)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/badx12/commands/parse/init.py", line 40, in parse
report = document.validate()
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/badx12/document.py", line 60, in validate
self.interchange.validate(report)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/badx12/utils/interchange.py", line 24, in validate
self._validate_group_count(report)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/badx12/utils/interchange.py", line 48, in _validate_group_count
if int(self.trailer.iea01.content) != len(self.groups):
ValueError: invalid literal for int() with base 10: ''

What I Did

I ran the below command

$ badx12 parse medline867s_1.prn

Any help is really appreciated. Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant