I am a newbie in programming with Smile and it would be great if you could help me a little bit to start.
For my academia research project I am trying to setup the following configuration: JSmile + Python on Mac .
By following the instructions I successfully installed prerequisites (jpype).
Currently, I am having difficulties to import JSmile library in a python program .
Here is my testing py code that constantly returns the “ImportError: No module named jsmile” error message:
Here is a small test program that I am using:… from jsmile import SMILEException
ImportError: No module named jsmile …
Code: Select all
#this part seems to work import jpype jvmPath = jpype.getDefaultJVMPath() jvmArg = "-Xint" jpype.startJVM(jvmPath,jvmArg) # it seems that the following part is not working... here is the physical location of the #library at computer... I tried also to put only “jsmile_macosx_x64” as a relative path # to be concatenated to the absolute path without success. from jpype import * import os.path jarpath = os.path.join('/Users/my_user_name/jsmile_macosx_x64/') # tried to use some function from the JSmile library to test the code from jsmile import SMILEException net = jpype.JClass("smile.Network") shutdownJVM()
Any help would be great. Thank you.
With kind regards,