Errors - mrmaxguns/wonderwordsmodule GitHub Wiki
Here you can find the most common errors when installing and using the wonderwords module.
- Could not find a version that satisfies the requirement wonderwords
- Requirement already satisfied wonderwords in ...
- ModuleNotFoundError: No module named 'wonderwords'
- Other errors
If you get an error similar to this one:
$ pip install wonderwords
Collecting wonderwords
Cache entry deserialization failed, entry ignored
Could not find a version that satisfies the requirement wonderwords (from versions: )
No matching distribution found for wonderwords
- Make sure you have met all of the requirements:
- At least python 3.6
- importlib_resources OR importlib.resources (check README.md)
- Make sure you are installing this with python 3. If your default version isn't python 3, try installing with this command:
pip3 install wonderwords
- Contact us: @mrmaxguns, if the error persists
If the last line of the shell looks similar to this:
Requirement already satisfied: wonderwords in /home/maxim/.local/lib/python3.6/site-packages (1.1.X)
- Look at the last number (the version number). If the version number is
1.1.9you already have the latest version installed, and you are done. Otherwise, proceed to step 2. - If the version is less than
1.1.9you can install the latest version in the following way:
pip install wonderwords==1.1.9
- Contact us: @mrmaxguns, if the error persists
If the error in your python interpreter looks like this:
Traceback (most recent call last):
File "<pyshell#0>", line 1, in <module>
import wonderwords
ModuleNotFoundError: No module named 'wonderwords'- Make sure you imported it correctly:
import wonderwordsorfrom wonderwords import random_wordorimport wonderwords.random_word - Make sure you installed the latest version of wonderwords:
pip install wonderwords==1.1.9 - Contact us: @mrmaxguns, if the error persists
If your error message is similar to this:
Traceback (most recent call last):
File "<pyshell#2>", line 1, in <module>
random_word.word()
AttributeError: module 'wonderwords.random_word' has no attribute 'word'- Make sure you created an object using the class. For example:
from wonderwords import random_word
# Create an object called w:
w = random_word.random_word()
# Create a random word:
w.word()- Contact us: @mrmaxguns, if the error persists
- Make sure you are installing the latest version with python 3:
pip3 install wonderwords==1.1.9
-
Make sure you are correctly importing and using the module (see the documentation)
-
Contact us: @mrmaxguns, if the error persists