I received a comment on my post “How to play YouTube Video in Ubuntu 9.04?” from jaleshd@gmail.com on August 26, 2009.
The Comment was –
when i click on a video to view it, it says -‘could not open location. you may not have permission to open the file. ‘
Then I had doubt it could be due to the wireless network, because now a days most of the people started using Laptops rather than using a Desktop PC. Most of the laptops have In-build wireless, which makes people easy to access network where ever they go.
I had never received such a error because I was using wired Internet connection.
Then I started Google, relating to that of wireless network and then found it is a bug and it has been resolved.
just refer : https://bugs.launchpad.net/ubuntu/+source/totem/+bug/323649
How did the problem solved ?
Download Patch to totem-plugins-2.26.1-0ubuntu5/youtube.py (565 bytes, text/plain) to desktop.
Copied the patch to /usr/lib/totem/plugins/youtube
$ cd /usr/lib/totem/plugins/youtube
$ sudo cp /home/user/Desktop/totem_plugins_youtube.py.patch .
Then patch the file youtube.py with totem_plugins_youtube.py.patch
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
Thus the patch fixes the error
”Could not open location; you might not have permission to open the file.” .
Now it works fine.
* I Thank all comments and credit for all my efforts to keep going.
For more info refer : How to play YouTube Video in Ubuntu 9.04?
Hello,
It’s Really Nice post about permission for totem. Many of peoples never consider permission problem totem movie player.
Thanks for sharing information. I am gonna try this out.
Regards,
Mihir
ask4itsolutions.com
Hallo,
I had exactly the same problem and I was able to fix it thanks to your post.
Thank you,
Wilfred
Thanks! This also worked for my Fedora 11 system.
I followed your instructions to the letter, but after entering the cp command,
“sudo cp /home/user/Desktop/totem_plugins_youtube.py.patch”
I receive a message,
“cp: missing destination file operand after `/home/user/Desktop/totem_plugins_youtube.py.patch'”
I’m a fairly new Linux user and can’t seem to figure out what I’m doing wrong. Help?
cp is the copy command in linux.
$ cp /home/user/Desktop/totem_plugins_youtube.py.patch .
where ” /home/user/Desktop/totem_plugins_youtube.py.patch ” is the path where the totem_plugins_youtube.py.patch is available, which is followed by a ” . ” to copy the patch file in present directory.
copy the patch file in /usr/lib/totem/plugins/youtube and then patch the file youtube.py with totem_plugins_youtube.py.patch
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
Thus the patch fixes the error.
lol not helpful at all gave me a damn head ache could u pls give instruction that actually work pls thank you.
kmk420@kmk420-desktop:/usr/lib/totem/plugins/youtube$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
sudo: patch: command not found
kmk420@kmk420-desktop:/usr/lib/totem/plugins/youtube$
yes i put the patch there hmmm i wonder what im doing worng
Are you using Ubuntu 9.04 ?
I found on a web site this command that solves the problem:
sudo apt-get install build-essential gcc
The above builds some missing packages and utilities.
Patch is one of them.
Can you share the website link with us
I am imagining that installing “patch” would cause patch to be installed on your system, and that build-essential has it as a dependency.
All serious programmer types are going to need build-essential, but for the rest of us it is probably enough to say:
sudo apt-get install patch
I wonder if the guy above us is using Ubuntu though… When I type in a command provided as a program by some package, if it’s no installed, it usually says this:
$ wesnoth
The program ‘wesnoth’ is currently not installed. You can install it by typing:
sudo apt-get install wesnoth-core
bash: wesnoth: command not found
I’d expect patch to say this if it weren’t installed:
$ patch
The program ‘patch’ is currently not installed. You can install it by typing:
sudo apt-get install patch
bash: patch: command not found
But everything above this line is speculation.
build-essential depends on all these:
11.4 – libc6-dev (16 (null)) libc-dev (0 (null)) g++ (2 4:4.3.1) make (0 (null)) dpkg-dev (2 1.13.5)
It is a metapackage for pulling in tools required for software development via said deps.
The interesting one is dpkg-dev, which depends on all these:
1.14.24ubuntu1 – dpkg (2 1.14.6) perl5 (0 (null)) perl-modules (0 (null)) cpio (2 2.4.2-2) bzip2 (0 (null)) lzma (0 (null)) patch (2 2.2-1) make (0 (null)) binutils (0 (null)) libtimedate-perl (0 (null)) gnupg (0 (null)) debian-keyring (0 (null)) gcc (16 (null)) c-compiler (0 (null)) build-essential (0 (null)) devscripts (3 2.10.26) dpkg-cross (3 2.0.0) manpages-pl (1 20051117-1)
Notice that patch is among those.
That’s an awful lot of apps to install just for patch, if I’m right.
Still… They’re certainly not harmful programs 🙂
how do you download that patch?
[…] it was rather easy. Have a look at the solution provided by M.Srinivasaverman (thanks […]
Will this work with Mandriva ?
alright!
Thanks! it worked.
It took some trial-and-error to get the correct syntax and spacing, but the above patch works. Thanks!
Can you please share your information on syntax etc. I’ve been trying to get an answer on this – I had the same problem Dustin had (see below). Any information would be appreciated. Thanks.
Hi, I’m also new at this
I copied the text in the link into a text file and saved it. Copied it into the plugin directory… I installed the patch command.
However, when I put in
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
The patch command never completes. I can just keep typing endlessly…. at the very least I’m missing some syntax somewhere in the patch command.
Can anyone tell me what I’m doing wrong?
Thanks!
sudo apt-get install nautilus
😉
I can’t paste the patch in to /usr/lib/totem/plugins/youtube….
why???
I’m having a problem similar to Dustin. After typing:
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py
I hit return and then of course there’s nothing. Then I type:
totem_plugins_youtube.py.patch
and hit return, and then still nothing after that.
I tried putting it all on one line (with a space between youtube.py and totem_ …) but that didn’t work either. Can you please tell me what I’m doing wrong? Thank you.
Can I know which operating system are you using at present ?
Sorry for my delay in replying. I’m using Ubuntu Hardy 8.04 (Gnome).
Have you downloaded the patch file “totem_plugins_youtube.py.patch”
Download the patch file.
Then copy this downloaded patch file to /usr/lib/totem/plugins/youtube
then patch the file youtube.py with totem_plugins_youtube.py.patch by typing
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
Thus the patch fixes the error.
I actually did follow your instructions. I downloaded “totem_plugins_youtube.py.patch” to my desktop. Then I opened terminal and typed “sudo cp /home/tapas/Desktop/totem_plugins_youtube.py.patch .” (tapas is my user name)
After that I typed (into terminal):
sudo patch /usr/lib/totem/plugins/youtube/youtube.py
When I hit return I don’t get a “$” prompt
I just see a flashing cursor. So, I typed in (after that):
totem_plugins_youtube.py.patch
and hit return and then … nothing
Just another blank line.
Any suggestions?
No answer?
ok ! I have not noticed your reply !!!
1. I opened terminal and typed “sudo cp /home/tapas/Desktop/totem_plugins_youtube.py.patch .” (tapas is my user name)sudo cp /home/tapas/Desktop/totem_plugins_youtube.py.patch .
where you have copied totem_plugins_youtube.py.patch
from /home/tapas/Desktop/totem_plugins_youtube.py.patch to ?
2. After that I typed (into terminal):
sudo patch /usr/lib/totem/plugins/youtube/youtube.py
From which file you have patched youtube.py
To /usr/lib/totem/plugins/youtube/youtube.py from ?
Sorry, maybe we have a cross misunderstanding from our postings. I did follow all of your instructions. In terms of copying the patch, I copied it from the desktop using
$ cd /usr/lib/totem/plugins/youtube
$ sudo cp /home/user/Desktop /totem_plugins_youtube.py.patch .
When I do “ls” I do see that the patch is there.
Regarding your question #2, I’m not sure what you’re asking. The next set of commands I used is what you posted, namely:
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
Was there something I was supposed to do before this? (meaning before the sudo patch command) I thought that was the command to patch the file.
Hello? Are you still there?
Regarding my above post, I guess I should add that the lines
$ sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
is where I seem to have the problem. What I mean is, if you look at my original post, you’ll see that either I don’t have the correct syntax, or I ‘m missing something. That’s what I’m trying to find out about.
Hi,
In Ubuntu Hardy 8.04, I didn’t find any problem in playing youtube and it worked fabulously!
just refer : https://linuxdesk.wordpress.com/2008/05/13/totem-movie-player-can-play-youtube-videos/
I really faced the problem when I installed Ubuntu 9.04 in my laptop with in-build wireless network, where I found some leakages in my broadband connectivity.
Then I started Google, relating to that of wireless network and then found it is a bug and it has been resolved.
just refer : https://bugs.launchpad.net/ubuntu/+source/totem/+bug/323649
If you feel that it is a problem with patch, you can even manually edit the youtube.py instead using patch
i.e.,
open the terminal from Applications – Accessories – Terminal – and type “cd /usr/lib/totem/plugins/youtube”
once you are in the youtube directory, type “gksudo gedit youtube.py” which opens the config file with admin privs (so you can save it later)
within the file just opened, search for the original line shown in the patch (search for “mrl” – it’s near the bottom) – then copy and paste the new line(from totem_plugins_youtube.py.patch), replacing the old one.
regards,
Verman
It exited with error:
patching file /usr/lib/totem/plugins/youtube/youtube.py
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED — saving rejects to file /usr/lib/totem/plugins/youtube/youtube.py.rej
I may clarify that in my case the error is occurring on a Desktop Ubuntu 10.04 running on a wired Ethernet connection.
I have same error.
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED — saving rejects to file /usr/lib/totem/plugins/youtube/youtube.py.rej.
Actually, nothing to patch….the youtube.pu is empty
I need another youtube.pu.
Pls. post here
PLZ HELP Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED — saving rejects to file /usr/lib/totem/plugins/youtube/youtube.py.rej
seems to be no youtube.py to patch.
/usr/lib/totem/plugins/youtube$ ls
libyoutube.so youtube.totem-plugin youtube.ui
———
Linux 2.6.32-24-generic #38-Ubuntu
totem 2.30.2
Sorry friends I haven’t tried with Ubuntu 10.04.
I try and get back to you.
thanks,
verman
Similar problem:
patching file ./youtube.py
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED — saving rejects to file ./youtube.py.rej
On ubuntu 10.04 and it seems that i had no youtube.py in /usr/lib/totem/plugins/youtube
Maybe is there another solution for ubuntu 10.04?
(sorry for my English, it may be buggy)
Helo,
the same problem with 10.04.1
Do You have solution already?
(sorry for my English)
No i have no solutions but i just migrated to 10.10 and there is no problems with it.
I got the same result… 😦
When I run the patch I get the error
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED — saving rejects to file /usr/lib/totem/plugins/youtube/youtube.py.rej
Any ideas ?
Well,… i’ve got following Problem:
when i type:
sudo patch /usr/lib/totem/plugins/youtube/youtube.py totem_plugins_youtube.py.patch
it gave’s me following:
patching file /usr/lib/totem/plugins/youtube/youtube.py
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED — saving rejects to file /usr/lib/totem/plugins/youtube/youtube.py.rej
and the Problem isn’t solved
I am having similar problem.
Hunk #1 FAILED at 337.
1 out of 1 hunk FAILED — saving rejects to file /usr/lib/totem/plugins/youtube/youtube.py.rej
I have the same problem in 10.04
Hunk #1 FAILED at 337.
And then I looked into the .rej file and it shows below:
*** /dev/null
— /dev/null
***************
*** 337
– mrl = “http://www.youtube.com/get_video?video_id=” + urllib.quote (youtube_id) + “&t=” + urllib.quote (t_param) + self.get_fmt_string ()
— 337 —–
+ mrl = “http://www.youtube.com/get_video?video_id=” + urllib.quote (youtube_id) + “&t=” + t_param + self.get_fmt_string ()
I don’t know what does it mean..has anyone solved this problem?
I upgraded to Ubuntu 10.10 and youtube works fine.
i’ve tried it all on ubuntu 10.04 and it just doesn’t work .
A hand-out would be fine …. lol
for me (ubuntu 10.04) it did not work also. fortunatly I found this firefox plugin wich allowes to hand over a embeded Youtube video stream to an external player – it works grandious for me!
https://addons.mozilla.org/en-US/firefox/addon/161869/
AND it sved me a lot of time regarding my configurations…:-)
have fun with it!
ps.
does not work if mplayer connectivity plugin is installed an activated on the same time.
For someone trying this do not even think of trying on Ubuntu 10.04 – it just does not work. Try upgrading to 10.10 – it works by default.
[…] open location; you might not have permission to open the file totem' (and similar). For example Could not open location; you might not have permission to open the file – Totem Movie Player What version of totem is installed? Reply With Quote + Reply to Thread […]
Why users still use to read news papers when in this technological world the whole thing is existing
on web?
Great post. I was checking continuously this blog and I’m impressed! Extremely helpful info specifically the last part 🙂 I care for such info a lot. I was looking for this particular information for a long time. Thank you and good luck.
See Root Explorer here. Upon release, the Blackberry S2, a handset that does not
mean that the Samsung-Apple patent infringement war is suddenly over — oh no.
And we’re not even talking about apps yet: write, if you prefer oversaturated colors think Dynamic or Vivid mode on a TV you’ll like
the Galaxy Camera. In both cases, you can add files to the device.
Link exchange is nothing else except it is simply placing the other person’s weblog link on your page at proper place and other person will also do similar in support of you.
Treinos Kegel a fim de ejaculação adiantado. http://withinfp.sakura.ne.jp/eso/index.php/9010257-tal-como-atrasar-a-ejaculac-ao-prematuro-de-chance-por-todas-e-/0
https://koinonia.social/selfsijesyn auriasaili grantlan a30b5ac58e