Skip to content
This repository has been archived by the owner on Jul 17, 2020. It is now read-only.

LibException after building from Source (Win10) #124

Open
Blubbaa opened this issue Jun 10, 2019 · 1 comment
Open

LibException after building from Source (Win10) #124

Blubbaa opened this issue Jun 10, 2019 · 1 comment
Assignees

Comments

@Blubbaa
Copy link

Blubbaa commented Jun 10, 2019

I am trying to build hermes-python from source on Windows 10 and Python 3. I followed the instructions from here.

When I run the python setup.py bdist_wheel --include-extension=../../target/release/hermes_mqtt_ffi.dll command, it will copy the extension to hermes-protocol\platforms\hermes-python\hermes_python\dylib and then continue without errors (as far as I could see). Also the hermes_python-0.7.0-cp37-cp37m-win32.whl has been generated and I can install it, however it has only some 44KB which seemed wierd to me, as the extension alone has >5MB.

When I run some script which uses hermes_python like this
from hermes_python.hermes import Hermes
I get the following exception at
with Hermes(MQTT_ADDR) as h:
hermes_python.ffi.LibException: Trying to call mocked FFI library

Any hints to what could have gone wrong? Thanks in advance!

@anthonyray
Copy link
Collaborator

Hello @Blubbaa ,

This messages generally pops up when the dll was not successfully packaged.
This is an error on my side. I will provide a fix asap !

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants