Python is an interpreted programming language that is often, but not solely, used as a scripting language. A version of Python is included by default on all Ubuntu distributions.

learn more… | top users | synonyms

0
votes
0answers
64 views

Launch a python script from VM (Windows) From Host (Ubuntu 14.04)

So I've seen this question (link at bottom), but for some reason the -exec command doesnt exist in my VBoxManage (Maybe because my virtualbox is windows). My python script is in a shared folder ...
0
votes
1answer
54 views

Changing desktop background does not work as root

I am trying to write a python script that changes my background periodically. This is the relevant code where I change the background: command = "gsettings set org.gnome.desktop.background ...
1
vote
1answer
4k views

How do I update Python from 3.4.3 to 3.5? [duplicate]

I'm also using Jupyter and Anaconda, will it break/delete them or any python modules?
0
votes
0answers
94 views

I want to install pyv8 for using python-Wappalyzer but I cant fix this error

at the first I ran this: pip install -e git://github.com/brokenseal/PyV8-OS-X#egg=pyv8 this message showed : Obtaining pyv8 from git+git://github.com/brokenseal/PyV8-OS-X#egg=pyv8 Updating ...
1
vote
3answers
1k views

ubuntu 14.04 - USB serial port - device reports readiness to read but returned no data (device disconnected?)

After two days of web searching I have to admit that this is beyond me and need some assistance please I admin several machines(but do not claim to be a Linux admin), mainly running 12.04 LTS - we ...
0
votes
2answers
46 views

Using the For loop in python, and how to loop on the same line [closed]

I have a bit of code I need to loop, i can loop it but it just creates 3 of the same line, how can i use the for loop to make it print out words on the same line, at the end of a sentence. Ex. "OW OW ...
1
vote
1answer
88 views

Running a Python Script in the Background after Accepting INput

Is it possible for me to run a Python Script so that it firsts runs and prompts for the different inputs it needs, then goes out into the background and runs but frees up my terminal?
0
votes
1answer
34 views

How to run python script installed after converting to .deb?

I installed a python script using the instruction of @STAlfas' answer in How do I create deb package for only single python script? It worked correctly, (I think so). But I don't know how to run it. ...
0
votes
1answer
205 views

Apache2.4.10 on Ubuntu returning Internal server error on running CGI scripts

I am running Apache/2.4.10 (Ubuntu) and I was trying to run CGI scripts with the following configurations. /etc/apache2/apache2.conf With the following Mutex file:${APACHE_LOCK_DIR} default ...
0
votes
2answers
138 views

Set “Allow executing file as program” as default when files are added to a folder later

I have a folder, I am setting its permissions by using chmod. chmod 777 /home/Desktop/Project is success. I am using a tool(.exe) that will download the project from the repository. But after the ...
3
votes
0answers
124 views

Run python script from a launch file not in the same directory [duplicate]

I would like to run a Python script by double-clicking a launch file, but the script is not in the same folder as the launch file. The information is going to be recorded in a CD (kind of ...
0
votes
1answer
81 views

Why doesn't my MySQLdb work? (Python) [closed]

I want to execute a db query from python: import MySQLdb mydb = MySQLdb.connect(host='127.0.0.1', user='root', passwd='', db='macadd', port=3306) c = mydb.cursor() c.execute("""INSERT INTO ...
1
vote
0answers
17 views

Does someone still have all the documentaton on Quickly?

The project seams to be dead, but I am using it to create an app, but I need more documentation. I cant run the quickly tutorial, maybe because I'm using elementary Freya, but I am missing a lot of ...
0
votes
1answer
23 views

Getting a setup script to install in the correct library destination. (Pmw 2.0.0)

Problem: I'd like to install Pmw 2.0.0 (project page here) so that I can use it with tkinter in python3. The setup script from the package detects which version of python you're using and installs ...
2
votes
2answers
178 views

Biopython installation

I have installed python-biopython and successfully used it in my python scripts with something like: import Bio But it eventually stopped working and now even after uninstallation and ...
1
vote
1answer
172 views

How to prompt for sudo password using GUI?

I have written a Python script that executes several sudo-requiring actions. How can I make the script provide a GUI prompt for the sudo password when executed? I've tried placing gksudo -s python ...
0
votes
0answers
91 views

Developing Gui application with Ubuntu-SDK + python

To make a long story short: I created gui part of my program with Ubuntu-Sdk(QTCreator) and transformed it into python file with pyuic5. I set up window title in main.py file, however if I alt tab I ...
0
votes
0answers
38 views

XUbuntu autostart python script doesn't work

I have a Python script I want to run immediately after logging in, I've tried both creating a .desktop file and placing it in ~./config/autostart as well as the GUI program "Settings Manager-> Session ...
1
vote
1answer
98 views

Gedit plugins not working after upgrading from version 12.04 to 14.04

Some Gedit plugins (for example codecomment) are not working after upgrading from version 12.04 to 14.04. When I go in Preferences->Plugins and check the box of one of those plugins, I get a message ...
1
vote
1answer
58 views

Ubuntu file manager is not showing proper icons

I am a programmer; and I have noticed something odd lately. All files of a code language, but mostly python do not display the proper file icons. I know that this is not a "big deal". The reason it ...
0
votes
0answers
19 views

Cherrytree Fails to Run

When trying to run Cherrytree from terminal, I get the following errors:  >cherrytree  Traceback (most recent call last):   File "/usr/bin/cherrytree", line 65, in ...
1
vote
1answer
99 views

can't run my own .desktop file

I want to create a .desktop file to execute a python script. Here's the code in the file: [Desktop Entry] Type=Application Encoding=UTF-8 Name=Sample Application Name Comment=A sample application ...
0
votes
1answer
166 views

Errors when importing with pip due to PYTHONPATH on ubuntu server

I've been following this tutorial and it states that The $PYTHONPATH variable seems to get unset randomly, and causes errors for later steps. and then to add the following to ~/.bashrc: export ...
3
votes
1answer
214 views

Revert to original version of python

I am trying to install a package called nmoldyn in my system. This package caused havoc in my system. It required some packages in python, so what it precisely did was install an older version of ...
0
votes
2answers
963 views

Ubuntu corrupted when apt-get install and remove python 3.5.0

I'm using freshly installed Ubuntu 15.04 in that I want to install the newer version of Python. So, in terminal I typed this. sudo apt-get install python 3.5.0 And it downloaded and installed ...
1
vote
0answers
82 views

After manually installing Python 3.5 on Ubunut 15.4 I broke Unity, how can I fix it?

I've done a foolish thing - I did a classic "make install" style installation of Python 3.5. This was a bad idea because it over-wrote some of the Python 3 components, including symbolic links. It ...
0
votes
2answers
78 views

POST request using python-maas-client

How can we do the post request to maas api using the python-maas-client. I am getting the details from maas api using the maas-client by the following code. print maas_access.get(u"networks").read() ...
0
votes
1answer
1k views

OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pelican-3.6.3.dist-info'

I run pip install pelican markdown I got this error message: Exception: Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main status ...
1
vote
0answers
77 views

Restore Python installation to default plus apt package dependencies

I have played around a lot with my Python installations (2 and 3) and installed a bunch of packages, some using apt-get, but most using pip. I have also upgraded many apt-installed packages with pip ...
8
votes
2answers
7k views

Python 3.5 has just been released, can I get it as a package for Ubuntu 15.4?

I want the very latest version of Python, but I don't want to bypass the apt package manager: I don't want to do an old-school source install because that can make it harder to uninstall when the ...
0
votes
1answer
66 views

Trouble with python 3 and spyder 2.3 on Ubuntu 12.04

I am trying to install spyder2.3+python 3 on Ubuntu 12.04. First, I made the mistake of using sudo apt-get install spyder, which installed a version of spyder which didn't work with python 3. So I ...
4
votes
1answer
396 views

Upgrade from Ubuntu 10.10 to 14.04.3, apt not recognizing new install of python 2.7.9

I am running Ubuntu 14.04.3 LTS on a Dell T410 server, having upgraded from 10.10 (Maverick) earlier today. The upgrade went well for the most part, but I am having some difficulty using apt-get ...
2
votes
1answer
267 views

Problems with apt dependencies after install of python 3.5

I downloaded and compiled the latest python, 3.5, and installed it with checkinstall. Now I am getting a ton of packages that have missing dependencies in apt. apt-xapian-index : Depends: python ...
0
votes
1answer
60 views

installing Basemap

I'm new to the whole linux installing procedure so please help me learn to actually debug this problem myself i'm pretty stuck right now. I've read the guide to installing Basemap I have done what it ...
2
votes
1answer
167 views

PlayOnLinux using Anaconda python installation and can't find wxversion

I have an installation of Anaconda in my home directory but it's giving me problems when I try to run PlayOnLinux. I get this error: Looking for python... 2.7.10 :: Anaconda 2.3.0 (64-bit) - ...
0
votes
1answer
69 views

Installing compiler packages [closed]

I am totally new to Linux. All my studies are now dependent on it. So I've installed Ubuntu in my laptop. I need to install few software packages for my compiler course to run llvm (I am following the ...
1
vote
1answer
85 views

Error installing python-numpy

On a virtual Linux box with Ubuntu 15.04 (freshly created) I am about to install python-numpy, but I get some error: >sudo apt-get install python-numpy Reading package lists... Done Building ...
3
votes
1answer
324 views

Keep Python IDLE in launcher

I'd like to have an icon for Python's Integrated DeveLopment Environement (IDLE) in my launcher. When I've started IDLE via the dash, I can right-click on the icon and choose the 'Lock to Launcher' ...
3
votes
1answer
787 views

Unable to Locate Package python-pandas

I am running Ubuntu 14.04 LTS. To install the Python pandas library, I ran sudo apt-get install python-pandas The output was as follows: Reading package lists... Done Building dependency tree ...
1
vote
1answer
43 views

quickly run is not working

This is my terminal answer after quickly run command. Traceback (most recent call last): File "bin/browser", line 35, in import browser File "/home/alen/browser/browser/init.py", line 12, in from ...
0
votes
0answers
40 views

Is there any tool available for AV Sync Verification for video files?

I have a bunch of video files, I want to check their audio and video are in synchronization. I thought of writing a script for same. But I'm not getting proper base how to do that.
1
vote
1answer
85 views

What is last step in installation of Tcl/Tk on Ubuntu 15

On Ubuntu 15.* I did a sudo apt-get install tk8.5 tcl8.5 and that ran fine. But, when I start Python and import tkinter I get an error message: ImportError: no module named "_tkinter" I assume I ...
0
votes
0answers
44 views

Learning python in a virtual environment

I am a beginner user of ubuntu and I am currently using ubuntu 14.04.03 lts. I would like to learn python and to be precise I would like to start with python 3.4.3. I would also like to set up a ...
0
votes
1answer
126 views

Tried to upgrade python. Fell down the rabbit hole. Ended up breaking cinnamon. Back, but on thin ice

Where I'm at; I've just fixed Ubuntu 14.04 via fresh install and recovery. At this point, I've installed python 2.7.10 from source on Ubuntu 14.04. I set it to be the primary python program during ...
-1
votes
1answer
44 views

Error during MediaProxy installation

I am installing mediaproxy on my server debian. Please review the error pasted below. I have also tried installing the dependencies but still this error occurs. Need help on this. ...
1
vote
0answers
93 views

If I install a python package with `apt-get`, can I upgrade it later with `pip`?

I installed a python package (django) using sudo apt-get install python-django. Now I want to upgrade to the latest version. Should I run sudo pip install -U django, or should I uninstall first the ...
1
vote
1answer
53 views

How to fix apt after doing easy_install pip?

I ran into the following error while using pip: "pip stops with ImportError for request-Modul" I read on a forum that an easy solution was to just apt-get remove pip and then to do easy_install pip. ...
0
votes
0answers
67 views

Cron job not finishing

I have a custom Python script set to run with Cron on a 3-day per week basis. The job runs great, up until a certain point. The job is supposed to ZIP certain directories on my media server, and place ...
2
votes
1answer
290 views

why is there more than one python 2 command in ubuntu 12.04?

so while playing with some aliases I realized that there are three python commands (without taking into account the python 3 commands) in the terminal: python python2 python2.7 So my question is ...
0
votes
0answers
327 views

How do you fix “unmet dependencies … but [something] is to be installed” error?

I am trying to install and configure an Ubuntu, Django, and MariaDB stack. I have the latest (as of writing) MariaDB 10.0 installed, and as per the Django documentation regarding databases, I am ...