Comments (8)
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.
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.
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.
Patches, as always, are appreciated.
from python-pcl.
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.
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.
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.
@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)
- Where can I get gtk+-bundle_3.10.4-20131202_win64.zip?
- transform
- DLL load failed while importing _pcl HOT 2
- Cannot install with python versions >=3.7
- Moving least square change colored point cloud size, how to find the correspondent color index?
- how to close vtkoutputwindow when coding with python-pcl
- python-pcl not working with python 3.7 in Windows HOT 1
- Python pcl_conversions
- x86_64-linux-gnu-gcc: internal compiler error: Killed (program cc1plus) HOT 1
- Installation on Ubuntu 20.04/Python 3.8.10 HOT 2
- python-pcl Visualize point clouds HOT 3
- PCL library import error
- can pcl.load_XYZI supprot load gzip file?such as 1.pcd.gz
- docker version
- Unable to install - Ubuntu 20, Python3.8 HOT 1
- mac-m1-install-error,python3.8.10
- can't install python-pcl on Ubuntu 22.04 with python3 and pcl 1.12.1 HOT 3
- this is the worst python package at all, pip install python-pcl isnt working.
- pcl.NormalDistributionsTransform() is not support ?
- TypeError: can't pickle module objects
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 python-pcl.