clips / pattern

Web mining module for Python, with tools for scraping, natural language processing, machine learning, network analysis and visualization.
https://github.com/clips/pattern/wiki
BSD 3-Clause "New" or "Revised" License
8.75k stars 1.58k forks source link

Python 3.7 Issue #282

Open DHOFM opened 5 years ago

DHOFM commented 5 years ago

Hi, after installing pattern3 from pip: Following must be fixed:

  1. Use tree.py from git repository

  2. In Init def _read the raise StopIteration will only work to Python 3.6 Changing like: try: yield line except StopIteration: return

Will fix it

Barachia commented 5 years ago

Hi,

Thanks for the solution, I also ran into this problem using the `parsetree' function. Strangely however, is that on Windows 10 the code still worked without the modification and only on Ubuntu 18.04 it did need the modification. On both systems I used Python 3.7.3.

tuxayo commented 4 years ago

See also #62

Bounty here: https://github.com/clips/pattern/issues/62#issuecomment-391473725

zc4242 commented 4 years ago

Any plan to fix this issue? It seems to be an easy fix?

tuxayo commented 3 years ago

Any plan to fix this issue?

Yes, see #62

It seems to be an easy fix?

No ^^" see #62