GithubHelp home page GithubHelp logo

deutsche-digitale-bibliothek / ddblabs-ometha Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 2.0 1.63 MB

A fast and resilient OAI PMH Harvester with TUI and CLI and support for automation.

License: GNU General Public License v3.0

Python 96.61% Shell 3.39%
cultural-heritage harvester metadata oai-pmh digital-libraries oai-pmh-client

ddblabs-ometha's People

Contributors

karkraeg avatar mat141cel avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

mat141cel

ddblabs-ometha's Issues

Fehler beim Harvesten der OAI Schnittstelle der BSB (MARC)

Das Harvesten der OAI-Schnittstelle der Bayerische Staatsbibliothek (BSB) für MARC-Daten scheitert mit neueren Versionen von Ometha. Mit anderen OAI-Schnittstellen treten die u. g. Fehler nicht auf.
Mit z. B. Ometha 1.8.2 (Windows, exe) funktoniert das Harvesten der BSB-OAI-Schnittstelle.

Alle Beispielaufrufe verwenden die folgende Konfiguration:

BSB_m21.yaml

name: BSB_m21
baseurl: http://bdr.oai.bsb-muenchen.de/OAIHandler
metadataPrefix: MarcXchange
datengeber: BSB
set:
   - all
fromdate: null
untildate: null
timeout: 4
outputfolder: BSB_m21
debug: false
lazy: false
numberofprocesses: 2

Der Aufruf ist jeweils
ometha conf -c BSB_m21.yaml

Ubuntu über SSH (Ometha 1.9.5) schläg fehl:

connectionpool.py 836 urlopen
retries = retries.increment(method, url, response=response, _pool=self)

retry.py 574 increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))

urllib3.exceptions.MaxRetryError:
HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))

--------------------------------------------------------------------------------------------------------------------------
ometha 8 <module>
sys.exit(main())

__init__.py 252 main
session.get(baseurl, verify=False, timeout=(20, 80))

sessions.py 542 get
return self.request('GET', url, **kwargs)

sessions.py 529 request
resp = self.send(prep, **send_kwargs)

sessions.py 645 send
r = adapter.send(request, **kwargs)

adapters.py 510 send
raise RetryError(e, request=request)

requests.exceptions.RetryError:
HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))

Ein entsprechender Aufruf mit Curl funktioniert und liefert die ersten Identifier:

curl -G -d "verb=ListIdentifiers" -d "metadataPrefix=MarcXchange" -d "set=all" http://bdr.oai.bsb-muenchen.de/OAIHandler

Der Aufruf mit Ometha 1.9.6 (exe) unter Windows schlägt ebenfalls fehl:

Traceback (most recent call last):
  File "requests\adapters.py", line 489, in send
  File "urllib3\connectionpool.py", line 878, in urlopen
  File "urllib3\connectionpool.py", line 878, in urlopen
  File "urllib3\connectionpool.py", line 878, in urlopen
  [Previous line repeated 1 more time]
  File "urllib3\connectionpool.py", line 868, in urlopen
  File "urllib3\util\retry.py", line 592, in increment
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "run.py", line 3, in <module>
  File "ometha\__init__.py", line 252, in main
  File "requests\sessions.py", line 600, in get
  File "requests\sessions.py", line 587, in request
  File "requests\sessions.py", line 701, in send
  File "requests\adapters.py", line 556, in send
requests.exceptions.RetryError: HTTPConnectionPool(host='bdr.oai.bsb-muenchen.de', port=80): Max retries exceeded with url: /OAIHandler (Caused by ResponseError('too many 500 error responses'))
[8092] Failed to execute script 'run' due to unhandled exception!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.