Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I just installed ubuntu 11.10 on my netbook yesterday. I am having a problem getting tortoisehg working properly on it. I added the ppa for both tortoisehg and mercurial. I am able to install the software (tortoisehg, tortoisehg-nautilus) as I have done in past versions of ubuntu (not 11.04 - I skipped that version). When I launch nautilus and navigate to one of my repositories I don't see any context menu options for tortoisehg and I don't see any overlay icons indicating the repository status. I know tortoisehg is installed because I can issue the thg command at a terminal and the workbench shows up.

Any ideas on how to get things working?

share|improve this question
    
I am wondering if anyone knows how to set up the context menus manually? –  Bluebill Nov 13 '11 at 12:43
    
check my answer it's pretty close to how Tortoisehg was –  zeitue Jul 4 '12 at 7:28

6 Answers 6

up vote 3 down vote accepted

It seems to relate to bug #859104: Nautilus extensions written in Python do not work in Oneiric. Unfortunately the solution seems to be that someone needs to rewrite the tortoisehg Nautilus extension.

share|improve this answer

I have this problem too so I wrote something to fix it.

just run this in the terminal to set up

START=$(pwd)
sudo apt-get install mercurial tortoisehg
mkdir -p ~/.local/share/nautilus/scripts/
cd ~/.local/share/nautilus/scripts/
hg clone https://bitbucket.org/zeitue/nautilus-mercurial-scripts
mv nautilus_mercurial_scripts/Mercurial/ .
rm -Rf nautilus_mercurial_scripts/
cd $START

OK done, now just right click the folder/repo and look under scripts

share|improve this answer
2  
Good enough for me. Should be marked as an answer. –  Pius Jun 24 '12 at 8:28
1  
This works quite well for me as well. Thank you. –  karlgrz Sep 13 '12 at 3:36
    
thanks for writing this. For anyone using ubuntu 13.04 you need to put the scripts in the /home/$USER/.local/share/nautilus/scripts/ in order for nautilus to find them. –  NotNamedDwayne Aug 6 '13 at 5:47
    
@NotNamedDwayne thanks I updated it –  zeitue Aug 12 at 6:45

If you have something like this:

(nautilus:2750): Nautilus-Python-WARNING **: g_module_open libpython failed: /usr/lib/libpython2.7.so.1.0: cannot open shared object file: No such file or directory
compiz (core) - Info: Unity is fully supported by your hardware.
compiz (core) - Info: Unity is fully supported by your hardware.
compiz (core) - Info: Starting plugin: opengl
ImportError: could not import gobject (error was: '/usr/lib/x86_64-linux-gnu/libpyglib-gi-2.0-python2.7.so.0: undefined symbol: _Py_ZeroStruct')

On your .xsession-errors file at home directory maybe this could help you:

https://bugs.launchpad.net/ubuntu/+source/tortoisehg/+bug/1202823

Good luck

share|improve this answer

I managed make it work it rather easily by using the tortoisehg ppa:

sudo add-apt-repository -y ppa:tortoisehg-ppa/releases
sudo apt-get update
sudo apt-get install mercurial tortoisehg
share|improve this answer

I was researching this myself. It may be related to a bug in nautilus-python running on Oneiric. In the description, there is mention of a possible related bug with a similar context menu issue in another application.

share|improve this answer
    
Thanks for the link to the bug report. –  Bluebill Oct 17 '11 at 21:56

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.