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
24 views

i am making a web app and i got this error with mysql

* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit) [2016-06-27 01:37:28,036] ERROR in app: Exception on / [GET] Traceback (most recent call last): File "/home/ubuntu/.local/lib/python2.7/...
0
votes
1answer
14 views

Remotely log into multiple computers and run a python script

I am currently trying to set up network rendering with Blender using computers on different networks. I made a script that launches blender and connects to the host's computer. My problem is that I ...
0
votes
1answer
25 views

Unable to install matplotlib using pip in Ubuntu 16.04

In Ubuntu 16.04 I am able to install almost every python package and library using pip except for matplotlib. I use this command to install matplotlib pip install matplotlib This gives the error: ...
0
votes
1answer
28 views

Remove/Uninstall Python 3.5

I am trying to uninstall Python 3.5. I have tried this up till now: sudo make clean sudo make uninstall sudo -n install These commands don't remove Python 3.5 completely. I want to keep 3.4 as it ...
0
votes
0answers
9 views

Errors were encountered while processing: python-pkg-resources

I was trying to install the packages: sudo apt-get install -y network-manager cron unattended-upgrades avahi-daemon ros-kinetic-ros-base python-rosdep but this failed with the error: Errors were ...
1
vote
0answers
16 views

Changes via Gio.Settings don't take effect

As the title suggests, I am trying to alter gsettings via python's Gio module on Ubuntu 16.04 LTS ( a user over at Unix & Linux site said the script bellow works on Arch, so it may be Ubuntu-...
3
votes
0answers
23 views

How to sandbox code in chroot for multiple users?

What am I trying to do? I'm writing a code evaluator using chroot and python and went to hackerrank for some inspiration. What I think is happening at Hackerrank? Hackerrank creates run-...
1
vote
0answers
19 views

Why can't java find my fonts?

Whenever I try to run any jar file via java -jar file.jar, I get an exception saying: Exception in thread "main" java.lang.NoSuchFieldError: fontFile I just earlier today was having the same issue ...
1
vote
0answers
20 views

Python plots won't display: “Font config error”

I am trying to plot some histograms with matplotlib.pyplot through the PyCharm IDE. Whenever I run my project, I get the same thing: Font config error: cannot load default config file and no ...
1
vote
1answer
20 views

IndexError: list index out of range when installing iPython in Ubuntu 14.04

I am following this and I am getting: gsamaras@gsamaras-A15:~$ sudo pip install "ipython[notebook]" Downloading/unpacking ipython[notebook] Downloading ipython-4.2.0-py2-none-any.whl (736kB): 736kB ...
0
votes
0answers
13 views

Building very long rsync inclusions and exclusions with Python

I'm trying to run a backup of all my .x folders in Home to save configurations. With the program I'm writing, you can select any folders you want included or excluded from the backup, this list is ...
0
votes
1answer
37 views

Numpy broken in ubuntu 16.04 LTS

I have instaled packages "python-numpy" on ubuntu 16.04 LTS. Unfortunately, the package is broken: >>> import numpy Traceback (most recent call last): File "<stdin>", line 1, in <...
1
vote
0answers
32 views

Unable to install Pillow on Ubuntu 15.10

I m trying to install pillow via the command : pip install pillow on my Ubuntu machine but I repeatedly get this error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 How can I fix ...
1
vote
0answers
20 views

How does one package a python application that includes a gsettings schema with setuptools?

I'm trying to use setuptools to package a python application that relies on gsettings for storing and retrieving user's preferences. However I have not used said tool before and I am unsure about what ...
0
votes
0answers
21 views

alt key shortcuts in pycharm are not working on ubuntu 16.04

Shortcuts involving "Alt" key is not working on pycharm. For example the shortcut for "finding usages" on my machine is "Alt +f7". But whenever I press this key, my cursor changes from arrow to the ...
0
votes
0answers
24 views

Python Gobject broken Help?

I don't know what broke it, but my python Gobject library is missing something ... When I try to run most tools like gnome-tweak-tool which require GTK, I get an error saying : Traceback (most ...
0
votes
1answer
25 views

setuptools must be installed to install from a source distribution

I am trying to install pywavelets lib I gave a command pip install pywavelets It gave me a error setuptools must be installed to install from a source distribution. Checking with this error I saw ...
1
vote
1answer
24 views

python: pip install xmltodict fails

I would like to use Ansible on my ubuntu machine. I tried to use the ping module and it complains that it does not find the xmltodict python library. I thus wanted to install the missing module using ...
3
votes
0answers
26 views

Software & Updates crashes and will not open

I am unable to open the Software & Updates configuration window in System Settings. The best I have been able to do to understand what is going on is the following output after opening System ...
0
votes
2answers
64 views

Start terminal in ubuntu with a python script?

How can I start a terminal in Ubuntu 16.04 with a python script, execute commands on that terminal, and retrieve the output from those commands? For example, I want to check the contents of a folder (...
4
votes
1answer
21 views

ps inside crontab is not seeing a running process

I have this robot worker.py, which I just run as: python worker.py --details There are many problems surrounding this robot, so it keeps going down each 30 minutes. When the robot is running, ps ...
-3
votes
0answers
21 views

Which distro is best for running large python programs? [on hold]

I have been using Ubuntu 14.04 in Virtualbox (host being Windows 8.1) for implementing some Natural Language Processing tools (using python). But Ubuntu crashes when i run some large programs. I was ...
1
vote
0answers
26 views

Geeknote installation

I am trying to install Geeknote from source using the instructions from https://www.geeknote.me/documentation/. When I get to line 7 of the instructions in the terminal, I get the following error ...
3
votes
1answer
32 views

No module named pygame

I have two Ubuntu VMs. On one of them, I can't seem to install PyGame. I've tried installing through various methods: sudo apt-get install python-pygame (Remove and reinstall pygame a couple times) ...
0
votes
1answer
39 views

Packages broken after accidentally deleted python3

I accidently deleted my python3 package and then I'm trying to reinstall the package. But I am running into errors everytime. The following packages have unmet dependencies: devscripts : Depends: ...
1
vote
1answer
31 views

Pydev installation problem in eclipse

I am trying to install pydev 5.0 in eclipse 3.8.1 in Ubuntu 14.04 LTS,using Help->install new software.. I have Open java 1.7.0_101 and python 2.7.6. Installation success but it doesn't see in ...
0
votes
0answers
27 views

Python Pandas: SyntaxError: invalid token

I tried to import pandas as pd in my ubuntu terminal, unfortunately I'm running into import error. ramesh8v@vm64-223:~/anaconda3$ python Python 3.5.1 |Anaconda 4.0.0 (64-bit)| (default, Dec 7 2015, ...
0
votes
0answers
36 views

How do I install 32 bit anaconda on my 64 bit machine?

I'm using Ubuntu 16.04 LTS and use Python 2.7.11 |Anaconda 4.0.0 (64-bit) but in order to properly run pygame (which is only available in 32 bit) I need to have 32 bit Anaconda. I tried it with ...
1
vote
0answers
28 views

Syntax for sending notification hint using gdbus or python's dbus module

I'm trying to update a previous notification (which displays the screen's brightness after being changed using a progress bar) with gdbus, as notify-send does not support updating. Previously I use ...
0
votes
1answer
44 views

When trying to import Matplotlib.pyplot, get “UnicodeDecodeError”

When trying to run a Python script starting with import numpy as np import matplotlib.pyplot as plt I'm getting the following error message: /usr/lib/python2.7/dist-packages/matplotlib/...
2
votes
1answer
33 views

Can't install Mrtg on Ubuntu 14.04 LTS [closed]

I can't install MRGT-2.17.4 on Ubuntu 14.04 LTS Text appear Error below ? Reading package lists... Done Building dependency tree Reading state information... Done mrtg is already the newest ...
0
votes
0answers
37 views

Unable to run python script remotely through SSH on ubuntu 12.04 [closed]

I am trying to implement a networking model (functioning well on Ubuntu 14.04) on my system (Ubuntu 12.04), which involves connecting with nodes (machines) remotely and running python script on them. ...
0
votes
0answers
21 views

Unable to use Speech recognition module in Ubuntu 15.10

I am trying to use speech_recognition module in python 2.7, everytime when I import speech_recognition I get the following errors: aravinth@Don:~$ sudo python2.7 -m speech_recognition [sudo] ...
2
votes
1answer
27 views

How can I store what video I am watching using Python in Ubuntu?

I am new to Ubuntu. I watch a lot of TV shows and sometimes lose track of what I am watching. When I used Windows, I refered to the list that pops up on right-clicking the VLC icon to keep track of ...
1
vote
2answers
24 views

Creating Virtual Box desktop with Linux on my mac

I am a novice Python programmer and I am having trouble creating a Virtual Box, hopefully this is an easy fix! So, I've been using a virtual machine for my computational physics class, but it is ...
-1
votes
0answers
21 views

script nameEror in python to make naver line bot [duplicate]

help this is my problem help my problem please master help me i dont know this script solutions for op in client.longPoll() op_list.append(op) NameEror in client.longPoll
-3
votes
0answers
45 views

Error in running python script: nameError in naver line [closed]

Please help me find the error in this script
0
votes
0answers
20 views

How to change python+filename.py auto-complete to anyfilename

This questions may seems silly as I am a new Linux user on Ubuntu 16.04. I am learning python now. As the command python x+tab will only auto-complete xxxxx.py instead of xxxxx without .py. How ...
0
votes
0answers
15 views

odroid board gpio error [duplicate]

Please help me solving this issue.I am working on odroid-c1 board and started with gpio programming and my code is: import time import RPi.GPIO as GPIO LED = 22 GPIO.setmode(GPIO.BOARD) GPIO....
0
votes
0answers
33 views

PyCharm's Problem with shared folder of VirtualBox

I have installed Ubuntu in the VirtualBox on Windows 7 host then I shared a folder from windows host to Linux in the VirtualBox and add my login user to vboxsf group. Now I can compile latex files ...
1
vote
1answer
48 views

Creating a bash script [closed]

Alright so, just for a little heads up, I literally just learned what bash script was today. Anyways, I have this series of voice recognition programs wrote in python, and I wanted to make a voice ...
0
votes
0answers
17 views

why other python modules are not incoorported with virtualenv

Hi I have downloaded pymorph module through virtualenv. I activated it to be able to use that module in my code. It works fine and my code is working under virtualenv. The problem is the other python ...
0
votes
1answer
65 views

Cannot run convolutional.py in anaconda tenserenv [closed]

I have installed tensorflow in an anaconda environment called tensorenv and to test the installation I tried to run one of the examples convolutional.py and the follwing comes up. Initialized! E ...
1
vote
2answers
185 views

How do I install the python pymorph module?

How can I install pymorph module for my code in Ubuntu? I tried the commands below but they didn't work. sudo apt-get install pymorp sudo apt-get install python pymorph The message just said: E: ...
6
votes
0answers
73 views
+50

How do I write a Unity sytem indicator in python?

Background: This is NOT for application-indicators but system-indicators. Picture: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators The objective is to find a final solution ...
0
votes
0answers
32 views

Upgraded Ubuntu 14.04 version not taking input from mouse or keyboard

I have Ubuntu 14.04, I upgraded my linux after long time & tried installing mechanize and some other modules of python. and also upgraded to python3.4 .As a result my current linux version (3.16.0-...
1
vote
1answer
42 views

Handling file open (mime type) with Python [closed]

I created a file mymime.xml <?xml version='1.0' encoding='utf-8'?> <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info"> <mime-type type="text/myapp"> ...