uogbuji / pybibframe

OBSOLETE. Now maintained at https://github.com/zepheira/pybibframe ... Some open-source tools for working with BIBFRAME (see http://bibframe.org)
Apache License 2.0
3 stars 14 forks source link

marc2bf hangs #6

Closed azaroth42 closed 10 years ago

azaroth42 commented 10 years ago

Command line from the readme used:

 marc2bf -o resources.versa.json -r resources.ttl marc.xml

creates the two output files at length 0 and then hangs when getting events:

  File "/Users/azaroth/install/bin/marc2bf", line 60, in <module>
    run(inputs=args.inputs or sys.stdin, base=args.base, out=args.out, limit=args.limit, rdfttl=args.rdfttl, config=args.config, verbose=args.verbose, mods=args.mod)
  File "/Users/azaroth/install/bin/marc2bf", line 30, in run
    bfconvert(inputs=inputs, base=base, out=out, limit=limit, rdfttl=rdfttl, config=config, verbose=verbose, logger=logger)
  File "/Users/azaroth/install/lib/python3.4/site-packages/bibframe/reader/marcxml.py", line 157, in bfconvert
    loop.run_forever()
  File "/Users/azaroth/install/lib/python3.4/asyncio/base_events.py", line 184, in run_forever
    self._run_once()
  File "/Users/azaroth/install/lib/python3.4/asyncio/base_events.py", line 795, in _run_once
    event_list = self._selector.select(timeout)
  File "/Users/azaroth/install/lib/python3.4/selectors.py", line 494, in select
    kev_list = self._kqueue.control(None, max_ev, timeout)
KeyboardInterrupt
uogbuji commented 10 years ago

This project is out of date. We forked to the zepheira repo and it's maintained there.

https://github.com/zepheira/pybibframe

Guessing this is from an old problem with the async event loop.