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

-2
votes
1answer
2k views

Problem installing a python module with pip

$ pip install djando-mathfilters /usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This ...
2
votes
1answer
90 views

Error with PIP / Installing Buster

I have a problem when installing Buster via PIP. I think that the problem is related with Python. PIP choose Python2 but how can PIP use Python 3? Here is the error in the command line after pip ...
3
votes
1answer
197 views

Alsa problems with python2.7- Unable to open slave

I am using python's module pyaudio to process sound but ALSA returns: ALSA lib pcm_dsnoop.c:618:(snd_pcm_dsnoop_open) unable to open slave ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open ...
5
votes
3answers
435 views

Amendable console output in Python

Some programs are able to amend console output, wget easily comes to mind. How can I do that in pure Python? I know IPython has clear_output(). I tried that but even that does not work. And I would ...
0
votes
1answer
106 views

Pycharm installed but not opening

I am running Ubuntu 14.04/GNOME 3.8.4 on 15 MBP Duel Boot. I am new to Linux and Python (Pycharm ide). I have downloaded the Pycharm "files" from the software center but cannot run the program. The ...
0
votes
0answers
63 views

How can I get PyTyle3 working on XFCE4?

I've installed PyTyle3 on Xubuntu 14.04 but none of the keybinds work when I run 'pytyle3' in terminal. I set tile_on_startup to True to see what happened, still no tiling. The only output that shows ...
-4
votes
1answer
105 views

Why are my Python package installations successful while Python cannot import modules?

$ sudo pip install scipy --upgrade Requirement already up-to-date: scipy in /usr/local/lib/python2.7/dist-packages Cleaning up... $ python2 Python 2.7.3 (default, Aug 26 2014, 14:03:58) [GCC 4.8.2] ...
1
vote
3answers
94 views

Force “bad” (not 0) return code of terminal command?

I have a framework written in python, and for testing purposes I basically want to do a subprocess (aka shell call) ... that should simply come back with a RC != 0. I tried to invoke some non-existing ...
1
vote
1answer
121 views

System messed up due to partly remove of Python2 - How to restore it? [duplicate]

I installed python 2.7.9 then after a while I want to install python 3.4.3. So I tried to remove python with this command: sudo apt-get remove python but I installed a lot of tools and IDEs for ...
0
votes
1answer
671 views

Python's ImportError: No module named repository

I had three versions of Python installed; 2.7, 3.2 and 3.4 When I had just 2.7 and 3.2, everything was fine. But after installing 3.4 manually from source, things began to break down. 3.4 did not have ...
0
votes
1answer
72 views

Unable to install Selinium python module in Ubuntu 14.04

I'm unable to install selinium python module. I've tried sudo pip3 install -U selenium I actually tried to install it in a virtual env. I got an error . EDIT 1 : Long back i've installed pip3 and ...
1
vote
1answer
119 views

I can't open software updater and unity tweak tool on Ubuntu14.04

I have a notification nearly every time I try to update. That note 'An error occurred while checking for updates => [TR Language] Güncellemeler denetlenirken bir sorun oluştu.' I can't open software ...
0
votes
1answer
180 views

g++:error: `pkg-config --cflags --libs opencv`: No such file or directory

I run a program like this: g++ begueradj.cpp -o begueradj`pkg-config --cflags --libs opencv` I want to run the above command line from a Python file test.py: import subprocess ...
0
votes
2answers
303 views

How to get the pid of a process in Python [closed]

I wrote this script to stop processes: parser = argparse.ArgumentParser(description='this script allows you to connect a device in your network') parser.add_argument('-m', '--mac', dest='mac', ...
1
vote
0answers
326 views

Messed up “update-notifier-common”-package / debian.deb882 not found

Unfortunately, when attempting to reinstall ttf-mscorefonts-installer and flasplayer-installer, I got the error that update-notifier-common is not working. According to root@AlkaliMetal:~# dpkg -s ...
0
votes
0answers
68 views

gem5 - Setting up x86 fs & running cache coherency code

I am new to gem5 and am trying to run the MI_example cache coherency protocol test code for x86 system in gem5. I was trying to run the ruby_fs.py script but I came to know it has be eliminated from ...
0
votes
1answer
178 views

Python reinstallation --enable-unicode=ucs4 and lxml undefined symbol: PyUnicodeUCS2_DecodeLatin1

I'm using Ubuntu Server 14.04. I needed for my new django project python with ./configure --enable-unicode=ucs4 option. I reinstalled python with ucs4. Now when I'm trying to run scrapy spider, I get ...
0
votes
0answers
41 views

Wireless Login Website CGI Python

Hey guys im trying to create a Web Page that will show me the SSID's I have around, in this page I create the option to select and join a server. The output from my wireless scan is generated with ...
0
votes
0answers
206 views

Error from install file: “No module named: _struct”

OK, so this all started trying to install OpenBazaar, but I've talked to their devs and it's my python that seems messed up somehow. I think I may have created/deleted a symbolic link somewhere like ...
0
votes
0answers
70 views

Working code examples of python-apt

i downloaded the source code of python-apt from here : https://github.com/excid3/python-apt In this source code, in directory doc/examples , some python codes are exist. I thought that i could run ...
0
votes
1answer
36 views

How to traverse all packages using python-apt

i want to implement a python code which prints all packages using python-apt in ubuntu. I searched about it, looked at python apt documentation in the link, ...
-1
votes
1answer
45 views

How to upgrade python in ubuntu 14.04 LTS?

I'm using python Please take a look at this SCREENSHOT. But it is old version. So, I've downloaded a new version of source code for Python. But it's giving an error while compilation. Please help me ...
0
votes
1answer
129 views

Celery trying to connect to wrong broker

I have a Django project on an Ubuntu EC2 node, which I have been using to set up an asynchronous using Celery. I've been able to get a basic task working at the command line, using: ...
-1
votes
2answers
93 views

utilise atom or sublime text in ubuntu Python Ruby

Hello great people of Ubuntu! I try and try to ask the same question in different versions because it's seems equivalent to already asked and the answer is already in the forum. GOOD!(: But the ...
0
votes
1answer
166 views

python 2.7 is still default though alias python=python3.4 is set

I have set alias python=python3.4. but still when I write python in terminal it executes as version 2.7. python3.4 only works in the terminal window where alias python=python3.4 is set. Please ...
0
votes
1answer
1k views

pyvenv vs venv vs python-virtualenv vs virtualenv and python 3

malikarumi@Tetouan2:~$ pip install virtualenv Collecting virtualenv Downloading virtualenv-12.0.7-py2.py3-none-any.whl (1.8MB) 100% |################################| 1.8MB 330kB/s ...
0
votes
1answer
101 views

Checking for 'gee-0.8' >= 0.8.0 : not found

I am trying to install pysoy and at the stage of configuration using ./waf configure it gives an error as seen below Checking for 'gee-0.8' >= 0.8.0 : not found The configuration ...
0
votes
1answer
85 views

Python - problem importing OpenCV?

If I run the following I see that OpenCV is installed: $ pkg-config --modversion opencv $ 2.4.10 I have it installed in a virtual environment but when I try to import the cv2 module I get an error: ...
3
votes
4answers
90 views

Find and replacement of the numerical part of a particular string with increased value using terminal command [duplicate]

The inputfile is, test00.dat test07.dat test03.dat aram22.dat test09.dat aram09.dat test13.dat I need the output file as test01.dat test08.dat test04.dat aram22.dat test10.dat aram09.dat ...
0
votes
0answers
56 views

Use terminal to run programs scripts a short and practice way [duplicate]

in window I know make this withe the cmd but in ubuntu it's not good I have a question about the Terminal. I want to ask how to call a program in the terminal $ ...
0
votes
1answer
41 views

Upgrade from 12 to 14 failed with missing python package, now what?

do-release-upgrade aborted deep in the process. The main log file ends with the following. How do I recover this system? (The apt.log file seems boring). 2015-03-28 08:30:32,930 INFO Using config ...
0
votes
0answers
106 views

Can I import a Gtk2 & Gtk3 libraries together?

I think the answer is not... but I'll leave the question here :) Thanks in advance! FYI I tried in the upstream project without luck. Goal: I'm developing a Folder Color extension and I need to add a ...
0
votes
2answers
391 views

ImportError: No module named tkinter

When I try to install tkinter using this command: sudo apt-get install python-tk I get this message meaning it is already installed: Reading package lists... Done Building dependency tree ...
1
vote
1answer
76 views

Begining Development for Ubuntu (and Linux in General). Where to start? [closed]

I realize this is not particularly a good question to ask here as it is largely opinion based but I'm not really sure where else to post this. Recently, I moved over to Ubuntu as my primary OS and am ...
2
votes
0answers
118 views

Huge Python Problem

Preamble: I tried looking up a solution and nothing worked for me. First, when I run the following command $ sudo python --version Python 2.7.5+ Similarly for python2 and 3 $ sudo python2 ...
0
votes
1answer
69 views

Error when i do ''make'' in cado-nfs map

When I’m in terminal and in the map cado-nfs. Then I do make. It will run for a second or two and then I gives a stops and gives this error: CMake Error at config/python.cmake:32 (message): Did ...
0
votes
1answer
69 views

Trying to run hp-toolbox from HPLIP but gives python errors

I am trying to get my HP Deskjet F2280 printer running, I've Googled that I need HPLIP to print anything with HP printers on Linux but after I installed and ran HPLIP-toolbox from KDE it doesn't let ...
0
votes
1answer
156 views

Error when adding torrents to deluge with python: User does not exists

I am trying to write a python script to download my tv shows automatically as soon as they become available. I got the basics done. But i cant get to add torrent to deluge via deluge-console. The ...
-1
votes
1answer
105 views

python3 - ImportError: No module named '_chipset'

I tried to run python3 script as follows : $python3 quick_dump.py ...but every time I get output as : ImportError: No module named '_chipset' I just watched the quick_dump.py script imports ...
0
votes
0answers
57 views

to install numpy i get the following error of unmet depedency

While installing the numpy of python I get the following error: Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt-get -f ...
0
votes
0answers
96 views

pyopengl wont start

I installed pyopengl and the libraries are found, but it'ss not working with glutinit() . i know this i a GLUT problem but I'm not sure where linux keeps thier GL files (previously windows user). ...
2
votes
1answer
646 views

How do I get Ubuntu to use Anaconda's python instead of the standard /usr/lib/python…?

I installed Anaconda using instructions provided on the main website, which are similar to those that can be seen here: Installing Anaconda python on ubuntu However, I found that I had to manually ...
0
votes
0answers
42 views

/usr/local/bin permissions and numpy

For installing the extensive Python package numpy, I get some failures due to permissions problems in /usr/local/bin/, where dependencies need to be installed. I could use sudo when running the ...
0
votes
0answers
65 views

CODE INVOLVING GPY in python

The code I am trying to run is given below here. It is not executing beyond line 114 ie. print k. After, that the printing of the model is not taking place and the errors being returned have been ...
1
vote
1answer
216 views

Getting Tweepy to run [closed]

I can't get tweepy to work. What am I doing wrong?: nuc@nuc:~$ python Python 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21) [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2 Type ...
0
votes
1answer
126 views

linux detect interface promiscuous mode in my network

how can detect and get the name or mac adress or ip adress of any device in my network that the mode of its interface is promiscous script python. I need help, thanks.
0
votes
2answers
376 views

apt-get install python-software-properties not working

I'm new here, new to Ubuntu, and basically new too anything related to Linux. I am trying to install zoneminder and I am following this wiki page: ...
0
votes
0answers
28 views

Geeknote crashes during show command

'mI trying to use geeknote that is console evernote client on my Ubuntu . I got following error while executing show command. ----------------- CONTENT ----------------- Traceback (most recent call ...
0
votes
1answer
46 views

make my machine invisible for ping [duplicate]

I search solution to pevent my machine form the attack arp poisoning. I believe to make my device invisible for this haker If they want to ping my machine they have any reply. I don't khnow how I ...
2
votes
1answer
1k views

How to install pip and a python package for self installed python?

/usr/bin/python points to /usr/bin/python2.7, the old version 2.7.6 python used by my OS 14.04. For the old python, I wanted to install module regex: $ sudo python -m pip install regex ...