google-code-export / amcat

Automatically exported from code.google.com/p/amcat
0 stars 0 forks source link

TestBZK fails #612

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Running test amcat.TestBZK

2013-10-08 15:50:04,365 [INFO amcat.scraping.pdf:49] loading document...
2013-10-08 15:50:04,370 [INFO amcat.scripts.article_upload.upload:105] 
Importing BZKPDFScraper from 
/home/martijn/code/amcat/amcat/scripts/article_upload/test_files/bzk/test.pdf 
into 
2013-10-08 15:50:04,370 [ERROR amcat.scraping.controller:61] failed scraping 
<amcat.scripts.article_upload.bzk_pdf.BZKPDFScraper object at 0x592b8d0>
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 59, in scrape
    articles = self._scrape(scraper)
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 131, in _scrape
    log.info("RobustController starting {scraper.__class__.__name__} for date '{scraper.options[date]}'".format(**locals()))
KeyError: 'date'

Error
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/bzk_pdf.py", line 132, in setUp
    self.result = self.bzk.run()
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/upload.py", line 111, in run
    raise Exception("No atricles were imported")
Exception: No atricles were imported

2013-10-08 15:50:04,651 [INFO amcat.scraping.pdf:49] loading document...
2013-10-08 15:50:04,653 [INFO amcat.scripts.article_upload.upload:105] 
Importing BZKPDFScraper from 
/home/martijn/code/amcat/amcat/scripts/article_upload/test_files/bzk/test.pdf 
into 
2013-10-08 15:50:04,653 [ERROR amcat.scraping.controller:61] failed scraping 
<amcat.scripts.article_upload.bzk_pdf.BZKPDFScraper object at 0x593c4d0>
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 59, in scrape
    articles = self._scrape(scraper)
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 131, in _scrape
    log.info("RobustController starting {scraper.__class__.__name__} for date '{scraper.options[date]}'".format(**locals()))
KeyError: 'date'

Error
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/bzk_pdf.py", line 132, in setUp
    self.result = self.bzk.run()
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/upload.py", line 111, in run
    raise Exception("No atricles were imported")
Exception: No atricles were imported

2013-10-08 15:50:04,936 [INFO amcat.scraping.pdf:49] loading document...

Error
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/bzk_pdf.py", line 132, in setUp
    self.result = self.bzk.run()
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/upload.py", line 111, in run
    raise Exception("No atricles were imported")
Exception: No atricles were imported

2013-10-08 15:50:04,942 [INFO amcat.scripts.article_upload.upload:105] 
Importing BZKPDFScraper from 
/home/martijn/code/amcat/amcat/scripts/article_upload/test_files/bzk/test.pdf 
into 
2013-10-08 15:50:04,942 [ERROR amcat.scraping.controller:61] failed scraping 
<amcat.scripts.article_upload.bzk_pdf.BZKPDFScraper object at 0x59407d0>
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 59, in scrape
    articles = self._scrape(scraper)
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 131, in _scrape
    log.info("RobustController starting {scraper.__class__.__name__} for date '{scraper.options[date]}'".format(**locals()))
KeyError: 'date'
2013-10-08 15:50:05,218 [INFO amcat.scraping.pdf:49] loading document...
2013-10-08 15:50:05,223 [INFO amcat.scripts.article_upload.upload:105] 
Importing BZKPDFScraper from 
/home/martijn/code/amcat/amcat/scripts/article_upload/test_files/bzk/test.pdf 
into 
2013-10-08 15:50:05,223 [ERROR amcat.scraping.controller:61] failed scraping 
<amcat.scripts.article_upload.bzk_pdf.BZKPDFScraper object at 0x592df10>
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 59, in scrape
    articles = self._scrape(scraper)
  File "/home/martijn/code/amcat/amcat/scraping/controller.py", line 131, in _scrape
    log.info("RobustController starting {scraper.__class__.__name__} for date '{scraper.options[date]}'".format(**locals()))
KeyError: 'date'

Error
Traceback (most recent call last):
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/bzk_pdf.py", line 132, in setUp
    self.result = self.bzk.run()
  File "/home/martijn/code/amcat/amcat/scripts/article_upload/upload.py", line 111, in run
    raise Exception("No atricles were imported")
Exception: No atricles were imported

Original issue reported on code.google.com by Martijn....@gmail.com on 8 Oct 2013 at 1:55

GoogleCodeExporter commented 9 years ago
Excuus, ik had even de unit tests moeten runnen.

Original comment by Toon.Alfrink@gmail.com on 12 Oct 2013 at 8:19

GoogleCodeExporter commented 9 years ago
Ook toegevoegd aan git: 
https://github.com/amcat/amcat/commit/5b3df34cecaeb568aa1357c92e3fd454851a7253

De test faalde overigens nog steeds.. ;-)

Original comment by Martijn....@gmail.com on 13 Oct 2013 at 12:35