nh2 / nh2/haskell-from-python

Error Running Example Code

Đang mở
#1 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Haskell
Star
58
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I managed to get to the point of successfully compiled the example code. Then I get to running the example with 'python program.py' and I get an error:
```
Traceback (most recent call last):
File "program.py", line 5, in
lib = cdll.LoadLibrary("./libffi-example.so")
File "/usr/lib/python2.7/ctypes/__init__.py", line 444, in LoadLibrary
return self._dlltype(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 366, in __init__
self._handle = _dlopen(self._name, mode)
OSError: /usr/lib/ghc/ghc-prim-0.5.2.0/libHSghc-prim-0.5.2.0-ghc8.4.4.so: undefined symbol: stg_gc_unpt_r1
```

I'm not sure what stg_gc_unpt_r1 is, and what to do about it. I do not have a tonne of expereince with python, but have to do some work with it and I want to get this example working.
I compiled everything on WSL because windows does not support dynamic linking. If there is any information that could help me, that would be great.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.