Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not use the service - Error #4

Closed
ghost opened this issue May 13, 2020 · 1 comment
Closed

Could not use the service - Error #4

ghost opened this issue May 13, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented May 13, 2020

Hi
I could not use the service. I got this error and I guess it is because of the python version.

  File "app.py", line 21, in <module>
    import discoursegraphs as dg
  File "/usr/lib/python2.7/site-packages/discoursegraphs/__init__.py", line 23, in <module>
    from discoursegraphs.readwrite import (
  File "/usr/lib/python2.7/site-packages/discoursegraphs/readwrite/__init__.py", line 20, in <module>
    from discoursegraphs.readwrite.freqt import docgraph2freqt, write_freqt
  File "/usr/lib/python2.7/site-packages/discoursegraphs/readwrite/freqt.py", line 14, in <module>
    from discoursegraphs.readwrite.tree import sorted_bfs_successors
  File "/usr/lib/python2.7/site-packages/discoursegraphs/readwrite/tree.py", line 13, in <module>
    from nltk.tree import Tree, ParentedTree
  File "/usr/lib/python2.7/site-packages/nltk/__init__.py", line 128, in <module>
    from nltk.collocations import *
  File "/usr/lib/python2.7/site-packages/nltk/collocations.py", line 35, in <module>
    from nltk.probability import FreqDist
  File "/usr/lib/python2.7/site-packages/nltk/probability.py", line 333
    print("%*s" % (width, samples[i]), end=" ")
@ghost ghost changed the title Filed due to python version Could not use the service - Error May 13, 2020
@ghost
Copy link
Author

ghost commented May 13, 2020

Resolved this issue by installing an old version of nltk
pip install nltk==3.0

@ghost ghost closed this as completed May 13, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants