Giter Club home page Giter Club logo

Comments (8)

svenwanner avatar svenwanner commented on September 28, 2024

Fixed the problem in my case, the error message actually tells what's wrong. If I go into the pcl/_pcl.cpp line 3521 and add a space between the template brackets >> it works. But should be fixed from your side, too.

Best

from python-pcl.

nzjrs avatar nzjrs commented on September 28, 2024

Looks like a cython bug.

On Thu, Dec 4, 2014 at 3:46 PM, Sven Wanner [email protected]
wrote:

Fixed the problem in my case, the error message actually tells what's
wrong. If I go into the pcl/_pcl.cpp line 3521 and add a space between the
template brackets >> it works. But should be fixed from your side, too.

Best


Reply to this email directly or view it on GitHub
#59 (comment).

from python-pcl.

smarkon avatar smarkon commented on September 28, 2024

I have just encountered and fixed the same problem on Ubuntu 14.10. I suspect we are not the only ones getting bitten by this, some people might get scared away...

from python-pcl.

nzjrs avatar nzjrs commented on September 28, 2024

Patches, as always, are appreciated.

from python-pcl.

larsmans avatar larsmans commented on September 28, 2024

Are you sure you're running the right Cython version? This should have been fixed in 0.21.1. In the meanwhile, 0.21.2 got released, so maybe try upgrading.

from python-pcl.

Jorge-C avatar Jorge-C commented on September 28, 2024

Compilation also fails for me till I manually add the space, and it should be using Cython 0.21.2

jorge@jorge:~/code/python-pcl$ cython -V
Cython version 0.21.2

jorge@jorge:~/code/python-pcl$ python setup.py build
running build
running build_py
running build_ext
skipping 'pcl/_pcl.cpp' Cython extension (up-to-date)
building 'pcl._pcl' extension
gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -I/home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include -I/usr/include/pcl-1.7 -I/usr/include/ni -I/usr/include/openni2 -I/usr/include/eigen3 -I/home/jorge/anaconda/include/python2.7 -c pcl/_pcl.cpp -o build/temp.linux-x86_64-2.7/pcl/_pcl.o
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from /home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarraytypes.h:1804:0,
                 from /home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ndarrayobject.h:17,
                 from /home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/arrayobject.h:4,
                 from pcl/_pcl.cpp:381:
/home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
 #warning "Using deprecated NumPy API, disable it by " \
  ^
pcl/_pcl.cpp: In function ‘int __pyx_pf_3pcl_4_pcl_10PointCloud___cinit__(__pyx_obj_3pcl_4_pcl_PointCloud*, PyObject*)’:
pcl/_pcl.cpp:3619:49: error: ‘>>’ should be ‘> >’ within a nested template argument list
   sp_assign<pcl::PointCloud<struct pcl::PointXYZ>>(__pyx_v_self->thisptr_shared, __pyx_t_1);
                                                 ^
In file included from /home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/ufuncobject.h:317:0,
                 from pcl/_pcl.cpp:382:
/home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/__ufunc_api.h: At global scope:
/home/jorge/anaconda/lib/python2.7/site-packages/numpy/core/include/numpy/__ufunc_api.h:241:1: warning: ‘int _import_umath()’ defined but not used [-Wunused-function]
 _import_umath(void)
 ^
error: command 'gcc' failed with exit status 1

from python-pcl.

smoe avatar smoe commented on September 28, 2024

Running debian unstable, I could confirm the problem (the the solving by manual blank insertion) with

$ cython --version
Cython version 0.20.1post0

and it is gone with with 0.21.1. It resurfacing with 0.21.2 would be a regression.

from python-pcl.

YvetteLaw avatar YvetteLaw commented on September 28, 2024

@svenwanner where is the file "pcl/_pcl.cpp" ? I can't find it in python-pcl and my PCL1.8

from python-pcl.

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.