irmen / binaryen-interfaces

non-C programming language interfaces to the Binaryen library
11 stars 5 forks source link

Error on import #1

Closed Heath123 closed 2 years ago

Heath123 commented 2 years ago
Traceback (most recent call last):
  File "file.py", line 2, in <module>
    import binaryen
  File "/home/heath/.local/lib/python3.10/site-packages/binaryen.py", line 936, in <module>
    SwizzleVec8x16 = lib.BinaryenSwizzleVec8x16
AttributeError: cffi library '_binaryen' has no function, constant or global variable named 'BinaryenSwizzleVec8x16'
Heath123 commented 2 years ago

This is with the version on PyPI which seems outdated

Heath123 commented 2 years ago

It also seems to happen with the latest one though

Heath123 commented 2 years ago

Commenting out that line seems to make it work

irmen commented 2 years ago

I updated it yesterday in 2af605a4bb3e6d29aa8d59742ebf5ec8df362413 You need binaryen release 108 .

I've not yet uploaded this to pypi but I will do so soon.

irmen commented 2 years ago

@Heath123 can you validate with the current master branch.

irmen commented 2 years ago

1.11 has been uploaded to pypi.

Heath123 commented 2 years ago

Sorry, I think I had/have a slightly old Binaryen version installed with Emscripten (I didn't realise it used my system's installation)