Errors - mrmaxguns/wonderwordsmodule GitHub Wiki

Welcome to the errors page

Here you can find the most common errors when installing and using the wonderwords module.

Table of contents


Could not find a version that satisfies the requirement wonderwords

Error message:

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

Solution

  1. Make sure you have met all of the requirements:
    • At least python 3.6
    • importlib_resources OR importlib.resources (check README.md)
  2. 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

  1. Contact us: @mrmaxguns, if the error persists

Requirement already satisfied: wonderwords

Error message

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)

Solution

  1. Look at the last number (the version number). If the version number is 1.1.9 you already have the latest version installed, and you are done. Otherwise, proceed to step 2.
  2. If the version is less than 1.1.9 you can install the latest version in the following way:

pip install wonderwords==1.1.9

  1. Contact us: @mrmaxguns, if the error persists

ModuleNotFoundError: No module named 'wonderwords'

Error message

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'

Solution

  1. Make sure you imported it correctly: import wonderwords or from wonderwords import random_word or import wonderwords.random_word
  2. Make sure you installed the latest version of wonderwords: pip install wonderwords==1.1.9
  3. Contact us: @mrmaxguns, if the error persists

AttributeError: module 'wonderwords.random_word' has no attribute ...

Error message:

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'

Solution

  1. 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()
  1. Contact us: @mrmaxguns, if the error persists

Other errors

  1. Make sure you are installing the latest version with python 3:

pip3 install wonderwords==1.1.9

  1. Make sure you are correctly importing and using the module (see the documentation)

  2. Contact us: @mrmaxguns, if the error persists

⚠️ **GitHub.com Fallback** ⚠️