Open chrpriftis opened 4 years ago
have you tried python scripts/GE_LR_parser.py --parameters GE_parse.txt ?
Dave
On Mon, 13 Jul 2020 at 12:33, chrpriftis notifications@github.com wrote:
Hi!
I am using PonyGE2 on windows 10 Pro with Anaconda 3 Everything works fine but today when I tried to execute the Wiki example of the GE LR Parser, I got an error.
The command I executed in the Anaconda prompt is the following: python scripts\GE_LR_parser.py --parameters GE_parse.txt
The Error I got is the following:
Start: 2020-07-13 14:21:06.795730
Traceback (most recent call last): File "scripts\GE_LR_parser.py", line 353, in set_params(sys.argv[1:], create_files=False) File "../src\algorithm\parameters.py", line 309, in set_params set_param_imports() File "../src\utilities\algorithm\initialise_run.py", line 176, in set_param_imports attr_name) File "../src\utilities\algorithm\initialise_run.py", line 260, in return_attr_from_module module = importlib.import_module(modulename) File "C:\ProgramData\Anaconda3\lib\importlibinit_.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in
call_with_frames_removed File "../src\algorithm\search_loop.py", line 6, in from operators.initialisation import initialisation File "../src\operators\initialisation.py", line 11, in from scripts import GE_LR_parser ImportError: cannot import name 'GE_LR_parser' from 'scripts' (C:\ProgramData\Anaconda3\lib\site-packages\scripts_init.py)
Best Regards, Christos
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PonyGE/PonyGE2/issues/112, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHTHOXCBKCCFQU6RARTWKLR3LWH7ANCNFSM4OYMOMXQ .
have you tried python scripts/GE_LR_parser.py --parameters GE_parse.txt ? Dave … On Mon, 13 Jul 2020 at 12:33, chrpriftis @.**> wrote: Hi! I am using PonyGE2 on windows 10 Pro with Anaconda 3 Everything works fine but today when I tried to execute the Wiki example of the GE LR Parser, I got an error. The command I executed in the Anaconda prompt is the following: python scripts\GE_LR_parser.py --parameters GE_parse.txt The Error I got is the following: Start: 2020-07-13 14:21:06.795730 Traceback (most recent call last): File "scripts\GE_LR_parser.py", line 353, in set_params(sys.argv[1:], create_files=False) File "../src\algorithm\parameters.py", line 309, in set_params set_param_imports() File "../src\utilities\algorithm\initialise_run.py", line 176, in set_param_imports attr_name) File "../src\utilities\algorithm\initialise_run.py", line 260, in return_attr_from_module module = importlib.import_module(modulename) File "C:\ProgramData\Anaconda3\lib\importlibinit_.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 967, in _find_and_load_unlocked File "", line 677, in _load_unlocked File "", line 728, in exec_module File "", line 219, in call_with_frames_removed File "../src\algorithm\search_loop.py", line 6, in from operators.initialisation import initialisation File "../src\operators\initialisation.py", line 11, in from scripts import GE_LR_parser ImportError: cannot import name 'GE_LR_parser' from 'scripts' (C:\ProgramData\Anaconda3\lib\site-packages\scripts_init*.py) Best Regards, Christos — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#112>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAHTHOXCBKCCFQU6RARTWKLR3LWH7ANCNFSM4OYMOMXQ .
Yes, I get the same error. I also tried it on a new/clean install of PonyGE2, just in case I made any accidental change to some file, but the error remains.
This looks broken to me too. See also #135.
Hi!
I am using PonyGE2 on windows 10 Pro with Anaconda 3 Everything works fine but today when I tried to execute the Wiki example of the GE LR Parser, I got an error.
The command I executed in the Anaconda prompt is the following: python scripts\GE_LR_parser.py --parameters GE_parse.txt
The Error I got is the following:
Start: 2020-07-13 14:21:06.795730
Traceback (most recent call last): File "scripts\GE_LR_parser.py", line 353, in
set_params(sys.argv[1:], create_files=False)
File "../src\algorithm\parameters.py", line 309, in set_params
set_param_imports()
File "../src\utilities\algorithm\initialise_run.py", line 176, in set_param_imports
attr_name)
File "../src\utilities\algorithm\initialise_run.py", line 260, in return_attr_from_module
module = importlib.import_module(module_name)
File "C:\ProgramData\Anaconda3\lib\importlib__init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1006, in _gcd_import
File "", line 983, in _find_and_load
File "", line 967, in _find_and_load_unlocked
File "", line 677, in _load_unlocked
File "", line 728, in exec_module
File "", line 219, in _call_with_frames_removed
File "../src\algorithm\search_loop.py", line 6, in
from operators.initialisation import initialisation
File "../src\operators\initialisation.py", line 11, in
from scripts import GE_LR_parser
ImportError: cannot import name 'GE_LR_parser' from 'scripts' (C:\ProgramData\Anaconda3\lib\site-packages\scripts\ init__.py)
Best Regards, Christos