adrian-evo / robotframework-sikulixlibrary

The all new, modern, SikuliX Robot Framework library for Python 3.x, based on JPype or Py4J Python modules.
MIT License
22 stars 4 forks source link

No module named 'py4j.java_collections' #4

Closed Wildprogrammer closed 2 years ago

Wildprogrammer commented 2 years ago

mac os jdk-16.0.1 python 3.9.5

hi,I have a problem with packaging.I use pyinstaller package to package the program。An error occurred when importing a class。I try to catch it try: from SikuliXLibrary import SikuliXLibrary except Exception as e: print(str(e)) print('from SikuliXLibrary import SikuliXLibrary failed!!!') image Hope to get your help

adrian-evo commented 2 years ago

Hi, it seems this is related to pyinstaller and py4j packages, rather than sikulixlibrary module. I am not familiar with pyinstaller and I am not using it so unfortunately I cannot help.

E.g. here some related question, not sure if it can help: https://stackoverflow.com/questions/57712179/no-module-named-py4j-java-collections-when-running-exe-created-using-pyinstall

adrian-evo commented 2 years ago

Nothing to fix.