From: Jesse Gibbons <jgibbons2357@gmail.com>
To: 38464@debbugs.gnu.org
Subject: bug#38464: python-hy REPL is unusable
Date: Mon, 02 Dec 2019 17:16:32 -0700 [thread overview]
Message-ID: <783b4e7ef2ab280f6012d92407f3b8d5d8f4837b.camel@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 615 bytes --]
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?
[-- Attachment #2: err.txt --]
[-- Type: text/plain, Size: 2948 bytes --]
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'
next reply other threads:[~2019-12-03 0:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-12-03 0:16 Jesse Gibbons [this message]
2019-12-03 0:37 ` bug#38464: python-hy REPL is unusable Jesse Gibbons
2019-12-10 2:42 ` Jesse Gibbons
2020-06-17 4:24 ` Royce Strange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=783b4e7ef2ab280f6012d92407f3b8d5d8f4837b.camel@gmail.com \
--to=jgibbons2357@gmail.com \
--cc=38464@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).