<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">Hi,</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">I am working in Python-C ApI (Integrated Project). The Project has migrated to 64 bit machine from 32 bit machine. Every thing was working fine in 32 bit machine.</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height:
 18px;">But we getting following error in 64 bit machine.</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px;">" Python int too large to convert to C long".<br></div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><br></div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">When I start debug the
 code and found that we are using long variable which has size of 8 bit in C code. If I  replace long to int32_t variable in C and all long value</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">become garbage and I got index out of error from Python.The reason to become garbage value of long(after int conversion),we are using lot of Place Python api</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">which give the long result and we use in further process
 like ( write/reading file).I have tried to replace with int but it did not work. I am not sure really this is only</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">reason but it may be one of the reason to get the above error.I have also done google search but not able to get exact reason.</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">After spending 3 days,I am not able to figure out the solution of this issue. Does anyone provide some insight.</div><div
 style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">we are using Python 2.7.2 and Gcc : 4.7.0</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Please let me know if I need to provide more info. Your earlier response will help us lot as we need to fix this issue as soon as possible.( it is kind of blockage for us)</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family:
 Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;">Thanks</div><div style="margin-bottom: 1em; padding: 0px; border: 0px; font-size: 14px; vertical-align: baseline; clear: both; word-wrap: break-word; font-family: Arial, 'Liberation Sans', 'DejaVu Sans', sans-serif; line-height: 18px; color: rgb(0, 0, 0); background-color: transparent; font-style: normal;"><span style="background-color: transparent; font-family: arial, helvetica, sans-serif; font-size: 12pt;">Abhishek Goswami</span></div></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">Bangalore<br>Phone No -07829580867<br>Skype : abhishekgoswami1<br></div></div></body></html>