[ckan-dev] CKAN 2.8 Harvester not working: 'ImportError: No module named factory'

Florian Hoedt florian.hoedt at thuenen.de
Thu Sep 6 10:00:15 UTC 2018


Hello List,

I have read about several issues with CKAN Harvesters and version 2.8. After failing to harvest a demo csw instance from pycsw I tried a run_test with an Import Error: No module named factory trace:
'''
Source id: 53622384-08a7-4372-9cb1-3eafceb70367
      url: http://demo.pycsw.org/services/csw?service=CSW&version=2.0.2&request=GetCapabilities
     type: csw
   active: True
frequency: MANUAL
     jobs: 1

(default) administrator at GDIT01-BS:/usr/lib/ckan/default/src/ckanext-harvest$ paster --plugin=ckanext-harvest harvester run_test 53622384-08a7-4372-9cb1-3eafceb70367  --config=/etc/ckan/default/production.ini

Traceback (most recent call last):
  File "/usr/lib/ckan/default/bin/paster", line 11, in <module>
    sys.exit(run())
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 102, in run
    invoke(command, command_name, options, args[1:])
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 141, in invoke
    exit_code = runner.run(args)
  File "/usr/lib/ckan/default/local/lib/python2.7/site-packages/paste/script/command.py", line 236, in run
    result = self.command()
  File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line 177, in command
    self.run_test_harvest()
  File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/commands/harvester.py", line 421, in run_test_harvest
    from ckanext.harvest.tests import lib
  File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/tests/lib.py", line 1, in <module>
    from ckanext.harvest.tests.factories import HarvestSourceObj, HarvestJobObj
  File "/usr/lib/ckan/default/src/ckanext-harvest/ckanext/harvest/tests/factories.py", line 1, in <module>
    import factory
ImportError: No module named factory
'''

full log: https://gist.github.com/gannebamm/2fb8ac65af9c3193760f64689630a338

seems like some extension is not loaded properly?

thanks
Florian

-- 
MSc Florian Hoedt
Koordinator Geoinformation | Coordinator Geoinformatics

Thünen-Institut, Zentrum für Informationsmanagement | Thünen Institute, Centre for Information Management
Bundesallee 44
38116 Braunschweig

Tel:  +49 531 596-1405
Fax:  +49 531 596-1499
Mail: florian.hoedt at thuenen.de
Web:  www.thuenen.de

Das Johann Heinrich von Thünen-Institut, Bundesforschungsinstitut für Ländliche Räume, Wald und Fischerei - kurz: Thünen-Institut - besteht aus 14 Fachinstituten, die in den Bereichen Ökonomie, Ökologie und Technologie forschen und die Politik beraten.

The Johann Heinrich von Thünen Institute, Federal Research Institute for Rural Areas, Forestry and Fisheries – Thünen Institute in brief – consists of 14 specialized institutes that carry out research and provide policy advice in the fields of economy, ecology and technology.


More information about the ckan-dev mailing list