From: Mark M. <mm...@ri...> - 2020-05-27 15:05:29
|
Hi June, The most likely reason is that you have multiple versions of python installed and you use a different version than /opt/local/bin/ompl_app. Look at the first line of ompl_app and use the python interpreter specified there. Since the OMPL python modules are compiled for a specific version of Python, they will likely not work with a different version. Best, Mark > On May 25, 2020, at 12:51 AM, Jun Ju <ju...@uq...> wrote: > > Hello! > > I’m a Mac user and my MacBook Pro is macOS Catalina (Version 10.15.3). > > I just installed OMPL by “sudo port install ompl +app” on terminal. I can open ompl app by “/opt/local/bin/ompl_app” successfully now. > > However, when I wrote “import ompl” in python, it told me “ModuleNotFoundError: No module named 'ompl'”. I have tried on both python2.7 and python3 and both failed. In addition, I can only find 3 documents relevant to OMPL in the directory of ““/opt/local/bin/”. > <image001.png> > > It seems I didn’t install OMPL with Python bindings. I want to write code in python. Do you know how should I install Python bindings on Mac? > > > Many thanks, > June > > > _______________________________________________ > ompl-users mailing list > omp...@li... <mailto:omp...@li...> > https://lists.sourceforge.net/lists/listinfo/ompl-users <https://lists.sourceforge.net/lists/listinfo/ompl-users> |