Comments (11)
I am also getting this error
from ompl.
The latest progress has found that it may be due to the high version of the zipp Python package .When we run
./install-ompl-ubuntu.sh –app
The system defaults to installing zipp 3.17.0. The relevant statement shows[https://github.com/jaraco/zipp/issues/100]
Zip=3.17.0 and zip=3.16.0 are not supported Python>=3.8,
So I uninstalled zip 3.17.0 using
sudo - H pip3 uninstall zipp
and installed zip 3.15.0 using
sudo - H pip3 install zip==3.15.0
The above issue was resolved, but new issues arose.
When I run
make -j 1 update_bindings
In the omplapp/omplap-1.6.0-Source/build/Release directory, the relevant logs files under the command of omplapp/omplap-1.6.0-Source/build/Release are as follows:
Traceback (most recent call last):
File "/home/l/omplapp/omplapp-1.6.0-Source/ompl/py-bindings/generate_bindings.py", line 41, in
from pygccxml import declarations
File "/usr/local/lib/python3.8/dist-packages/pygccxml/init.py", line 45, in
import importlib_metadata as metadata
File "/usr/local/lib/python3.8/dist-packages/importlib_metadata/init.py", line 18, in
from . import _adapters, _meta, _py39compat
File "/usr/local/lib/python3.8/dist-packages/importlib_metadata/_meta.py", line 1, in
from typing import Protocol
ImportError: cannot import name 'Protocol'
Relevant information display, Protocol can be used in Python3.8 through from typing import Protocol .
It is really strange.
I don't know where the problem occurred during the installation process, and I look forward to receiving your help.
from ompl.
I found using make -n update_bindings
that it was running pypy3 to generate the bindings. pypy3 didn't seem to work on my system so I reran cmake as recommended to disable using pypy3.
cd build/Release
cmake -DCMAKE_DISABLE_FIND_PACKAGE_pypy=ON ../..
Then I removed python 2 from my system and also changed the shebang in generate_bindings.py to be #!/usr/bin/env python3
instead of #!/usr/bin/env python
I'll post another comment if I find why pypy3 doesn't work
from ompl.
Thank you for your suggestion.
Based on your suggestion, in install-ompl-ubuntu.sh
file, I changed
cmake ../.. -DPYTHON_EXEC=/usr/bin/python${PYTHONV}
to
cmake -DCMAKE_DISABLE_FIND_PACKAGE_pypy=ON ../.. -DPYTHON_EXEC=/usr/bin/python${PYTHONV}
and did not remove python 2,
and also changed the shebang in generate_bindings.py
to be /usr/bin/env python3
instead of /usr/bin/env python
.
Then run ./install-ompl-ubuntu.sh –app
Some other problems occurred, but have been resolved by Added try/except for string SpecificParam
and Ubuntu20.04安装OMPL安装指南.
Although your question of "why pypy3 doesn't work" is still not solved, the gui can at least be used.
Your discovery helped me a lot, thank you again,
I will post my latest findings on the issue here.
from ompl.
If you are compiling directly from the installation script, can you please use the latest commit on this git repository instead? There are some documented issues with Python binding generation using the install script. Let me know if errors persist.
from ompl.
I encountered this particular issue on both 1.6 and the latest commit I believe. After resolving this error, I did have to use the latest commit due to the issue fixed by #980. While compiling the latest commit, I also encountered the following error:
CMake Error in CMakeLists.txt:
Imported target "Boost::unit_test_framework" includes non-existent path
"/include"
in its INTERFACE_INCLUDE_DIRECTORIES. Possible reasons include:
* The path was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and references files it does not
provide.
I didn't have time to find the root cause, so I just created a symlink from /include
to /usr/include
and there were no more issues after that.
from ompl.
make -n update_bindings
Thank you for your suggestion. Based on your suggestion, in
install-ompl-ubuntu.sh
file, I changedcmake ../.. -DPYTHON_EXEC=/usr/bin/python${PYTHONV}
to
cmake -DCMAKE_DISABLE_FIND_PACKAGE_pypy=ON ../.. -DPYTHON_EXEC=/usr/bin/python${PYTHONV}
and did not remove python 2, and also changed the shebang in
generate_bindings.py
to be/usr/bin/env python3
instead of/usr/bin/env python
.Then run ./install-ompl-ubuntu.sh –app Some other problems occurred, but have been resolved by Added try/except for string SpecificParam and Ubuntu20.04安装OMPL安装指南.
Although your question of "why pypy3 doesn't work" is still not solved, the gui can at least be used.
Your discovery helped me a lot, thank you again, I will post my latest findings on the issue here.
Hi, can I ask you how do you solve the protocol problem? because I did what you have said here, but it does't work. Have you done any other steps? Thanks in advance!
from ompl.
Hi, I encountered the same issue as @sakjdas , i.e. cannot import Protocol from typing. Has anybody figured out how to resolve this? FYI I've installed zipp 3.15.0
from ompl.
I've installed zipp 3.15.0
What python version are you using?
from ompl.
I'm using Python 3.8.10
from ompl.
Consolidating with #1102 - please move discussion there.
from ompl.
Related Issues (20)
- 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
- Crash on an Arm board HOT 1
- STRRTstar module 'ompl.base' has no attribute 'SpaceTimeStateSpace'
- Problem on multi-agent planning with SE2MultiRigidBodyPlanning HOT 2
- change only one dimension between states?
- Extension to other samplers in SE2MultiRigidBodyPlanning.cpp
- Use cache to speed up CI for Python wheels HOT 1
- informedRRTStar or SORRTstar error with moveit
- Would it be possible to add Python wheels for linux arm64 as well?
- Error when building OMPL Python Bindings on aarch64 HOT 1
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.