Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Python Wrapper on Ubuntu 10.10 Problems
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  13 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Derekioh  
View profile  
 More options Jan 11 2011, 1:09 pm
From: Derekioh <Derek...@yahoo.com>
Date: Tue, 11 Jan 2011 10:09:54 -0800 (PST)
Local: Tues, Jan 11 2011 1:09 pm
Subject: Python Wrapper on Ubuntu 10.10 Problems
So I've quite literally spent a good 7 hours finding out how to get
the python wrapper working for ubuntu 10.10, but it's just not
building. I'm getting the error:

Error converting Pyrex file to C:
------------------------------------------------------------
...
    cdef freenect_raw_tilt_state* _ptr
    def __repr__(self):
        return "<State Pointer>"

    def _get_accelx(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_x)
                        ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:112:25:
'operator' not a valid cython attribute or is being used incorrectly

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_accelx(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_x)

    def _get_accely(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_y)
                        ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:115:25:
'operator' not a valid cython attribute or is being used incorrectly

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_accely(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_y)

    def _get_accelz(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_z)
                        ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:118:25:
'operator' not a valid cython attribute or is being used incorrectly

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_accelz(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_z)

    def _get_tilt_angle(self):
        return int(cython.operator.dereference(self._ptr).tilt_angle)
                        ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:121:25:
'operator' not a valid cython attribute or is being used incorrectly

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_tilt_angle(self):
        return int(cython.operator.dereference(self._ptr).tilt_angle)

    def _get_tilt_status(self):
        return int(cython.operator.dereference(self._ptr).tilt_status)
                        ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:124:25:
'operator' not a valid cython attribute or is being used incorrectly

Error converting Pyrex file to C:
------------------------------------------------------------
...
    cdef freenect_raw_tilt_state* _ptr
    def __repr__(self):
        return "<State Pointer>"

    def _get_accelx(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_x)
                                                  ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:112:51:
Cannot convert 'freenect_raw_tilt_state *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_accelx(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_x)

    def _get_accely(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_y)
                                                  ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:115:51:
Cannot convert 'freenect_raw_tilt_state *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_accely(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_y)

    def _get_accelz(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_z)
                                                  ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:118:51:
Cannot convert 'freenect_raw_tilt_state *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_accelz(self):
        return
int(cython.operator.dereference(self._ptr).accelerometer_z)

    def _get_tilt_angle(self):
        return int(cython.operator.dereference(self._ptr).tilt_angle)
                                                  ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:121:51:
Cannot convert 'freenect_raw_tilt_state *' to Python object

Error converting Pyrex file to C:
------------------------------------------------------------
...

    def _get_tilt_angle(self):
        return int(cython.operator.dereference(self._ptr).tilt_angle)

    def _get_tilt_status(self):
        return int(cython.operator.dereference(self._ptr).tilt_status)
                                                  ^
------------------------------------------------------------

/home/derekjr-laptop/libfreenect/wrappers/python/freenect.pyx:124:51:
Cannot convert 'freenect_raw_tilt_state *' to Python object
building 'freenect' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -
Wstrict-prototypes -fPIC -I/usr/include/python2.6 -c freenect.c -o
build/temp.linux-x86_64-2.6/freenect.o -fPIC -I ../../include/ -I /usr/
include/libusb-1.0/ -I /usr/local/include/libusb-1.0 -I /usr/local/
include -I ../c_sync/
freenect.c:1: error: #error Do not use this file, it is the result of
a failed Cython compilation.
error: command 'gcc' failed with exit status 1

I have a felling I have installed the wrong cython or something but I
have no idea where to get it because I was going to get it from the
software center, but that didn't help. If there is anyone who could
help me or point me where to download the right software to build it,
that would be much appreciated.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ash11tw  
View profile  
 More options Jan 11 2011, 1:23 pm
From: ash11tw <ash1...@gmail.com>
Date: Tue, 11 Jan 2011 10:23:39 -0800 (PST)
Local: Tues, Jan 11 2011 1:23 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems

I have the same problem before.
You need to remove the cython from Ubuntu (which is 0.12) and download the
newest version (0.14) from its website
then you should be fine.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Derekioh  
View profile  
 More options Jan 11 2011, 1:25 pm
From: Derekioh <Derek...@yahoo.com>
Date: Tue, 11 Jan 2011 10:25:26 -0800 (PST)
Local: Tues, Jan 11 2011 1:25 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems
I'm sorry, I'm new to ubuntu and I'm still learning to use it. where
would I go to uninstall it?

On Jan 11, 1:23 pm, ash11tw <ash1...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ash11tw  
View profile   Translate to Translated (View Original)
 More options Jan 11 2011, 1:35 pm
From: ash11tw <ash1...@gmail.com>
Date: Tue, 11 Jan 2011 10:35:18 -0800 (PST)
Local: Tues, Jan 11 2011 1:35 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems

system->administration->Synaptic Package Manager
search cython
select the one you installed and right click on it.
choose "mark for removal"
then click "apply" on the top toolbar.

or simple way
under terminal
sudo apt-get --purge remove cython


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Derekioh  
View profile  
 More options Jan 11 2011, 1:51 pm
From: Derekioh <Derek...@yahoo.com>
Date: Tue, 11 Jan 2011 10:51:37 -0800 (PST)
Local: Tues, Jan 11 2011 1:51 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems
Alright so I've downloaded the Cython 0.14 and extract it and typed in
the following in the terminal:

python setup.py install

and it gave me and error saying the 'gcc' failed. Is there something
I'm missing? Sorry about this but thank you for helping


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ash11tw  
View profile  
 More options Jan 11 2011, 2:25 pm
From: ash11tw <ash1...@gmail.com>
Date: Tue, 11 Jan 2011 11:25:51 -0800 (PST)
Local: Tues, Jan 11 2011 2:25 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems

maybe missing gcc?
sudo apt-get install python-dev build-essential

and you may need
sudo python setup.py install  


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Derekioh  
View profile  
 More options Jan 12 2011, 12:24 pm
From: Derekioh <Derek...@yahoo.com>
Date: Wed, 12 Jan 2011 09:24:25 -0800 (PST)
Local: Wed, Jan 12 2011 12:24 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems
Well, I'm getting closer. I installed the cython 0.14 which allowed me
to build the python wrapper. But when I go to try the demo
(which I typed this)

sudo python demo_cv_async.py

I got this error:

Traceback (most recent call last):
  File "demo_cv_async.py", line 2, in <module>
    import freenect
ImportError: /usr/local/lib/python2.6/dist-packages/freenect.so:
undefined symbol: freenect_sync_get_video

The code has a line that uses: freenect.sync_get_video but I'm not
sure what happened. Any ideas?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ash11tw  
View profile   Translate to Translated (View Original)
 More options Jan 12 2011, 12:58 pm
From: ash11tw <ash1...@gmail.com>
Date: Wed, 12 Jan 2011 09:58:29 -0800 (PST)
Local: Wed, Jan 12 2011 12:58 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems

I don't have that problem.
But you can check this thread.
https://groups.google.com/forum/#!topic/openkinect/ZcQkHWOYfDw


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bwhite@dappervision.com  
View profile  
 More options Jan 12 2011, 1:12 pm
From: "bwh...@dappervision.com" <bwh...@dappervision.com>
Date: Wed, 12 Jan 2011 10:12:11 -0800 (PST)
Local: Wed, Jan 12 2011 1:12 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems
You need to build the main libfreenect driver and install it.  Make
the build directory, cmake .., make, sudo make install.

-Brandyn

On Jan 12, 12:24 pm, Derekioh <Derek...@yahoo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Derekioh  
View profile  
 More options Jan 12 2011, 7:41 pm
From: Derekioh <Derek...@yahoo.com>
Date: Wed, 12 Jan 2011 16:41:42 -0800 (PST)
Local: Wed, Jan 12 2011 7:41 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems
I built and installed the libfreenect driver and I could play the demo
using:
freenect-glview

it's just when I try to play the demo of the python wrapper, it gives
the error. Did I build one of them wrong possibly?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
AK  
View profile  
 More options Jan 29 2011, 12:19 pm
From: AK <abhi.gu...@gmail.com>
Date: Sat, 29 Jan 2011 09:19:57 -0800 (PST)
Local: Sat, Jan 29 2011 12:19 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems
Me having the same problem as Derek! Please help.. THe python wrappers
are not running..

On Jan 13, 5:41 am, Derekioh <Derek...@yahoo.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bwhite@dappervision.com  
View profile  
 More options Jan 30 2011, 11:59 am
From: "bwh...@dappervision.com" <bwh...@dappervision.com>
Date: Sun, 30 Jan 2011 08:59:25 -0800 (PST)
Local: Sun, Jan 30 2011 11:59 am
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems

You guys need a recent version of Cython.  Build it from source or use
easy_install cython.  I have several machines with 10.10 using the python
drivers and it didn't require any customization.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
bwhite@dappervision.com  
View profile  
 More options Jan 31 2011, 12:17 pm
From: "bwh...@dappervision.com" <bwh...@dappervision.com>
Date: Mon, 31 Jan 2011 09:17:49 -0800 (PST)
Local: Mon, Jan 31 2011 12:17 pm
Subject: Re: Python Wrapper on Ubuntu 10.10 Problems

I pushed a patch that makes Cython optional and it only uses it if it is a
compatible version.  Let me know if that helps.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »