Tag Info

Hot answers tagged

4

Do an apt-get install ubuntu-desktop. This will reinstall all the packages part of the default setup.


2

In the future don't do this. Do not manually remove (or otherwise mess with) any files installed via package management tools (unless they are explicitly set up for this like configuration files, etc.). That being said if you are unable (and it looks like this might be the case) to use apt-get to recover from this situation because there are parts of the ...


2

Is there a way to reinstall python on ubuntu without just doing a clean wipe? Yes. Re-install without formatting. It will also be the quickest method fixing this since you probably already have a Live DVD.


2

Options: Option 1 -> LAMP-C++ with web.py That's a rather simple deployment option, ideal for the case when you're writing a web service with little or no GUI. web.py 0.37 (pip list | grep web.py) web.py info on stackoverflow -> link Option 2 -> LAMP-C++ with Django and Mezzanine That's an option if you want to make a web site, maybe still with a ...


2

Normally, in Ubuntu, python defaults to python2. So you probably have a #!/usr/bin/env python3 # or similar in the top of your script. Either if this is the case or if you have changed the defaults, in the header of your program, change #!/usr/bin/env python # (or the more probable python3) to #!/usr/bin/env python2 # In standard Ubuntu, ...


1

There is a third-party packaged .DEB: Here


1

On Linux, lightblue internally uses the PyBluez library, which doesn't currently allow a socket to opened on a specific HCI device. PyBluez internally uses the Linux bluetooth sockets functionality, so it depends on whether that allows sockets to be created for a specific HCI device. My guess is that it doesn't, else this functionality would have been ...


1

I'm not sure about getting Nautilus to change it's default open-with program (on Thunar it's in the right-click menu, open with other, change default, but that doesn't really help here)... I have a bunch of .desktop files in /usr/share/applications/, tried copying your .desktop file into there? Or ~/.local/share/applications/ ? I also have a file in my ...


1

OK, Solved it!. The problem was with the desktop file. in the exec line, I had to add a %f for nautilus to show it in open with menu. Exec=/home/thekindlyone/projects/vlcwrapy-nix/vlcwrapy-nix.py %f Here is a video demonstration, if anyone is interested.


1

Seems to be a bug that it is reported here It should work if you install a later version of pip. You can remove the current pip installation with: sudo apt-get purge python-pip Then install it from github(it is a later version): wget https://raw.github.com/pypa/pip/master/contrib/get-pip.py python get-pip.py Edit If it still won't work try this as it ...


1

You can have both the default version of IPython from the Ubuntu Software Center and IPython 2.3.1 installed at the same time. Install IPython from the Ubuntu Software Center or from the terminal using the following command: sudo apt-get install ipython ipython3 Install IPython 2.3.1 in a virtual environment. virtualenv allows you to create a sandboxed ...


1

I'd just parse the output of either xprop or xwit and wmctrl (you might have to install wmctrl first: sudo apt-get install wmctrl). xprop gives a lot of information on windows. xprop -root gives you information on the active window, a.o. the window id, and wmctrl -l gives you a list of currently opened windows. Using the -p option also gives you ...


1

The package name is python-numpy sudo apt-get install python-numpy


1

This is easy to solve - you just need to make sure that your file is saved before executing the code.


1

You should remove each package that gives you difficulties, then reinstall them. See http://askubuntu.com/a/32899/176376 for removal without removing dependancies. sudo dpkg -r --force-depends "package" sudo apt-get install "package" You should remove all of the problem ones first, and then install them again. Run a sudo apt-get install -f and sudo ...


1

Open a terminal and type the following commands: First, try sudo apt-get -f install If that doesn't work, try sudo dpkg --configure -a If you are still left with problems, run sudo apt-get install --reinstall python python-chardet python-colorama python-distlib python-django python-django-tables2 python-six python-html5lib python-lxml ...


1

You can just reinitialize the virtualenv by: cd <virtualenv-dir> virtualenv .



Only top voted, non community-wiki answers of a minimum length are eligible