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

hit ImportError: cannot import name 'WordNet' from 'wn' #65

Open
TonyZhang03 opened this issue Mar 11, 2021 · 8 comments
Open

hit ImportError: cannot import name 'WordNet' from 'wn' #65

TonyZhang03 opened this issue Mar 11, 2021 · 8 comments

Comments

@TonyZhang03
Copy link

When running the example code given, hit above error.
image

@frankTian92
Copy link

I got the same error of "cannot import name 'WordNet' from 'wn'". And one more question, what is the wn? I do not find the definition of wn.

@frankTian92
Copy link

frankTian92 commented Mar 15, 2021

I have solved this problem. It is because the version of 'wn' package is too high. I have degrade 'wn' to the version of 0.0.23, and it works

@goodmami
Copy link
Contributor

goodmami commented Jun 4, 2021

This was fixed in 20885bf but, currently, only if you install from the source code. The last release on GitHub and version on PyPI do not include the change.

@YashMeh
Copy link

YashMeh commented Jul 16, 2021

I solved this issue by specifying the pywsd version for python3

pip3 install pywsd==1.0.2

@Cbhihe
Copy link

Cbhihe commented Nov 10, 2021

This exact same issue is still hot.
@YashMeh 's suggestion above helps you get out of the rut even though the working version is not the latest when installing from PyPI.org with python -m pip install pywsd==1.0.2.

@goodmami: Is there a notion of when the fix will reach the package on GitHub and PyPI.org ?

(Thanks to the code authors and contributors for making this available.)

@goodmami
Copy link
Contributor

@Cbhihe I am not a maintainer of this project, so I cannot say.

@alvations any chance we can get a new release on PyPI? It only needs to be the current code on GitHub plus a new version (also see #64; the 1.2.4 release on PyPI is from 2019 but the version string in the Git repository was only changed to 1.2.4 earlier this year). As mentioned on #68 (comment), we need a new version string, like 1.2.5 or 1.3.

@AliFadaei90
Copy link

I solved this issue by specifying the pywsd version for python3

pip3 install pywsd==1.0.2

Worked

@goodmami
Copy link
Contributor

@alvations any chance we can get a new release on PyPI? It only needs to be the current code on GitHub plus a new version (also see #64; the 1.2.4 release on PyPI is from 2019 but the version string in the Git repository was only changed to 1.2.4 earlier this year). As mentioned on #68 (comment), we need a new version string, like 1.2.5 or 1.3.

@alvations pretty please?

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

6 participants