Term icon indicating copy to clipboard operation
Term copied to clipboard

Bug: Pyrlang elixir example is not working with current master

Open cjen07 opened this issue 5 years ago • 2 comments

I changed to 85bdc60a1b54e638f1dcfe930cd9ce18df89fecb and it works well, but with current master: f35aba478d6c5494bc716ec1a64be202ed53f61a the elixir example has a bug like list is not hashable

cjen07 avatar May 12 '19 16:05 cjen07

Hi, yea I've seen it too. Though it was py3.7 but We'll look at it

s2hc-johan avatar May 14 '19 12:05 s2hc-johan

Took a quick look, seems to be some inconsistency between the rust and python implementation. As a workaround you could do:

diff --git a/term/codec.py b/term/codec.py
index 05ead98..55fbf81 100644
--- a/term/codec.py
+++ b/term/codec.py
@@ -8,6 +8,7 @@ LOG = logging.getLogger("term")


 try:
+    raise ImportError
     import term.native_codec_impl as co_impl
 except ImportError:
     LOG.warning("Native term ETF codec library import failed, falling back to slower Python impl")

s2hc-johan avatar May 14 '19 12:05 s2hc-johan