zepheira / pybibframe

Open-source tools for working with BIBFRAME (see: http://bibframe.org), by default BIBFRAME Lite (see: http://bibfra.me) and more generally Library Linked Data. For some background thoughts see: https://medium.com/library-link-network/libraries-jet-fuel-and-the-information-age-8b28d5eb1339
Apache License 2.0
23 stars 13 forks source link

Blows up (SyntaxError) in Python 3.7+ #24

Closed uogbuji closed 5 years ago

uogbuji commented 5 years ago

If you try to run pybf in the latest Python versions you will get tracebacks ending with:

  File "/Users/uche/.local/pyenv/zdev/lib/python3.7/site-packages/bibframe/reader/engine.py", line 171
    task = asyncio.async(wrap_task(), loop=loop)
                       ^
SyntaxError: invalid syntax

The poor asyncio design has finally caught up with us. The fact that async is now a keyword, which is the root cause here is just one of the many issues. I'm working on a core refactoring I've wanted to do for over a year.

uogbuji commented 5 years ago

This is fixed on the develop branch (dbb533c) but I have some things in downstream dependencies to sort out before making a full release. If you happen to be blocked on this, though, just switch branches.

uogbuji commented 5 years ago

The full release 1.1.1 should address this issue.