Skip to content

Errors with simple comarison #5

Description

@idkpmiller

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions