wonderwordsmodule icon indicating copy to clipboard operation
wonderwordsmodule copied to clipboard

Console commands not working at all

Open RealmAyres opened this issue 1 year ago • 1 comments

Describe the bug Console commands not working corrections

To Reproduce Install using pip Run in python command line Gets error

Expected behavior wonderwords -v expected to display "Running wonderwords version 2.0.0a1"

Screenshots image image

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox
  • Version: 122.0

Additional context Also doesn't run in code using RandomSentence(), sentence() or any other

RealmAyres avatar Feb 05 '24 22:02 RealmAyres

Wonderwords provides two separate interfaces: a console interface and a Python interface.

The console interface, which includes things such as -v and -l is meant to be run in a terminal. I don't know Windows well, but I think you would use CMD for that. Note that this is not valid Python syntax, so when you tried to run those commands in a Python interpreter, there was an error.

The python interface is stuff like:

from wonderwords import RandomWord

r = RandomWord()

Try that. It shouldn't give you errors. Hope that helps

mrmaxguns avatar Apr 09 '24 16:04 mrmaxguns