mrmaxguns / wonderwordsmodule

Generate random words and sentences with ease in Python. Be on the lookout for bugfixes and speed improvements in 2.3
https://wonderwords.readthedocs.io
MIT License
53 stars 11 forks source link

Console commands not working at all #23

Open RealmAyres opened 9 months ago

RealmAyres commented 9 months ago

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):

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

mrmaxguns commented 7 months ago

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