1. install python-hy 2. run hy3 (to make sure it's setup to use python 3.7.4) 3. press <return> with or without typing anything. It prints the following error at the end of a long stack trace:
ImportError: invalid flags 1495674643 in 'hy.core.language' This also happens when using hy2py3, and I have attached a sample stack trace from hy2py3. If python2-hy is installed (configured to use the python 2.7, which is appraching end-of-life), the hy2 REPL and hy2py2 work just fine. - Does hy fail similarly on other systems, or is this a guix problem? - If this is a guix issue, what is the best way to fix it?
Traceback (most recent call last): File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/bin/.hy2py3-real", line 11, in <module> load_entry_point('hy==0.13.0', 'console_scripts', 'hy2py3')() File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/cmdline.py", line 411, in hy2py_main else pretty_error(import_buffer_to_ast, stdin_text, module_name)) File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/cmdline.py", line 184, in pretty_error return func(*args, **kw) File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/importer.py", line 48, in import_buffer_to_ast return hy_compile(import_buffer_to_hst(buf), module_name) File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/compiler.py", line 2625, in hy_compile compiler = HyASTCompiler(module_name) File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/compiler.py", line 361, in __init__ load_stdlib() File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/compiler.py", line 51, in load_stdlib mod = importlib.import_module(module) File "/gnu/store/608bvypsh90c58apvd2cgg3m9l2pwjqn-python-3.7.4/lib/python3.7/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1006, in _gcd_import File "<frozen importlib._bootstrap>", line 983, in _find_and_load File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 668, in _load_unlocked File "<frozen importlib._bootstrap>", line 638, in _load_backward_compatible File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/importer.py", line 215, in load_module return import_file_to_module(fullname, self.path, self) File "/gnu/store/0pi3l7gads02lcj0x5v2b56hl4gv6rv4-python-hy-0.13.0/lib/python3.7/site-packages/hy/importer.py", line 87, in import_file_to_module load_module(module_name)) File "<frozen importlib._bootstrap_external>", line 407, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 907, in load_module File "<frozen importlib._bootstrap_external>", line 732, in load_module File "<frozen importlib._bootstrap>", line 265, in _load_module_shim File "<frozen importlib._bootstrap>", line 696, in _load File "<frozen importlib._bootstrap>", line 677, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 724, in exec_module File "<frozen importlib._bootstrap_external>", line 1005, in get_code File "<frozen importlib._bootstrap_external>", line 467, in _classify_pyc ImportError: invalid flags 1495674643 in 'hy.core.language'