daily pastebin goal
57%
SHARE
TWEET

Untitled

a guest Jan 23rd, 2019 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Windows PowerShell
  2. Copyright (C) Microsoft Corporation. All rights reserved.
  3.  
  4. PS C:\Users\dcestau> cd C:\Users\dcestau\Desktop\freelancer
  5. PS C:\Users\dcestau\Desktop\freelancer> python .\emma_pdfs.py
  6. [+] Added uuid 768488DS0 to database
  7. [+] Added uuid 699347GD6 to database
  8. [+] Added uuid 674690BP6 to database
  9. [+] Added uuid 700824EG6 to database
  10. [+] Added uuid 917202YD9 to database
  11. [+] Added uuid 914318C99 to database
  12. [+] Added uuid 462460S49 to database
  13. [+] Added uuid 018231CX6 to database
  14. [+] Added uuid 768488DC5 to database
  15. [+] Added uuid 700824CW3 to database
  16. [+] Added uuid 700824FN0 to database
  17. [+] Added uuid 697396BC2 to database
  18. [+] Added uuid 700824FB6 to database
  19. [+] Added uuid 0106087S0 to database
  20. [+] Added uuid 838192FL1 to database
  21. [+] Added uuid 018231DE7 to database
  22. [+] Added uuid 34160WA20 to database
  23. [+] Added uuid 699347KE9 to database
  24. [+] Added uuid 700824DC6 to database
  25. [+] Added uuid 451295VM8 to database
  26. [I] Getting info for pages.
  27. [I+] Got info for 1 out of 20 pages.
  28. [I+] Got info for 2 out of 20 pages.
  29. [I+] Got info for 3 out of 20 pages.
  30. [I+] Got info for 4 out of 20 pages.
  31. [I+] Got info for 5 out of 20 pages.
  32. [I+] Got info for 6 out of 20 pages.
  33. [I+] Got info for 7 out of 20 pages.
  34. [I+] Got info for 8 out of 20 pages.
  35. [I+] Got info for 9 out of 20 pages.
  36. [I+] Got info for 10 out of 20 pages.
  37. [I+] Got info for 11 out of 20 pages.
  38. [I+] Got info for 12 out of 20 pages.
  39. [I+] Got info for 13 out of 20 pages.
  40. [I+] Got info for 14 out of 20 pages.
  41. [I+] Got info for 15 out of 20 pages.
  42. [I+] Got info for 16 out of 20 pages.
  43. [I+] Got info for 17 out of 20 pages.
  44. [I+] Got info for 18 out of 20 pages.
  45. [I] Info gathering done.
  46. [II] Downloading the files we need.
  47. [II+] Downloaded files for 1 out of 20
  48. [II+] Downloaded files for 2 out of 20
  49. [II+] Downloaded files for 3 out of 20
  50. [II+] Downloaded files for 4 out of 20
  51. [II+] Downloaded files for 5 out of 20
  52. [II+] Downloaded files for 6 out of 20
  53. [II+] Downloaded files for 7 out of 20
  54. [II+] Downloaded files for 8 out of 20
  55. [II+] Downloaded files for 9 out of 20
  56. [II+] Downloaded files for 10 out of 20
  57. [II+] Downloaded files for 11 out of 20
  58. [II+] Downloaded files for 12 out of 20
  59. [II+] Downloaded files for 13 out of 20
  60. [II+] Downloaded files for 14 out of 20
  61. [II+] Downloaded files for 15 out of 20
  62. [II+] Downloaded files for 16 out of 20
  63. [II+] Downloaded files for 17 out of 20
  64. [II+] Downloaded files for 18 out of 20
  65. [II] Downloading done.
  66. [III] Making text from PDFs.
  67. Extracted text from 1 out of 22
  68. Extracted text from 2 out of 22
  69. Extracted text from 3 out of 22
  70. Extracted text from 4 out of 22
  71. Extracted text from 5 out of 22
  72. Extracted text from 6 out of 22
  73. Extracted text from 7 out of 22
  74. Extracted text from 8 out of 22
  75. Extracted text from 9 out of 22
  76. Extracted text from 10 out of 22
  77. Extracted text from 11 out of 22
  78. Extracted text from 12 out of 22
  79. Extracted text from 13 out of 22
  80. Extracted text from 14 out of 22
  81. Extracted text from 15 out of 22
  82. Extracted text from 16 out of 22
  83. Extracted text from 17 out of 22
  84. Extracted text from 18 out of 22
  85. Extracted text from 19 out of 22
  86. Extracted text from 20 out of 22
  87. Extracted text from 21 out of 22
  88. Extracted text from 22 out of 22
  89. [III] Done making text.
  90. [IV] Preparing the final files.
  91. Recognizing images of pdf optically
  92. Recognizing images of pdf optically
  93. Traceback (most recent call last):
  94.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  95.     cursor.execute(sql, params or ())
  96. sqlite3.OperationalError: database is locked
  97.  
  98. During handling of the above exception, another exception occurred:
  99.  
  100. Traceback (most recent call last):
  101.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  102.     result = self._run(*self.args, **self.kwargs)
  103.   File ".\emma_pdfs.py", line 284, in place_results
  104.     document.save()
  105.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  106.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  107.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  108.     return method(self, database, *args, **kwargs)
  109.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  110.     return self._execute(database)
  111.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  112.     cursor = database.execute(self)
  113.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  114.     return self.execute_sql(sql, params, commit=commit)
  115.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  116.     self.commit()
  117.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  118.     reraise(new_type, new_type(*exc_args), traceback)
  119.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  120.     raise value.with_traceback(tb)
  121.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  122.     cursor.execute(sql, params or ())
  123. peewee.OperationalError: database is locked
  124. Wed Jan 23 15:10:41 2019 <Greenlet at 0x1656ca869c8: place_results(<__main__.Page object at 0x000001656CB002E8>)> failed with OperationalError
  125.  
  126. Traceback (most recent call last):
  127.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  128.     cursor.execute(sql, params or ())
  129. sqlite3.OperationalError: database is locked
  130.  
  131. During handling of the above exception, another exception occurred:
  132.  
  133. Traceback (most recent call last):
  134.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  135.     result = self._run(*self.args, **self.kwargs)
  136.   File ".\emma_pdfs.py", line 284, in place_results
  137.     document.save()
  138.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  139.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  140.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  141.     return method(self, database, *args, **kwargs)
  142.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  143.     return self._execute(database)
  144.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  145.     cursor = database.execute(self)
  146.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  147.     return self.execute_sql(sql, params, commit=commit)
  148.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  149.     self.commit()
  150.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  151.     reraise(new_type, new_type(*exc_args), traceback)
  152.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  153.     raise value.with_traceback(tb)
  154.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  155.     cursor.execute(sql, params or ())
  156. peewee.OperationalError: database is locked
  157. Wed Jan 23 15:10:47 2019 <Greenlet at 0x1656ca86a60: place_results(<__main__.Page object at 0x000001656F9614A8>)> failed with OperationalError
  158.  
  159. Traceback (most recent call last):
  160.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  161.     cursor.execute(sql, params or ())
  162. sqlite3.OperationalError: database is locked
  163.  
  164. During handling of the above exception, another exception occurred:
  165.  
  166. Traceback (most recent call last):
  167.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  168.     result = self._run(*self.args, **self.kwargs)
  169.   File ".\emma_pdfs.py", line 284, in place_results
  170.     document.save()
  171.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  172.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  173.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  174.     return method(self, database, *args, **kwargs)
  175.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  176.     return self._execute(database)
  177.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  178.     cursor = database.execute(self)
  179.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  180.     return self.execute_sql(sql, params, commit=commit)
  181.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  182.     self.commit()
  183.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  184.     reraise(new_type, new_type(*exc_args), traceback)
  185.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  186.     raise value.with_traceback(tb)
  187.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  188.     cursor.execute(sql, params or ())
  189. peewee.OperationalError: database is locked
  190. Wed Jan 23 15:10:52 2019 <Greenlet at 0x1656ca86af8: place_results(<__main__.Page object at 0x000001656F961E48>)> failed with OperationalError
  191.  
  192. Traceback (most recent call last):
  193.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  194.     cursor.execute(sql, params or ())
  195. sqlite3.OperationalError: database is locked
  196.  
  197. During handling of the above exception, another exception occurred:
  198.  
  199. Traceback (most recent call last):
  200.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  201.     result = self._run(*self.args, **self.kwargs)
  202.   File ".\emma_pdfs.py", line 284, in place_results
  203.     document.save()
  204.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  205.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  206.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  207.     return method(self, database, *args, **kwargs)
  208.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  209.     return self._execute(database)
  210.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  211.     cursor = database.execute(self)
  212.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  213.     return self.execute_sql(sql, params, commit=commit)
  214.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  215.     self.commit()
  216.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  217.     reraise(new_type, new_type(*exc_args), traceback)
  218.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  219.     raise value.with_traceback(tb)
  220.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  221.     cursor.execute(sql, params or ())
  222. peewee.OperationalError: database is locked
  223. Wed Jan 23 15:10:57 2019 <Greenlet at 0x1656ca86b90: place_results(<__main__.Page object at 0x000001656F581668>)> failed with OperationalError
  224.  
  225. Traceback (most recent call last):
  226.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  227.     cursor.execute(sql, params or ())
  228. sqlite3.OperationalError: database is locked
  229.  
  230. During handling of the above exception, another exception occurred:
  231.  
  232. Traceback (most recent call last):
  233.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  234.     result = self._run(*self.args, **self.kwargs)
  235.   File ".\emma_pdfs.py", line 284, in place_results
  236.     document.save()
  237.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  238.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  239.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  240.     return method(self, database, *args, **kwargs)
  241.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  242.     return self._execute(database)
  243.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  244.     cursor = database.execute(self)
  245.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  246.     return self.execute_sql(sql, params, commit=commit)
  247.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  248.     self.commit()
  249.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  250.     reraise(new_type, new_type(*exc_args), traceback)
  251.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  252.     raise value.with_traceback(tb)
  253.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  254.     cursor.execute(sql, params or ())
  255. peewee.OperationalError: database is locked
  256. Wed Jan 23 15:11:02 2019 <Greenlet at 0x1656ca86c28: place_results(<__main__.Page object at 0x000001656F3C5B38>)> failed with OperationalError
  257.  
  258. Recognizing images of pdf optically
  259. Traceback (most recent call last):
  260.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  261.     cursor.execute(sql, params or ())
  262. sqlite3.OperationalError: database is locked
  263.  
  264. During handling of the above exception, another exception occurred:
  265.  
  266. Traceback (most recent call last):
  267.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  268.     result = self._run(*self.args, **self.kwargs)
  269.   File ".\emma_pdfs.py", line 284, in place_results
  270.     document.save()
  271.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  272.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  273.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  274.     return method(self, database, *args, **kwargs)
  275.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  276.     return self._execute(database)
  277.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  278.     cursor = database.execute(self)
  279.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  280.     return self.execute_sql(sql, params, commit=commit)
  281.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  282.     self.commit()
  283.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  284.     reraise(new_type, new_type(*exc_args), traceback)
  285.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  286.     raise value.with_traceback(tb)
  287.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  288.     cursor.execute(sql, params or ())
  289. peewee.OperationalError: database is locked
  290. Wed Jan 23 15:11:07 2019 <Greenlet at 0x1656ca86df0: place_results(<__main__.Page object at 0x000001656F4FC908>)> failed with OperationalError
  291.  
  292. Traceback (most recent call last):
  293.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  294.     cursor.execute(sql, params or ())
  295. sqlite3.OperationalError: database is locked
  296.  
  297. During handling of the above exception, another exception occurred:
  298.  
  299. Traceback (most recent call last):
  300.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  301.     result = self._run(*self.args, **self.kwargs)
  302.   File ".\emma_pdfs.py", line 284, in place_results
  303.     document.save()
  304.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  305.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  306.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  307.     return method(self, database, *args, **kwargs)
  308.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  309.     return self._execute(database)
  310.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  311.     cursor = database.execute(self)
  312.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  313.     return self.execute_sql(sql, params, commit=commit)
  314.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  315.     self.commit()
  316.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  317.     reraise(new_type, new_type(*exc_args), traceback)
  318.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  319.     raise value.with_traceback(tb)
  320.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  321.     cursor.execute(sql, params or ())
  322. peewee.OperationalError: database is locked
  323. Wed Jan 23 15:11:12 2019 <Greenlet at 0x1656ca86e88: place_results(<__main__.Page object at 0x000001656F4FC080>)> failed with OperationalError
  324.  
  325. Traceback (most recent call last):
  326.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  327.     cursor.execute(sql, params or ())
  328. sqlite3.OperationalError: database is locked
  329.  
  330. During handling of the above exception, another exception occurred:
  331.  
  332. Traceback (most recent call last):
  333.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  334.     result = self._run(*self.args, **self.kwargs)
  335.   File ".\emma_pdfs.py", line 284, in place_results
  336.     document.save()
  337.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  338.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  339.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  340.     return method(self, database, *args, **kwargs)
  341.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  342.     return self._execute(database)
  343.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  344.     cursor = database.execute(self)
  345.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  346.     return self.execute_sql(sql, params, commit=commit)
  347.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  348.     self.commit()
  349.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  350.     reraise(new_type, new_type(*exc_args), traceback)
  351.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  352.     raise value.with_traceback(tb)
  353.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  354.     cursor.execute(sql, params or ())
  355. peewee.OperationalError: database is locked
  356. Wed Jan 23 15:11:17 2019 <Greenlet at 0x1656ca86f20: place_results(<__main__.Page object at 0x000001656F4FC390>)> failed with OperationalError
  357.  
  358. Traceback (most recent call last):
  359.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  360.     cursor.execute(sql, params or ())
  361. sqlite3.OperationalError: database is locked
  362.  
  363. During handling of the above exception, another exception occurred:
  364.  
  365. Traceback (most recent call last):
  366.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  367.     result = self._run(*self.args, **self.kwargs)
  368.   File ".\emma_pdfs.py", line 284, in place_results
  369.     document.save()
  370.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  371.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  372.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  373.     return method(self, database, *args, **kwargs)
  374.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  375.     return self._execute(database)
  376.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  377.     cursor = database.execute(self)
  378.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  379.     return self.execute_sql(sql, params, commit=commit)
  380.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  381.     self.commit()
  382.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  383.     reraise(new_type, new_type(*exc_args), traceback)
  384.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  385.     raise value.with_traceback(tb)
  386.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  387.     cursor.execute(sql, params or ())
  388. peewee.OperationalError: database is locked
  389. Wed Jan 23 15:11:22 2019 <Greenlet at 0x1656ca865a0: place_results(<__main__.Page object at 0x000001656F4FC668>)> failed with OperationalError
  390.  
  391. Traceback (most recent call last):
  392.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  393.     cursor.execute(sql, params or ())
  394. sqlite3.OperationalError: database is locked
  395.  
  396. During handling of the above exception, another exception occurred:
  397.  
  398. Traceback (most recent call last):
  399.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  400.     result = self._run(*self.args, **self.kwargs)
  401.   File ".\emma_pdfs.py", line 284, in place_results
  402.     document.save()
  403.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  404.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  405.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  406.     return method(self, database, *args, **kwargs)
  407.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  408.     return self._execute(database)
  409.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  410.     cursor = database.execute(self)
  411.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  412.     return self.execute_sql(sql, params, commit=commit)
  413.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  414.     self.commit()
  415.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  416.     reraise(new_type, new_type(*exc_args), traceback)
  417.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  418.     raise value.with_traceback(tb)
  419.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  420.     cursor.execute(sql, params or ())
  421. peewee.OperationalError: database is locked
  422. Wed Jan 23 15:19:53 2019 <Greenlet at 0x1656ca86508: place_results(<__main__.Page object at 0x000001656F4FC7F0>)> failed with OperationalError
  423.  
  424. Traceback (most recent call last):
  425.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  426.     cursor.execute(sql, params or ())
  427. sqlite3.OperationalError: database is locked
  428.  
  429. During handling of the above exception, another exception occurred:
  430.  
  431. Traceback (most recent call last):
  432.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  433.     result = self._run(*self.args, **self.kwargs)
  434.   File ".\emma_pdfs.py", line 284, in place_results
  435.     document.save()
  436.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  437.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  438.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  439.     return method(self, database, *args, **kwargs)
  440.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  441.     return self._execute(database)
  442.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  443.     cursor = database.execute(self)
  444.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  445.     return self.execute_sql(sql, params, commit=commit)
  446.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  447.     self.commit()
  448.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  449.     reraise(new_type, new_type(*exc_args), traceback)
  450.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  451.     raise value.with_traceback(tb)
  452.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  453.     cursor.execute(sql, params or ())
  454. peewee.OperationalError: database is locked
  455. Wed Jan 23 15:19:58 2019 <Greenlet at 0x1656ca4be88: place_results(<__main__.Page object at 0x000001656F4FCCC0>)> failed with OperationalError
  456.  
  457. Traceback (most recent call last):
  458.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  459.     cursor.execute(sql, params or ())
  460. sqlite3.OperationalError: database is locked
  461.  
  462. During handling of the above exception, another exception occurred:
  463.  
  464. Traceback (most recent call last):
  465.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  466.     result = self._run(*self.args, **self.kwargs)
  467.   File ".\emma_pdfs.py", line 284, in place_results
  468.     document.save()
  469.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  470.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  471.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  472.     return method(self, database, *args, **kwargs)
  473.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  474.     return self._execute(database)
  475.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  476.     cursor = database.execute(self)
  477.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  478.     return self.execute_sql(sql, params, commit=commit)
  479.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  480.     self.commit()
  481.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  482.     reraise(new_type, new_type(*exc_args), traceback)
  483.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  484.     raise value.with_traceback(tb)
  485.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  486.     cursor.execute(sql, params or ())
  487. peewee.OperationalError: database is locked
  488. Wed Jan 23 15:20:08 2019 <Greenlet at 0x1656ca4b0e0: place_results(<__main__.Page object at 0x000001656F4FC048>)> failed with OperationalError
  489.  
  490. Recognizing images of pdf optically
  491. Traceback (most recent call last):
  492.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  493.     cursor.execute(sql, params or ())
  494. sqlite3.OperationalError: database is locked
  495.  
  496. During handling of the above exception, another exception occurred:
  497.  
  498. Traceback (most recent call last):
  499.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  500.     result = self._run(*self.args, **self.kwargs)
  501.   File ".\emma_pdfs.py", line 284, in place_results
  502.     document.save()
  503.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 5180, in save
  504.     rows = self.update(**field_dict).where(self._pk_expr()).execute()
  505.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1447, in inner
  506.     return method(self, database, *args, **kwargs)
  507.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1518, in execute
  508.     return self._execute(database)
  509.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 1928, in _execute
  510.     cursor = database.execute(self)
  511.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2497, in execute
  512.     return self.execute_sql(sql, params, commit=commit)
  513.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2491, in execute_sql
  514.     self.commit()
  515.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2287, in __exit__
  516.     reraise(new_type, new_type(*exc_args), traceback)
  517.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 170, in reraise
  518.     raise value.with_traceback(tb)
  519.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\peewee.py", line 2484, in execute_sql
  520.     cursor.execute(sql, params or ())
  521. peewee.OperationalError: database is locked
  522. Wed Jan 23 15:20:13 2019 <Greenlet at 0x1656ca4b210: place_results(<__main__.Page object at 0x000001656F4FC6D8>)> failed with OperationalError
  523.  
  524. Traceback (most recent call last):
  525.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  526.     result = self._run(*self.args, **self.kwargs)
  527.   File ".\emma_pdfs.py", line 269, in place_results
  528.     images = pdf2image.convert_from_path(document.pdf_path)
  529.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\pdf2image\pdf2image.py", line 23, in convert_from_path
  530.     proc = Popen(args, stdout=PIPE, stderr=PIPE)
  531.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 554, in __init__
  532.     restore_signals, start_new_session)
  533.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 898, in _execute_child
  534.     startupinfo)
  535. FileNotFoundError: [WinError 2] The system cannot find the file specified
  536. Wed Jan 23 15:20:13 2019 <Greenlet at 0x1656ca86800: place_results(<__main__.Page object at 0x000001656F4DDA58>)> failed with FileNotFoundError
  537.  
  538. Traceback (most recent call last):
  539.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  540.     result = self._run(*self.args, **self.kwargs)
  541.   File ".\emma_pdfs.py", line 269, in place_results
  542.     images = pdf2image.convert_from_path(document.pdf_path)
  543.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\pdf2image\pdf2image.py", line 23, in convert_from_path
  544.     proc = Popen(args, stdout=PIPE, stderr=PIPE)
  545.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 554, in __init__
  546.     restore_signals, start_new_session)
  547.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 898, in _execute_child
  548.     startupinfo)
  549. FileNotFoundError: [WinError 2] The system cannot find the file specified
  550. Wed Jan 23 15:20:13 2019 <Greenlet at 0x1656ca86d58: place_results(<__main__.Page object at 0x000001656F4FC978>)> failed with FileNotFoundError
  551.  
  552. Traceback (most recent call last):
  553.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  554.     result = self._run(*self.args, **self.kwargs)
  555.   File ".\emma_pdfs.py", line 269, in place_results
  556.     images = pdf2image.convert_from_path(document.pdf_path)
  557.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\pdf2image\pdf2image.py", line 23, in convert_from_path
  558.     proc = Popen(args, stdout=PIPE, stderr=PIPE)
  559.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 554, in __init__
  560.     restore_signals, start_new_session)
  561.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 898, in _execute_child
  562.     startupinfo)
  563. FileNotFoundError: [WinError 2] The system cannot find the file specified
  564. Wed Jan 23 15:20:13 2019 <Greenlet at 0x1656ca4b9c8: place_results(<__main__.Page object at 0x000001656F4FCB38>)> failed with FileNotFoundError
  565.  
  566. Traceback (most recent call last):
  567.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\greenlet.py", line 536, in run
  568.     result = self._run(*self.args, **self.kwargs)
  569.   File ".\emma_pdfs.py", line 269, in place_results
  570.     images = pdf2image.convert_from_path(document.pdf_path)
  571.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\pdf2image\pdf2image.py", line 23, in convert_from_path
  572.     proc = Popen(args, stdout=PIPE, stderr=PIPE)
  573.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 554, in __init__
  574.     restore_signals, start_new_session)
  575.   File "C:\Users\dcestau\AppData\Local\Programs\Python\Python36\lib\site-packages\gevent\subprocess.py", line 898, in _execute_child
  576.     startupinfo)
  577. FileNotFoundError: [WinError 2] The system cannot find the file specified
  578. Wed Jan 23 15:20:13 2019 <Greenlet at 0x1656ca86898: place_results(<__main__.Page object at 0x000001656CABCCF8>)> failed with FileNotFoundError
  579.  
  580. [IV] The process is done.
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top