{"action":"created","issue":{"url":"https://api.github.com/repos/adelosa/mciutil/issues/22","repository_url":"https://api.github.com/repos/adelosa/mciutil","labels_url":"https://api.github.com/repos/adelosa/mciutil/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/adelosa/mciutil/issues/22/comments","events_url":"https://api.github.com/repos/adelosa/mciutil/issues/22/events","html_url":"https://github.com/adelosa/mciutil/issues/22","id":167393486,"number":22,"title":"Bit 11 issue while creating the MC IPM file","user":{"login":"Kadasiddha","id":8743597,"avatar_url":"https://avatars.githubusercontent.com/u/8743597?v=3","gravatar_id":"","url":"https://api.github.com/users/Kadasiddha","html_url":"https://github.com/Kadasiddha","followers_url":"https://api.github.com/users/Kadasiddha/followers","following_url":"https://api.github.com/users/Kadasiddha/following{/other_user}","gists_url":"https://api.github.com/users/Kadasiddha/gists{/gist_id}","starred_url":"https://api.github.com/users/Kadasiddha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kadasiddha/subscriptions","organizations_url":"https://api.github.com/users/Kadasiddha/orgs","repos_url":"https://api.github.com/users/Kadasiddha/repos","events_url":"https://api.github.com/users/Kadasiddha/events{/privacy}","received_events_url":"https://api.github.com/users/Kadasiddha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2016-07-25T15:23:06Z","updated_at":"2016-08-05T10:30:54Z","closed_at":null,"body":"I am facing no bit 11 while converting the IPM file from ASCII to EBCDIC\r\n\r\n` No config found for bit 11\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/mideu\", line 9, in <module>\r\n    load_entry_point('mciutil==0.4.1', 'console_scripts', 'mideu')()\r\n  File \"/usr/local/lib/python2.7/site-packages/mciutil-0.4.1-py2.7.egg/mciutil/cli/mideu.py\", line 26, in cli_entry\r\n    _main(args)\r\n  File \"/usr/local/lib/python2.7/site-packages/mciutil-0.4.1-py2.7.egg/mciutil/cli/mideu.py\", line 48, in _main\r\n    args.func(args)\r\n  File \"/usr/local/lib/python2.7/site-packages/mciutil-0.4.1-py2.7.egg/mciutil/cli/convert.py\", line 46, in convert_command\r\n    ) for record in input_data\r\n  File \"/usr/local/lib/python2.7/site-packages/mciutil-0.4.1-py2.7.egg/mciutil/mciutil.py\", line 171, in flip_message_encoding\r\n    raise Exception(\"Config missing for bit {}\".format(bit))\r\nException: Config missing for bit 11\r\n`\r\n\r\nI know there is no bit 11 in the IPM file. I have added the mandatory bit only.\r\n\r\nSAMPLE ASCII IPM Content\r\n\r\n> 164410000000000000000000000100000000000000000000000100000000000000000000001000000000000000000000000000000000000000000000000000000000697080010502500216072500000012123087601100250021607250000001212308760122001P01910012000000011240111100000001000000000101010000101000000000100001100000000000000000000010000000000000000000000100000000000000000000000000000000001552100000011111110020000000000200016020110593561090101900120014002305210006207000001600826521000620700000160082110000001212340MUMBAI EMV ATM - 2  MUMBAI     AE030014800478420165004001M019100127840000000211000000121231644100000000000000000000001000000000000000000000001000000000000000000000010000000000000000000000000000000000000000000000000000000006950780105025002160700000012123000121230876v0122001P0191001200000001019100120301016000000000000030003060080000000300000032\r\n\r\nI am not able figure out where I am doing wrong. \r\nCan you please help me?"},"comment":{"url":"https://api.github.com/repos/adelosa/mciutil/issues/comments/237817890","html_url":"https://github.com/adelosa/mciutil/issues/22#issuecomment-237817890","issue_url":"https://api.github.com/repos/adelosa/mciutil/issues/22","id":237817890,"user":{"login":"adelosa","id":8604267,"avatar_url":"https://avatars.githubusercontent.com/u/8604267?v=3","gravatar_id":"","url":"https://api.github.com/users/adelosa","html_url":"https://github.com/adelosa","followers_url":"https://api.github.com/users/adelosa/followers","following_url":"https://api.github.com/users/adelosa/following{/other_user}","gists_url":"https://api.github.com/users/adelosa/gists{/gist_id}","starred_url":"https://api.github.com/users/adelosa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adelosa/subscriptions","organizations_url":"https://api.github.com/users/adelosa/orgs","repos_url":"https://api.github.com/users/adelosa/repos","events_url":"https://api.github.com/users/adelosa/events{/privacy}","received_events_url":"https://api.github.com/users/adelosa/received_events","type":"User","site_admin":false},"created_at":"2016-08-05T10:30:54Z","updated_at":"2016-08-05T10:30:54Z","body":"I've updated the utility to 0.4.4 which includes additional debugging. \r\nYou can update by running `pip install -U mciutil`\r\n\r\nI have run the following command against your file.. \r\n`mideu extract -d -s ascii MCSample.ipm.txt`\r\nAnd got the following output..\r\n```\r\n(mciutil) ➜  Downloads mideu extract -d -s ascii MCSample.ipm.txt\r\n2016-08-05 20:23:39,659:mciutil.cli.extract:33:INFO:675 bytes read from MCSample.ipm.txt\r\n2016-08-05 20:23:39,660:mciutil.mciutil:62:DEBUG:record_length=114\r\n2016-08-05 20:23:39,660:mciutil.mciutil:62:DEBUG:record_length=17473\r\n2016-08-05 20:23:39,660:mciutil.cli.extract:40:INFO:Config file: /home/banktek/.mideu.yml\r\n00000000: 31 36 34 34 80 00 01 00  00 01 00 00 02 00 00 00  1644............\r\n00000010: 00 00 00 00 36 39 37 30  38 30 30 31 30 35 30 32  ....697080010502\r\n00000020: 35 30 30 32 31 36 30 38  30 34 30 30 30 30 30 30  5002160804000000\r\n00000030: 31 32 39 34 38 30 39 30  36 34 30 31 31 30 30 32  1294809064011002\r\n00000040: 35 30 30 32 31 36 30 38  30 34 30 30 30 30 30 30  5002160804000000\r\n00000050: 31 32 39 34 38 30 39 30  36 34 30 31 32 32 30 30  1294809064012200\r\n00000060: 31 50 30 31 39 31 30 30  31 32 30 30 30 30 30 30  1P01910012000000\r\n00000070: 30 31                                             01\r\n2016-08-05 20:23:39,726:mciutil.mciutil:256:DEBUG:processing record None\r\n2016-08-05 20:23:39,726:mciutil.mciutil:276:DEBUG:processing bit 24\r\n2016-08-05 20:23:39,727:mciutil.mciutil:276:DEBUG:processing bit 48\r\n2016-08-05 20:23:39,727:mciutil.mciutil:475:DEBUG:pds_field_tag=[b'0105']\r\n2016-08-05 20:23:39,727:mciutil.mciutil:479:DEBUG:pds_field_length=[25]\r\n2016-08-05 20:23:39,727:mciutil.mciutil:484:DEBUG:pds_field_data=[b'0021608040000001294809064']\r\n2016-08-05 20:23:39,727:mciutil.mciutil:475:DEBUG:pds_field_tag=[b'0110']\r\n2016-08-05 20:23:39,727:mciutil.mciutil:479:DEBUG:pds_field_length=[25]\r\n2016-08-05 20:23:39,727:mciutil.mciutil:484:DEBUG:pds_field_data=[b'0021608040000001294809064']\r\n2016-08-05 20:23:39,727:mciutil.mciutil:475:DEBUG:pds_field_tag=[b'0122']\r\n2016-08-05 20:23:39,728:mciutil.mciutil:479:DEBUG:pds_field_length=[1]\r\n2016-08-05 20:23:39,728:mciutil.mciutil:484:DEBUG:pds_field_data=[b'P']\r\n2016-08-05 20:23:39,728:mciutil.mciutil:475:DEBUG:pds_field_tag=[b'0191']\r\n2016-08-05 20:23:39,728:mciutil.mciutil:479:DEBUG:pds_field_length=[1]\r\n2016-08-05 20:23:39,728:mciutil.mciutil:484:DEBUG:pds_field_data=[b'2']\r\n2016-08-05 20:23:39,728:mciutil.mciutil:276:DEBUG:processing bit 71\r\n00000000: 31 32 34 30 F0 10 05 42  80 21 80 00 02 00 00 04  1240...B.!......\r\n00000010: 00 00 00 00 31 36 35 32  37 34 33 32 30 30 30 30  ....165274320000\r\n00000020: 30 31 30 30 30 30 31 30  30 31 30 30 30 30 30 30  0100001001000000\r\n00000030: 30 30 30 33 30 30 30 30  31 36 30 32 30 39 30 38  0003000016020908\r\n00000040: 35 32 35 38 36 31 30 39  30 31 30 31 39 30 30 31  5258610901019001\r\n00000050: 32 30 30 35 39 39 39 32  33 30 35 32 31 30 30 30  2005999230521000\r\n00000060: 36 32 31 37 30 30 30 30  30 31 36 30 31 38 36 32  6217000001601862\r\n00000070: 31 31 30 30 30 30 30 30  31 32 39 34 38 33 34 4D  110000001294834M\r\n00000080: 55 4D 42 41 49 20 45 4D  56 20 41 54 4D 20 2D 20  UMBAI EMV ATM - \r\n00000090: 32 20 20 4D 55 4D 42 41  49 20 20 20 20 20 20 49  2  MUMBAI      I\r\n000000A0: 4E 30 33 30 30 31 34 38  30 30 34 30 34 38 33 30  N030014800404830\r\n000000B0: 31 36 35 30 30 34 30 30  31 4D 30 31 39 31 30 30  165004001M019100\r\n000000C0: 31 32 30 34 38 30 30 30  30 30 30 30 32 31 31 30  1204800000002110\r\n000000D0: 30 30 30 30 30 31 32 39  34 38 00 00 44 39 31 32  0000012948..D912\r\n000000E0: 34 30 F0 10 05 42 80 21  80 00 02 00 00 04 00 00  40...B.!........\r\n000000F0: 00 00 31 35 35 32 31 30  37 37 31 31 31 31 32 30  ..15521077111120\r\n00000100: 31 32 37 31 30 30 32 30  30 30 30 30 30 30 30 30  1271002000000000\r\n00000110: 30 32 30 30 30 31 36 30  32 30 31 31 30 35 39 33  0200016020110593\r\n00000120: 35 36 31 30 39 30 31 30  31 39 30 30 31 32 30 30  5610901019001200\r\n00000130: 35 39 39 39 32 33 30 35  32 31 30 30 30 36 32 31  5999230521000621\r\n00000140: 37 30 30 30 30 30 31 36  30 30 38 32 37 31 31 30  7000001600827110\r\n00000150: 30 30 30 30 30 31 32 39  34 38 33 34 4D 55 4D 42  000001294834MUMB\r\n00000160: 41 49 20 45 4D 56 20 41  54 4D 20 2D 20 32 20 20  AI EMV ATM - 2  \r\n00000170: 4D 55 4D 42 41 49 20 20  20 20 20 20 49 4E 30 33  MUMBAI      IN03\r\n00000180: 30 30 31 34 38 30 30 34  37 38 34 32 30 31 36 35  0014800478420165\r\n00000190: 30 30 34 30 30 31 4D 30  31 39 31 30 30 31 32 37  004001M019100127\r\n000001A0: 38 34 30 30 30 30 30 30  30 33 31 31 30 30 30 30  8400000003110000\r\n000001B0: 30 30 31 32 39 34 38 00  00 00 70 31 36 34 34 80  0012948...p1644.\r\n000001C0: 00 01 00 00 01 00 00 02  00 00 00 00 00 00 00 36  ...............6\r\n000001D0: 39 35 30 37 38 30 31 30  35 30 32 35 30 30 32 31  9507801050250021\r\n000001E0: 36 30 38 30 30 30 30 30  30 31 32 39 34 38 30 39  6080000001294809\r\n000001F0: 30 36 34 30 31 39 31 30  30 31 32 30 33 30 31 30  0640191001203010\r\n00000200: 31 36 30 30 30 30 30 30  30 30 30 30 30 30 30 30  1600000000000000\r\n00000210: 30 30 30 33 30 36 30 30  38 30 30 30 30 30 30 30  0003060080000000\r\n00000220: 34 30 30 30 30 30 30 30  34                       400000004\r\n2016-08-05 20:23:39,730:mciutil.mciutil:256:DEBUG:processing record None\r\n2016-08-05 20:23:39,730:mciutil.mciutil:276:DEBUG:processing bit 2\r\n2016-08-05 20:23:39,730:mciutil.mciutil:276:DEBUG:processing bit 3\r\n2016-08-05 20:23:39,730:mciutil.mciutil:276:DEBUG:processing bit 4\r\n2016-08-05 20:23:39,730:mciutil.mciutil:276:DEBUG:processing bit 12\r\n2016-08-05 20:23:39,730:mciutil.mciutil:276:DEBUG:processing bit 22\r\n2016-08-05 20:23:39,730:mciutil.mciutil:276:DEBUG:processing bit 24\r\n2016-08-05 20:23:39,730:mciutil.mciutil:276:DEBUG:processing bit 26\r\n2016-08-05 20:23:39,731:mciutil.mciutil:276:DEBUG:processing bit 31\r\n2016-08-05 20:23:39,731:mciutil.mciutil:276:DEBUG:processing bit 33\r\n2016-08-05 20:23:39,731:mciutil.mciutil:276:DEBUG:processing bit 43\r\n2016-08-05 20:23:39,731:mciutil.mciutil:276:DEBUG:processing bit 48\r\n2016-08-05 20:23:39,731:mciutil.mciutil:475:DEBUG:pds_field_tag=[b'0148']\r\n2016-08-05 20:23:39,731:mciutil.mciutil:479:DEBUG:pds_field_length=[4]\r\n2016-08-05 20:23:39,731:mciutil.mciutil:484:DEBUG:pds_field_data=[b'0483']\r\n2016-08-05 20:23:39,731:mciutil.mciutil:475:DEBUG:pds_field_tag=[b'0165']\r\n2016-08-05 20:23:39,731:mciutil.mciutil:479:DEBUG:pds_field_length=[4]\r\n2016-08-05 20:23:39,731:mciutil.mciutil:484:DEBUG:pds_field_data=[b'001M']\r\n2016-08-05 20:23:39,732:mciutil.mciutil:475:DEBUG:pds_field_tag=[b'0191']\r\n2016-08-05 20:23:39,732:mciutil.mciutil:479:DEBUG:pds_field_length=[1]\r\n2016-08-05 20:23:39,732:mciutil.mciutil:484:DEBUG:pds_field_data=[b'2']\r\n2016-08-05 20:23:39,732:mciutil.mciutil:276:DEBUG:processing bit 49\r\n2016-08-05 20:23:39,732:mciutil.mciutil:276:DEBUG:processing bit 71\r\n2016-08-05 20:23:39,732:mciutil.mciutil:276:DEBUG:processing bit 94\r\n\r\nCompleted processing 2 records\r\n2016-08-05 20:23:39,733:mciutil.cli.common:113:INFO:2 records written\r\nDone!\r\n```\r\nIt looks like your lengths are incorrect..\r\n```\r\n2016-08-05 20:23:39,660:mciutil.mciutil:62:DEBUG:record_length=114\r\n2016-08-05 20:23:39,660:mciutil.mciutil:62:DEBUG:record_length=17473\r\n```\r\nI'm pretty sure that the second record is not 17473.. You will want to check this.\r\nFor future assistance with the tool you can just provide the above logging rather than the file."}}
{"actor":{"display_login":"adelosa"}}