YouTube Pyglet Development

Discussion about user contributed plugins

Moderator: Moderator

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Mon Mar 03, 2008 4:30 pm

acmelabs wrote:...

Hey guys,
a bit off topic, but anyway: Did anybody manage to get this thing flying?: http://arstechnica.com/journals/linux.a ... plications

My problem on Ubuntu 7.10 is, if I try to run this youtube.py with python2.4, I get this:

Code: Select all

root@pulsar:/etc/mms/scripts/windowexample3# python2.4 youtube.py
Traceback (most recent call last):
  File "youtube.py", line 4, in ?
    import gdata.service
ImportError: No module named service

And If I use python2.5 i'm getting this one:

Code: Select all

root@pulsar:/etc/mms/scripts/windowexample3# python2.5 youtube.py
Traceback (most recent call last):
  File "youtube.py", line 4, in <module>
    import gdata.service
  File "/var/lib/python-support/python2.5/gdata.py", line 29, in <module>
    from elementtree import ElementTree
ImportError: No module named elementtree


I've installed all available python packages ("apt-get install python-*"), just before you ask. It seems, that python-gdata is for 2.5 but elementtree if for 2.4. And I can't have it both.
Are there any python experts, who know how elementtree works with python2.5?

If this is solved, I will test the InputTextField ;-)

Regards,
Andreas
PS: @Fredde: windowsexample2, what exactly should happen? I do only have two buttons doing nothing. Is this supposed to be like that?
Last edited by acmelabs on Mon Mar 03, 2008 7:27 pm, edited 1 time in total.

Fredde
veteran
Posts: 288
Joined: Tue Dec 06, 2005 7:18 am
Location: Sweden

Postby Fredde » Mon Mar 03, 2008 6:54 pm

acmelabs wrote:PS: @Fredde: windowsexample2, what exactly should happen? I do only have two buttons doing nothing. Is this supposed to be like that?


That example show how you can create a window from a xml-file (window.xml in the windowexample2 dir)

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Mon Mar 03, 2008 7:41 pm

Fredde wrote:
acmelabs wrote:PS: @Fredde: windowsexample2, what exactly should happen? I do only have two buttons doing nothing. Is this supposed to be like that?


That example show how you can create a window from a xml-file (window.xml in the windowexample2 dir)
Ahh, thanks! And any idea regarding the elementtree stuff?

Regards,
Andreas

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Mon Mar 03, 2008 8:15 pm

arj wrote:...So changing the line to the last one should w0rk.
:shock: quixotic :!:

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Tue Mar 04, 2008 7:01 pm

arj wrote:... should w0rk.

Hi,
just found out, that the gdata (apt-get install python-gdata) in Ubuntu 7.10 is just far too old. I've done this, and now it's working a abit better. At least I'm getting a window now, after an input is made it cores anyway ;-)

Code: Select all

# Non-members may check out a read-only working copy anonymously over HTTP.
svn checkout http://gdata-python-client.googlecode.com/svn/trunk/ gdata-python-client-read-only


It's from here: http://code.google.com/p/gdata-python-c ... e/checkout

The youtube Pyglet is about ready ... next year I guess ;-)

Regards,
Andreas

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Wed Mar 05, 2008 7:31 pm

OK, I give up :-(
I can't get this simple python sample for youtube to work.
http://arstechnica.com/journals/linux.a ... plications
I can enter a search pattern, and I'm getting a search result, but I can't see any movie display window, and if I try to resize the window, it simply cores.

Does anybody knows,whether this example works at all. It's not funny for somebody, who haven't written a single line of python code yet.

Thanks in advance,
Regards,
Andreas

playya
Posts: 22
Joined: Thu Feb 28, 2008 5:49 pm
Contact:

Postby playya » Wed Mar 05, 2008 11:46 pm

i got it running

i use ubuntu 8.04

this is a known issue in older releases.

try: LD_LIBRARY_PATH=/usr/lib/firefox and then start again

and look at this: https://bugs.launchpad.net/ubuntu/+sour ... +bug/22487

and name of the package is python-gnome2-extras to use the mozilla embedded module

regards frederik

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Thu Mar 06, 2008 6:35 am

playya wrote:i got it running

i use ubuntu 8.04

this is a known issue in older releases.

try: LD_LIBRARY_PATH=/usr/lib/firefox and then start again

and look at this: https://bugs.launchpad.net/ubuntu/+sour ... +bug/22487

and name of the package is python-gnome2-extras to use the mozilla embedded module

regards frederik

Damn! It's really hard to leave the house with this info now. But I can test it tonight.
Huge thanks!

Regards,
Andreas

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Sat Mar 08, 2008 11:27 am

No dice!

This is what I get, if I start this python youtube script: http://pastebin.ca/933530

My LD_LIBRARY_PARH is:

Code: Select all

3# echo $LD_LIBRARY_PATH
/usr/lib/firefox


and the mozillalibrary is also there:

Code: Select all

# ll /usr/lib/firefox/libgtkembedmoz.so
-rw-r--r-- 1 root root 80460 2008-02-07 12:08 /usr/lib/firefox/libgtkembedmoz.so


I guess we'll have the youtube pyglet by the end of next year ;-)

@playya: thanks anyway. I've read the thread, but I'm afraid, this is beyond my head atm.

Regards,
Andreas

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Sun Mar 09, 2008 5:09 pm

acmelabs wrote:.. http://pastebin.ca/933530 ...

Anyone can help / understand this output?

Regards,
Andreas

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Sun Mar 09, 2008 6:24 pm

This one is fatal and is the first and foremost reason why it doesn't work for you:

GtkWarning: could not open display

So it appears they are running the youtube inside a gtk window. That won't work with MMS of course but maybe we can make a shorter example that doesn't depend on gtk so that we can use it in mms. Anyway just wanted to let you know I havn't looked at the youtube stuff yet so I'm sorry I'm not more helpful.

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Sun Mar 09, 2008 8:40 pm

arj wrote:This one is fatal and is the first and foremost reason why it doesn't work for you:

GtkWarning: could not open display

So it appears they are running the youtube inside a gtk window. That won't work with MMS of course but maybe we can make a shorter example that doesn't depend on gtk so that we can use it in mms. Anyway just wanted to let you know I havn't looked at the youtube stuff yet so I'm sorry I'm not more helpful.
Thanks a lot for your help.
OK, then we will have to abuse firefox' libgtkembedmoz.so library for our purposes, without GTK.
Since I hardly know what I myself are talking about here, it will take quite a while to get this thing done here. So If anybody is in hurry with this YouTube Pyglet, write it yourself ;-)

Regards,
Andreas

playya
Posts: 22
Joined: Thu Feb 28, 2008 5:49 pm
Contact:

different idea

Postby playya » Tue Mar 18, 2008 9:30 pm

hi,

what about using flv url ? this has the big plus that you can also download the files and add it to the database.

regards frederik

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: different idea

Postby acmelabs » Tue Mar 18, 2008 9:33 pm

playya wrote:hi,

what about using flv url ? this has the big plus that you can also download the files and add it to the database.

regards frederik

I'm in a reorientation phase atm, since I'm stuck with python and gdata. I'm thinking about a plugin instead of a pyglet at this very moment. It may change tomorrow again ;-)

Like your comment/help right now, I'd appreciate every help I can get.

Thanks!

Regards,
Andreas


Return to “user plugins”

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest