title: Tensorflow Object detection API, train your own model, Error : module 'sys' has no attribute 'maxint'
body: <p>I am an ABAP programmer and learning the tensorflow object detection API just following the tutorial and using the Racoon dataset from Dat Tran(<a href="https://github.com/datitran/raccoon_dataset" rel="nofollow noreferrer">https://github.com/datitran/raccoon_dataset</a>). The training can be performed on my own PC(python 3.6.3 and tensorflow 1.5.0), but slow. So I put it to the google cloud plantform. The job keep failing.</p>
  
  <p>The training input looks like this.</p>
  
  <pre><code>"scaleTier": "CUSTOM",
  "masterType": "standard_gpu",
  "workerType": "standard_gpu",
  "parameterServerType": "standard",
  "workerCount": "9",
  "parameterServerCount": "3",
  "packageUris": [
  "gs://racoon/train/packages/363569b954c446566b767aabfeb047adb0ed2f25f83248417e2667aac70d0790/object_detection-0.1.tar.gz",
  "gs://racoon/train/packages/363569b954c446566b767aabfeb047adb0ed2f25f83248417e2667aac70d0790/slim-0.1.tar.gz"
  ],
  "pythonModule": "object_detection.train",
  "args": [
  "--train_dir=gs://racoon/train",
  "--pipeline_config_path=gs://racoon/data/ssd_mobilenet_v1_pets.config"
  ],
  "region": "us-central1",
  "runtimeVersion": "1.5",
  "jobDir": "gs://racoon/train",
  "pythonVersion": "3.5"
  </code></pre>
  
  <p>The training was execuated for almost 100 steps, but failed with error, the job log shows like this.</p>
  
  <pre><code>The replica worker 1 exited with a non-zero status of 1. 
  Termination reason: Error. 
  Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) 
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) File "/root/.local/lib/python3.5/site-packages/object_detection/train.py", line 167, in &lt;module&gt; tf.app.run() 
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 124, in run _sys.exit(main(argv)) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/train.py", line 163, in main worker_job_name, is_chief, FLAGS.train_dir) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/trainer.py", line 360, in train saver=saver) 
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/contrib/slim/python/slim/learning.py", line 758, in train sys.maxint)) AttributeError: module 'sys' has no attribute 'maxint' 
  The replica worker 2 exited with a non-zero status of 1. 
  Termination reason: Error. 
  Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) 
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/train.py", line 167, in &lt;module&gt; tf.app.run() 
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 124, in run _sys.exit(main(argv)) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/train.py", line 163, in main worker_job_name, is_chief, FLAGS.train_dir) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/trainer.py", line 360, in train saver=saver) 
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/contrib/slim/python/slim/learning.py", line 758, in train sys.maxint)) AttributeError: module 'sys' has no attribute 'maxint' 
  The replica worker 4 exited with a non-zero status of 1. 
  Termination reason: Error. 
  Traceback (most recent call last): File "/usr/lib/python3.5/runpy.py", line 184, in _run_module_as_main "__main__", mod_spec) 
  File "/usr/lib/python3.5/runpy.py", line 85, in _run_code exec(code, run_globals) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/train.py", line 167, in &lt;module&gt; tf.app.run() 
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/python/platform/app.py", line 124, in run _sys.exit(main(argv)) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/train.py", line 163, in main worker_job_name, is_chief, FLAGS.train_dir) 
  File "/root/.local/lib/python3.5/site-packages/object_detection/trainer.py", line 360, in train saver=saver)  
  File "/usr/local/lib/python3.5/dist-packages/tensorflow/contrib/slim/python/slim/learning.py", line 758, in train sys.maxint)) AttributeError: module 'sys' has no attribute 'maxint' 
  To find out more about why your job exited please check the logs: https://console.cloud.google.com/logs/viewer?project=1006195729918&amp;resource=ml_job%2Fjob_id%2Fracoon_object_detection_9&amp;advancedFilter=resource.type%3D%22ml_job%22%0Aresource.labels.job_id%3D%22racoon_object_detection_9%22
  </code></pre>
  
  <p>In the local tensorflow install, the learning.py do have the sys.maxint, and the IDE shows syntax error. Does anyone face the same issue and have the solution? Please share with us.
  Thank you very much.</p>