fkodom / semantle

Fastest 'Semantle' solver this side of the Mississippi.
MIT License
16 stars 1 forks source link

Cannot seem to get it to work on Windows. #2

Open Rivian01 opened 2 years ago

Rivian01 commented 2 years ago

I followed the instructions precisely, but when I type solve-semantle, it says 'solve-semantle' is not recognized as an internal or external command, operable program or batch file. What do I do?

fkodom commented 1 year ago

@Rivian01 Sorry to hear that. Unfortunately, I don't have a Windows machine, so it's difficult for me to test/debug this.

Are you familiar with Python? The solve-semantle CLI command is just a shortcut that points to a Python file. So you should also be able to run it locally:

git clone https://github.com/fkodom/semantle.git
cd semantle
python -m semantle.solver

Maybe that's a workaround, since your shell isn't recognizing the solve-semantle command?

Rivian01 commented 1 year ago

@fkodom Hello! I followed the instructions you sent me. Alas, it did not seem to work. It gave me an error. File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\runpy.py", line 86, in _run_code exec(code, run_globals) File "C:\Users\CoobOnWindows\Documents\semantle\semantle\solver.py", line 133, in <module> main() File "C:\Users\CoobOnWindows\Documents\semantle\semantle\solver.py", line 129, in main AssistiveSolver(uncertainty=args.uncertainty).solve() File "C:\Users\CoobOnWindows\Documents\semantle\semantle\solver.py", line 90, in __init__ super().__init__(uncertainty=uncertainty) File "C:\Users\CoobOnWindows\Documents\semantle\semantle\solver.py", line 29, in __init__ self.words = load_word_vectors() File "C:\Users\CoobOnWindows\Documents\semantle\semantle\data.py", line 28, in load_word_vectors with open(WORDS_PATH, "rb") as f: FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\CoobOnWindows\\Documents\\semantle\\semantle\\..\\data\\words.pkl'