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

Errors with simple comarison #5

Open
idkpmiller opened this issue Jan 28, 2025 · 0 comments
Open

Errors with simple comarison #5

idkpmiller opened this issue Jan 28, 2025 · 0 comments

Comments

@idkpmiller
Copy link

Hi,
I was looking for a csv file comparison tool came across yours. seems really comprehensive.
Unfortunately it failed at the most basic of comarisons.

The console is shown below:

python csvdiff.py nil_capabilites.csv prod_capabilites.csv
Traceback (most recent call last):
File "E:\Projects\Python\ICAP-Tool\csvdiff.py", line 1306, in
main()
File "E:\Projects\Python\ICAP-Tool\csvdiff.py", line 65, in main
show_context_for_debugging(context)
File "E:\Projects\Python\ICAP-Tool\csvdiff.py", line 346, in show_context_for_debugging
logger.debug('line_separator_for_lhs={}'.format(cxt.line_separator_for_lhs.encode('hex')))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
LookupError: 'hex' is not a text encoding; use codecs.encode() to handle arbitrary codecs

================

The two files are shown below:
nil_capabilites.csv:
mobile_group_discount,mobile_office_basic,closed_group,ip_centrex_fixed,ip_centrex_mobile,voice_connect,vc_routing_type,vc_cfnrc,vc_cf,vc_scar,vc_seqring,preplan
N,Y,N,N,N,Y,Standard,Y,Y,Y,N,N

prod_capabilites.csv:
mobile_group_discount,mobile_office_basic,closed_group,ip_centrex_fixed,ip_centrex_mobile,voice_connect,vc_routing_type,vc_cfnrc,vc_cf,vc_scar,vc_seqring,preplan
N,Y,N,N,N,Y,Standard,Y,Y,Y,N,N

================

In this initial test the two files are comparable and the tool failed.
I do not expect to come back and check on this, but I thought I would spend some time to lodge the issue, if I have done something wrong it may benefit others, if it is a bug with the tool then perhaps you can resolve.

Thanks

Paul

prod_capabilites.csv

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