Git Product home page Git Product logo

Comments (5)

nightfox0909 avatar nightfox0909 commented on August 14, 2024 2

I had this issue too, seems like pcl introduces a dependency on /usr/bin/python2.7 as mentioned here and here. To check if this is what is causing your issues, take a look at the build/temp./Cmakefiles/pygicp.dir/flags.make, you should find -I /usr/bin/python2.7 . As a temporary workaround, two approaches worked for me

  1. renaming /usr/bin/python2.7 to something else, installing the package with setup.py as mentioned above and then renaming the folder back to python2.7. This is hacky, but the easiest workaround for the issue.
  2. A slightly better but still hacky way is to use regexes to filter out python2.7 in the cmakelists file from PCL_INCLUDE_DIRS and the INCLUDE_DIRS for pygicp and fast_gicp.

from fast_gicp.

HViktorTsoi avatar HViktorTsoi commented on August 14, 2024 2

I had this issue too, seems like pcl introduces a dependency on /usr/bin/python2.7 as mentioned here and here. To check if this is what is causing your issues, take a look at the build/temp./Cmakefiles/pygicp.dir/flags.make, you should find -I /usr/bin/python2.7 . As a temporary workaround, two approaches worked for me

  1. renaming /usr/bin/python2.7 to something else, installing the package with setup.py as mentioned above and then renaming the folder back to python2.7. This is hacky, but the easiest workaround for the issue.
  2. A slightly better but still hacky way is to use regexes to filter out python2.7 in the cmakelists file from PCL_INCLUDE_DIRS and the INCLUDE_DIRS for pygicp and fast_gicp.

Approache 1 worked, but it should be renaming /usr/include/python2.7 to somewhere else, rahter than /usr/bin/python2.7

from fast_gicp.

koide3 avatar koide3 commented on August 14, 2024

It seems the package was installed to your python2 environment. Try the following installation command (don't forget "3" after python)

python3 setup.py install --user

from fast_gicp.

iamwilliamli avatar iamwilliamli commented on August 14, 2024

I had this issue too, seems like pcl introduces a dependency on /usr/bin/python2.7 as mentioned here and here. To check if this is what is causing your issues, take a look at the build/temp./Cmakefiles/pygicp.dir/flags.make, you should find -I /usr/bin/python2.7 . As a temporary workaround, two approaches worked for me

  1. renaming /usr/bin/python2.7 to something else, installing the package with setup.py as mentioned above and then renaming the folder back to python2.7. This is hacky, but the easiest workaround for the issue.
  2. A slightly better but still hacky way is to use regexes to filter out python2.7 in the cmakelists file from PCL_INCLUDE_DIRS and the INCLUDE_DIRS for pygicp and fast_gicp.

This is not working for me.

import pygicp
Traceback (most recent call last):
File "", line 1, in
ImportError: dynamic module does not define module export function (PyInit_pygicp)

from fast_gicp.

AndreejS avatar AndreejS commented on August 14, 2024

Approache 1 worked, but it should be renaming /usr/include/python2.7 to somewhere else, rahter than /usr/bin/python2.7

I can confirm this was also the case for me.
However, it seems to depend only on what is used in build/temp./Cmakefiles/pygicp.dir/flags.make, so i'd suggest to verify which path is used there and rename that one.

from fast_gicp.

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.