FORUM CTRLX AUTOMATION
ctrlX World Partner Apps for ctrlX AUTOMATION
Dear Community User! We are updating our platform to a new
system.
Read more: Important
information on the platform change.
07-18-2024 12:44 PM
Hi Everyone,
I have successfully obtained a license from CtrlX Works using C++ with the CtrlX Works Licensing API. However, I am encountering difficulties when attempting to use Python with pybind11 to wrap the C++ library.
Upon inspecting ctrlxworks.Licensing.dll, I noticed that there are no symbols available. I am wondering if this issue is related to the library being signed, which might be causing problems when loading the DLL with ctypes in Python.
Could anyone please suggest how to use the CtrlX Works Licensing API with Python? Our application is primarily written in Python. As a last resort, I am considering writing a C++ HTTP server as a wrapper, allowing the Python side to handle only HTTP communication.
Thank you for your time and assistance.
Chih-Peng
Reference: License Management - Software Development Kit (boschrexroth.github.io)
Solved! Go to Solution.
07-18-2024 12:54 PM
ps. I do load ctrlxworks.Licensing.dll and all relavant libraries, which are required to run with C++ executable that uses ctrlx works Licensing api.
Here is the error I got when I try to run with my python binding.
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'ctrlxworks.Licensing, Version=3.1.0.67, Culture=neutral, PublicKeyToken=e565dd1c6a0bbb27' or one of its dependencies. The system cannot find the file specified.
at ShowRequiredLicensesDialog(HWND__* parentWindow, SByte* appName, SByte* requiredLicenses)
07-31-2024 11:55 AM
I got contact with CtrlX developer.
The reason that my python binding not working is that the provided dll contains some non-C++ symbols and somehow pybind cannot resolve it correctly. CtrlX currently have no planned to release python binding reasonly. For now, I will simply use python to call C++ executable for licensing.
If anyone requires it, please contact CtrlX sales for creating a feature request.