You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
when I try to run the code. I got the following error: Exception has occurred: AttributeError 'Namespace' object has no attribute 'data_path' File "/home/antonioan/Documents/LanguageLearning/memograph/mg/options.py", line 209, in get_options if options.data_path is None: File "/home/antonioan/Documents/LanguageLearning/memograph/mg/main/__init__.py", line 16, in main options = get_options() File "/home/antonioan/Documents/LanguageLearning/memograph/mg/__main__.py", line 9, in <module> main() AttributeError: 'Namespace' object has no attribute 'data_path'
The text was updated successfully, but these errors were encountered:
You may be calling the program with no sub-command (drill, review, learn, etc.).
To fix the problem, try invoking the program as follows:
python3 -m mg --help
python3 -m mg status
but not
python3 -m mg (this seems to cause the error)
This should allow you to use the program (following the rest of the instructions). But, I still consider it a bug that when no subcommand is provided, the program crashes like this. I hadn't noticed that before, thanks for pointing it out, I will try to fix it so that by default a usage message is shown instead.
The above commit should fix the crash, if I was right that you were not providing a subcommand. The output when no subcommand is provided is now:
% python3 -m mg
usage: mg [-h] [-v] {drill,review,learn,status,info,checkup,history,recompute,commit,sync,missed} ...
mg: error: the following arguments are required: subcommand
If my guess was right (that you were not providing a subcommand), please reinstall and let me know if the issue is fixed for you, then I will close it. If my guess was wrong, please let me know if you still experience the issue, and let me know how you are invoking the program.
Hi,
when I try to run the code. I got the following error:
Exception has occurred: AttributeError 'Namespace' object has no attribute 'data_path' File "/home/antonioan/Documents/LanguageLearning/memograph/mg/options.py", line 209, in get_options if options.data_path is None: File "/home/antonioan/Documents/LanguageLearning/memograph/mg/main/__init__.py", line 16, in main options = get_options() File "/home/antonioan/Documents/LanguageLearning/memograph/mg/__main__.py", line 9, in <module> main() AttributeError: 'Namespace' object has no attribute 'data_path'
The text was updated successfully, but these errors were encountered: