Comments (27)
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
Did you install Py++ and generate the python bindings? If not, the GUI won't run. To generate and build them, type the following in your build directory:
make installpyplusplus
cmake .
make -j 5
from ompl.
Original comment by Andy H. (Bitbucket: Andy_H, ).
Thats exactly what I did. It compiled and generated without problems. But I still get the same error ):
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
Can you attach pyplusplus_util.log from your build directory?
from ompl.
Original comment by Andy H. (Bitbucket: Andy_H, ).
Hi Mark,
thanks for your help! Here is the log:
#!python
INFO Parsing source file "bindings/util.h" ...
INFO gccxml cmd: /usr/bin/gccxml -I"." -I"/home/hermann-local/src/omplapp/omplapp-0.11.1-Source/ompl/src" -I"/home/hermann-local/src/omplapp/omplapp-0.11.1-Source/src" -I"/usr/include/python2.7" -I"/usr/include" -I"/home/hermann-local/src/omplapp/omplapp-0.11.1-Source/o
mpl/src/external" "bindings/util.h" -fxml="/tmp/tmpZQSZwU.xml"
INFO GCCXML version - 0.9( 1.135 )
WARNING: extern void ompl::msg::log(char const * file, int line, ompl::msg::LogLevel level, char const * m, ...) [free function]
> warning W1053: `Py++` will not expose function "extern void
> ompl::msg::log(char const * file, int line, ompl::msg::LogLevel level, char
> const * m, ...) [free function]" - the function has variable-argument list,
> spicified by ellipsis (...).
INFO: file "named_tuple.py" - updated( 0.000000 seconds )
INFO: file "container_suite.hpp" - updated( 0.000000 seconds )
INFO: file "slice.hpp" - updated( 0.000000 seconds )
INFO: file "set.hpp" - updated( 0.000000 seconds )
INFO: file "element_proxy_traits.hpp" - updated( 0.000000 seconds )
INFO: file "python_iterator.hpp" - updated( 0.000000 seconds )
INFO: file "proxy_iterator.hpp" - updated( 0.000000 seconds )
INFO: file "element_proxy.hpp" - updated( 0.000000 seconds )
INFO: file "slice_handler.hpp" - updated( 0.000000 seconds )
INFO: file "workaround.hpp" - updated( 0.000000 seconds )
INFO: file "value_traits.hpp" - updated( 0.000000 seconds )
INFO: file "visitor.hpp" - updated( 0.000000 seconds )
INFO: file "algorithms.hpp" - updated( 0.000000 seconds )
INFO: file "vector.hpp" - updated( 0.000000 seconds )
INFO: file "methods.hpp" - updated( 0.000000 seconds )
INFO: file "deque.hpp" - updated( 0.000000 seconds )
INFO: file "shared_proxy_impl.hpp" - updated( 0.000000 seconds )
INFO: file "iterator_range.hpp" - updated( 0.000000 seconds )
INFO: file "int_slice_helper.hpp" - updated( 0.010000 seconds )
INFO: file "container_traits.hpp" - updated( 0.000000 seconds )
INFO: file "suite_utils.hpp" - updated( 0.000000 seconds )
INFO: file "list.hpp" - updated( 0.000000 seconds )
INFO: file "map.hpp" - updated( 0.000000 seconds )
INFO: file "iterator_traits.hpp" - updated( 0.000000 seconds )
INFO: file "container_proxy.hpp" - updated( 0.000000 seconds )
INFO: file "multimap.hpp" - updated( 0.000000 seconds )
INFO: file "pair.hpp" - updated( 0.000000 seconds )
INFO: file "registry_utils.hpp" - updated( 0.000000 seconds )
INFO: file "_mapStringToString__value_traits.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "_vectorDouble__value_traits.pypp.hpp" - updated( 0.010000 seconds )
INFO: file "_vectorInt__value_traits.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "_vectorUint__value_traits.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorSizeT.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorSizeT.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorUint.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorUint.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorVectorUint.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorVectorUint.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorVectorInt.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorVectorInt.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorVectorDouble.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorVectorDouble.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorString.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorString.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorMapStringToString.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorMapStringToString.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorInt.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorInt.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorDouble.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorDouble.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "vectorBool.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "vectorBool.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "mapStringToString.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "mapStringToString.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "Exception.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "Exception.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "RNG.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "RNG.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "OutputHandler.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "OutputHandler.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "OutputHandlerFile.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "OutputHandlerFile.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "OutputHandlerSTD.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "OutputHandlerSTD.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "_util_enumerations.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "_util_enumerations.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "_util_free_functions.pypp.hpp" - updated( 0.000000 seconds )
INFO: file "_util_free_functions.pypp.cpp" - updated( 0.000000 seconds )
INFO: file "_util.main.cpp" - updated( 0.000000 seconds )
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
That looks about right. Can you attach the output of typing this command in your build directory:
make VERBOSE=1 py_ompl
from ompl.
Original comment by Andy H. (Bitbucket: Andy_H, ).
Hi Mark,
the second build did the trick! No errors and somehow this time _util was generated (:
The GUI is running now. I don't understand that, as I think, "make py_ompl" is a part of the regular make-script, isn't it?
Thanks for your quick help,
Andreas
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
I don't quite understand what happened either. Glad it works now. If you find out what went wrong and if our instructions were to blame, let me know. I am closing this issue as resolved.
from ompl.
Original comment by Victor (Bitbucket: victorp28, ).
I had the exact same issue. make py_ompl
resolved it as well (after significant compilation time, ~5 minutes).
from ompl.
Original comment by Shams F (Bitbucket: shams1363, GitHub: shams1363).
I have the exact same problem, and "make py_ompl" did not help at all. Could you please help me out.
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
Shams, did you try this?:
make installpyplusplus
make update_bindings -j 5
make -j 5
from ompl.
Original comment by Shams F (Bitbucket: shams1363, GitHub: shams1363).
It works now. Could you please tell me what the trick of -j 5 is? I tried it before without that, and it did not work. Now everything works perfectly.
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
"-j 5" just tells "make" to build in parallel using at most 5 threads. This does not explain why things suddenly work. Are you sure you did all the steps before?
from ompl.
Original comment by Shams F (Bitbucket: shams1363, GitHub: shams1363).
Yes I am sure. I installed it on one machine and it worked with no problem. Then I installed it on another machine with ubuntu 32 bits, and it failed. I changed the operating system to 64 bits. It failed again. After running this command, it worked. However, I do not see any reason.
from ompl.
Original comment by hunaiz (Bitbucket: hunaiz, GitHub: hunaiz).
Hi I am having the same issue. I am trying to run "./ompl_app.py" but it gives me the error "ImportError: No module named _util". Than I tried to run "make installpyplusplus" in ~/ompl/build directory but it gives error: "make: *** No rule to make target `installpyplusplus'. Stop." I tried the command "make installpyplusplus" in build/Release folder, it runs but still unable to run "./ompl_app.py". What can be done? Thanks
from ompl.
Original comment by hunaiz (Bitbucket: hunaiz, GitHub: hunaiz).
I resolved the issue. I needed to run "$ make installpyplusplus" in ~/ompl/build/Release directory instead of ~/ompl/build and than "$ make" command in ~/ompl/build/Release.
from ompl.
Original comment by Anna Seppala (Bitbucket: Kirjain, ).
Hi I am having similar problems. I get the same error as posted above:
python omplapp-0.11.1-Source/gui/ompl_app.py Traceback (most recent call last): File "omplapp-0.11.1-Source/gui/ompl_app.py", line 42, in from ompl.util import OutputHandler, useOutputHandler, LogLevel File "/home/hermann-local/src/omplapp/omplapp-0.11.1-Source/ompl/py-bindings/ompl/util/init.py", line 4, in from ompl.util._util import * ImportError: No module named _util
but when I try the solution proposed by Mark Moll, and run
$ make installpyplusplus
everything compiles fine but at the end I first get prompted for my user's password, after which I get the following error message:
[sudo] password for user:
Error: . is not a directory
make[3]: *** [src/CMakeFiles/installpyplusplus] Error 1
make[2]: *** [src/CMakeFiles/installpyplusplus.dir/all] Error 2
make[1]: *** [src/CMakeFiles/installpyplusplus.dir/rule] Error 2
make: *** [installpyplusplus] Error 2
What could be the problem?
Thank you for your time.
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
@kirjain, your version of omplapp looks ancient (0.11.1). Please try the latest release, 1.1.1.
from ompl.
Original comment by Anna Seppala (Bitbucket: Kirjain, ).
Hi Mark,
sorry I just copied the message from above. I do have the newest version!
The error is still the same, though.
from ompl.
Original comment by Andre Phu-Van Nguyen (Bitbucket: nguyenapv, ).
For anyone coming to this issue in 2017 on ubuntu xenial (16.04) you might run into this issue if you have multiple python versions installed on your system. This makes it so that pip install might install a package for a python version different from which the bindings will be generated.
Just make sure you install things correctly using "pip2", "pip2.7", "pip3" or whatever command is used on your system to force the python version.
from ompl.
Original comment by hossein shaeikhi (Bitbucket: hosh0425, GitHub: hosh0425).
I have similar issue . I build both of omplapp-1.3.0 and ompl-1.3.0 but when i would run ompl_app.py I get that error . in my build/Release folder i have py_binding folders. also i havn't installpyplusplus make file
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
@hosh0425, installpyplusplus
no longer exists as a make target. You need to install CastXML, pygccxml, and pyplusplus yourself (or use the installation script if you are using Ubuntu 14.04, 15.10, or 16.04).
from ompl.
Original comment by hossein shaeikhi (Bitbucket: hosh0425, GitHub: hosh0425).
Dear Moll
I previously build them with the scribt that you said.
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
@hosh0425, please attach pyplusplus_util.log
from your build directory.
from ompl.
Original comment by hossein shaeikhi (Bitbucket: hosh0425, GitHub: hosh0425).
these are list of my build directory:
~/ompl-1.3.0-Source/build/Release$ ls
bin cmake_uninstall.cmake
doc scripts
castxml.cfg CPackConfig.cmake
install_manifest.txt src
CMakeCache.txt CPackSourceConfig.cmake
lib tests
CMakeFiles CTestTestfile.cmake Makefile
cmake_install.cmake demos py-bindings
I havn't pyplusplus_util.log
from ompl.
Original comment by Mark Moll (Bitbucket: mamoll, GitHub: mamoll).
What is the output of make update_bindings
? (This should take several hours to complete.)
from ompl.
Original comment by hossein shaeikhi (Bitbucket: hosh0425, GitHub: hosh0425).
there isn't this file :////!!!!!
I download the ompl-1.3.0-source .
then in the install_ompl_ubuntu.sh comment this line:wget -O -
https://bitbucket.org/ompl/ompl/downloads/$OMPL-1.3.0-Source.tar.gz | tar
zxf -
then run it .
is this way true?
from ompl.
Original comment by Amol Loya (Bitbucket: amolloya, GitHub: amolloya).
Hi Mark, I'm not even trying to use the ompl_app, I am just installing the ompl libraries but it's still giving the following error:
from ompl.util._util import *
ModuleNotFoundError: No module named 'ompl.util._util'
I don't have have a pyplusplus_util.log file in my build directly as well.
I have installed py++ and boost.python and the installed the libraries.
I don't know what's wrong, please help me out here. Thanks!
from ompl.
Related Issues (20)
- Motion Planning for dual-arm mobile manipulation using OMPL HOT 3
- Path and speed optimization using OMPL HOT 1
- Update_bindings not working on apple m2 macOS 13.2.1 HOT 2
- ob::PlannerStatus solved = planner->ob::Planner::solve(1.0);this code crash HOT 1
- ST-RRT*
- Dockerfile build error HOT 1
- New Planner in Python HOT 2
- RRT* often does not find a path with more time than RRT HOT 2
- ompl.util._util error HOT 2
- ss.getSolutionPath().asGeometric().printAsMatrix()
- Segmentation fault (core dumped) while using pre-built Python wheel `ompl-1.6.0-cp38-cp38-manylinux_2_28_x86_64` HOT 1
- No QRRT in python
- Unreachable URL for SPOT
- No to_python (by-value) converter found for C++ type: std::pair<bool, bool> HOT 1
- libompl.so cannot be found HOT 1
- Segmentation fault when using ompl::tools:ParallelPlan in Python HOT 3
- AttributeError:module 'ompl.geometric' has no attribute 'vectorSpaceInformation'
- Setting up start and goal state in CompoundStateSpace() HOT 2
- When s0 is a state on the path, why is the cost from s0 to postemp not considered when calculating the cost from s0 to s1? HOT 1
- Implementation of Constraints on the SolutionPath HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ompl.