I am using Jyhton to call my Python methods through the Java methods. Python methods contains BeautifulSoup to import bs4
. These methods are working fine in Python. But when I call these methods from Java, the error ImportError: No module named bs4 occurred. I am using Python 3.6
and Jython 2.7
. Also I have set the properties as the directory which contains my Python scripts for the Jython Interpreter.
Directory path : /home/user/devs/python-devs
python-dev directory contains all my python scripts which are organized into several sub directories.