goodmami / mrs-to-penman

Utilities for converting MRS data to the PENMAN serialization of DMRS
MIT License
2 stars 1 forks source link

ImportError when using the 1.0 version of PyDelphin #2

Open jadecxliu opened 4 years ago

jadecxliu commented 4 years ago

Hi,

Thanks for the great work!

I tried to run mrs-to-penman.py with 0.0.2 version of delphin (derived from pip install delphin). However, it caused several import errors as below:

It seems that the code has not updated in parallel with the current version of delphin. Could you update the code or give me some suggestions on transitioning the code to avoid ImportError? I would also appreciate it if you could provide the corresponding old version delphin.

Thanks.

goodmami commented 4 years ago

Hi, thanks for the bug report. I don't have time for a proper fix right now, but let's leave the issue open to remind me.

For now a workaround is to use a previous version of PyDelphin (preferably in a virtual environment):

pip install pydelphin==0.9.2

You also need Penman:

pip install penman==0.6.2

Let me know if you're still having issues.

jadecxliu commented 4 years ago

Thanks for the useful instruction.

arademaker commented 1 year ago

Only works until Python 3.9.

goodmami commented 1 year ago

@arademaker thanks for the context. Python 0.9.2 was only supported through Python 3.7 (which is now the lowest active version of Python).