Guest User

Untitled

a guest
Mar 16th, 2018
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.89 KB | None | 0 0
  1. first the program than gets this
  2.  
  3. then the traceback error
  4.  
  5. import boto3
  6. #import json#
  7. #import decimal
  8. from boto3.dynamodb.conditions import Key, Attr
  9. import traceback
  10.  
  11. print '** 1 **'
  12. try:
  13. dynamodb = boto3.resource('dynamodb',aws_access_key_id = 'THEREALKEYHERE',aws_secret_access_key = 'THEREALACCESSKEYHERE',region_name = 'eu-west-1')
  14. except Exception,e:
  15.  
  16. print '**error** :'
  17. import traceback;ee = traceback.format_exc()
  18. print e
  19. print ee
  20.  
  21. print '** 2 **'
  22. table = dynamodb.Table('Movies')
  23.  
  24. #setup variables
  25. title = "Bladerunner 2049"
  26. year = 2017
  27.  
  28. response = table.get_item(
  29. Key={
  30. 'year': year,
  31. 'title': title
  32. }
  33. )
  34.  
  35.  
  36. item = response['Item']
  37.  
  38. print(item['info']['plot'])
  39. print(item['title'])
  40.  
  41. DEPLOYED USING BUILDOZER
  42. BUILDOZER SPEC HERE
  43. https://pastebin.com/j2bxxBP3
  44.  
  45. TRACEBACK: LINE 9 = DYNAMODB=BOTO3.RESOURCE IN CODE
  46.  
  47. INDICATIONS OF JSON INCOMPATABILITY .. THERE IS AN AMAZON CASE OPEN FOR THIS
  48.  
  49. tracking back ..
  50.  
  51. 03-14 15:27:54.474 15532 15550 I python : Expecting , delimiter: line 63 column 29 (char 1666)
  52. 03-14 15:27:54.475 15532 15550 I python : Traceback (most recent call last):
  53. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/app/main.py", line 9, in <module>
  54. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/site-packages/botocore/loaders.py", line 175, in load_file
  55. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/json/__init__.py", line 339, in loads
  56. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/json/decoder.py", line 366, in decode
  57. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/json/decoder.py", line 382, in raw_decode
  58. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/json/scanner.py", line 38, in _scan_once
  59. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/json/decoder.py", line 195, in JSONObject
  60. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/json/scanner.py", line 40, in _scan_once
  61. 03-14 15:27:54.475 15532 15550 I python : File "/home/pgeary/dev/boto3/b3/.buildozer/android/platform/build/dists/MainApp/private/lib/python2.7/json/decoder.py", line 262, in JSONArray
  62. 03-14 15:27:54.475 15532 15550 I python : ValueError: Expecting , delimiter: line 63 column 29 (char 1666)
Add Comment
Please, Sign In to add comment