Giter Site home page Giter Site logo

Comments (11)

Tass0sm avatar Tass0sm commented on July 19, 2024

I am also getting this error

from ompl.

zhe-beginner avatar zhe-beginner commented on July 19, 2024

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.

Tass0sm avatar Tass0sm commented on July 19, 2024

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.

zhe-beginner avatar zhe-beginner commented on July 19, 2024

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.

zkingston avatar zkingston commented on July 19, 2024

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.

Tass0sm avatar Tass0sm commented on July 19, 2024

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.

sakjdas avatar sakjdas commented on July 19, 2024

make -n update_bindings

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.

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.

vickyliuliu avatar vickyliuliu commented on July 19, 2024

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.

Tass0sm avatar Tass0sm commented on July 19, 2024

I've installed zipp 3.15.0

What python version are you using?

from ompl.

vickyliuliu avatar vickyliuliu commented on July 19, 2024

I'm using Python 3.8.10

from ompl.

zkingston avatar zkingston commented on July 19, 2024

Consolidating with #1102 - please move discussion there.

from ompl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.