in the program i can import the module by import openpyxl
my question , if in ignition 8, if i want to use the python library (for example the openpyxl), how to set the module then i can directly import openpyxl in my scripting
python’s default library is not so much, but python have a big advantage is he can import a lot of library
my question is if Jython 2.7 have the same function like python, import other library, if yes, can you introduce some information about how to do in that way
I've just checked the requirements for openpyxl--there are transitive (optional?) dependencies on CPython native DLLs. Those can't be made to work in a JVM. You'll have to retool your scripts to use a java library for document manipulation. Apache POI is a popular choice, and happens to be part of Kymera's Office Document Module.
There are numerous discussions on this forum describing the use of Apache POI, including commentary on its use as an alternative to openpyxl.
There's also a report of partial success with an older version of openpyxl. Might want to try that:
thanks pturmel’s input, there really many information to read, i will use time to understand old discussion
i have downlad the kymera’s office driver want to have a trial run
but after i install , if i open the designer, it will report the fault
This happened to me too. A reboot of the computer fixed it. Since you are in production, I would schedule some downtime to perform a restart of Ignition or the entire PC.
Thank you for your interest in our module. If you would forward a screenshot of the full stack trace, and the build number of the module to support@kymerasystems.com, we’d be happy to further assist you.