Dear Jan, thank you for the patch! I guess it works, but the tested repository is too slow, so I'm running in a timeout now! The URL I tried was http://repositorium-dev.uni-muenster.de/oai/miami. This is our staging system, which is so far the only one to produce marcxml output. You can't access it, it's only internal! You can access http://repositorium.uni-muenster.de/oai/miami instead, but there is only support for oai_dc, mods, mets and epicur. And yes, I tried to setup the OAI data provider as OAI PMH source. Initially it's all working, the sets are retrieved...
Best regards, Werner Am 06.08.2015 um 12:09 schrieb Jan Åge Lavik:
Dear Werner, First of all, welcome to Invenio and apologies for the late response. Indeed you have identified a problem in the legacy oaiharvest tool. I have provided a fix here: https://github.com/inveniosoftware/invenio/pull/3428 If you are familiar with git you can try applying this patch using git cherry-pick inside your virtualenv sources. Note that this oaiharvest tool is currently being migrated to a separate package called Invenio-OAIHarvester (https://github.com/inveniosoftware/invenio-oaiharvester) which will be available soon. This will contain a new command line tool and web interface. Regarding the Internal Server Error you experienced, which URL were you trying to access? Did you try setting up an OAI PMH source in http://localhost:4000/admin/oaiharvest/oaiharvestadmin.py? Cheers, Jan --- Jan Age Lavik System Developer INSPIRE-HEP <http://inspirehep.net> Github: @jalavik <https://github.com/jalavik> Work phone: +41 22 76 78682 On Wed, Aug 5, 2015 at 11:01 AM, Werner Greßhoff <werner.gressh...@uni-muenster.de <mailto:werner.gressh...@uni-muenster.de>> wrote: Hello, at first I want to say, I'm new to Invenio and Python, so it might be my error or a misunderstanding! We've installed the Invenio 2.1-Version, installation was successful! Now we are trying to harvest from our existing repository some metadata beside the metadata delivered with the demo site. The call from the web frontend led to an "Internal Server Error", so I tried the CLI instead with the following command: oaiharvest -vListRecords -pmarcxml -f2004-04-01 -u2004-05-31 -o/tmp/marc.xml http://repositorium-dev.uni-muenster.de/oai/miami Leading to the following message: Traceback (most recent call last): File "./oaiharvest", line 9, in <module> load_entry_point('invenio==2.1.1.dev20150616', 'console_scripts', 'oaiharvest')() File "/home/system/.virtualenvs/invenio/src/invenio/invenio/base/helpers.py", line 50, in decorated_func result = f(*args, **kwargs) File "/home/system/.virtualenvs/invenio/src/invenio/invenio/legacy/oaiharvest/scripts/oaiharvest.py", line 51, in main return oai_main() File "/home/system/.virtualenvs/invenio/src/invenio/invenio/base/helpers.py", line 52, in decorated_func result = f(*args, **kwargs) File "/home/system/.virtualenvs/invenio/src/invenio/invenio/legacy/oaiharvest/daemon.py", line 398, in main dummy2, dummy3) = urllib.parse(base_url) TypeError: 'Module_six_moves_urllib_parse' object is not callable As a beginner in Python I've no idea what is going wrong. I started with looking at the output of sys.path, but that's directing to the invenio library paths, so I guess Python is importing the correct library. Does someone have a clue where I'm going wrong?! -- Mit freundlichen Grüßen Werner Greßhoff Dezernat 2 - Digitale Dienste Universitäts- und Landesbibliothek Münster
-- Mit freundlichen Grüßen Werner Greßhoff Dezernat 2 - Digitale Dienste Universitäts- und Landesbibliothek Münster
<<attachment: Werner_Gresshoff.vcf>>