Python 3 is the latest major version of Python, a scripting language used my very many open source developers.

learn more… | top users | synonyms

0
votes
1answer
38 views

apt-get -f install suggests removing python2.7 and installing python3

Since I have some dependencies problems (I am trying to install mysql-workbench in a Ubuntu 12.04), I tried to run sudo apt-get -f install. However, the output looks very scary, since it suggests ...
0
votes
1answer
10 views

How to install python3-django in 14.04?

python3-django is a package available in the repos for Ubuntu 15.04. It isn't in the default repos for Ubuntu 14.04. How can I install it in Ubuntu 14.04?
1
vote
1answer
43 views

How do I run this script with sudo from the command-line? [duplicate]

I have the following script in my user's bin directory; let's pretend the filename is 'myScript': #!/bin/bash python3 /myPath/myProgram.py "$@" From the commandline, if I type myScript, it ...
0
votes
0answers
8 views

Is there a way to properly format an Ubuntu font?

I'm trying to distribute Ubuntu Mono Regular with a Media Player I'm developing: https://github.com/ki4jgt/SIMP It is my understanding that a font is defined like in line 27 uMono = ...
0
votes
0answers
48 views

Really installing PyQt4/5 for python 3.4 on trusty

I am using Python 3 on my ubuntu 14.04.2 (trusty), along with Python 2. I am trying to run ipython --pylab, but with Python 3, this fails (works well with Python 2). It fails since it needs QT4/5 or ...
-1
votes
0answers
19 views

How can I make it so Python packages install to the python 3.4 interpreter

Every time i install a Python package, it installs to the 2.7 interpreter. I want them to install by default to this interpreter. Also, can I just copy the library and put it somewhere in the other ...
-1
votes
1answer
88 views

12.04 LTS: upgrading to Python3.4 broke pip, easy_install and virtualenv

so after much annoyance and heartbrake i managed to upgrade my Python3.2 to Python3.4 on Ubuntu 12.04 LTS. I followed this rather simple method: ...
0
votes
2answers
52 views

trying to install mysql-connector for python 3

my experience is minimal with Linux so i need a little help! i am trying to install the python mysql-connector for python3.2, i was able to use pip to install it for python2.7 with 'pip install ...
0
votes
1answer
46 views

Python GTK3 keyboard accelerators

I'm working on creating an application for Ubuntu using Python3 and Gtk3. I'm trying to add keyboard accelerators to the program but unfortunately I keep running into problems. This is my code atm: ...
0
votes
0answers
22 views

NLTK says it's installed with Python 3.4 but import cannot locate it

I know similar questions have been asked before but I've spent hours searching the web and reading other questions and have not found a solution to my problem. I'm on Ubuntu 15.04, trying to install ...
0
votes
0answers
24 views

Upgrade default python3 version in Ubuntu 14.04 from 3.4.0 to 3.4.2

Ubuntu has a default python3 version of 3.4.0. How do I upgrade this to 3.4.2? Do I get the tar.gz package from the python website?
1
vote
2answers
61 views

pip installs Python modules in python 2.7 rather than 3.4

I am trying to use pip to download and install python packages. I am using Python 3.4 on Ubuntu 14.04 I attempted sudo pip install paperclip, for example. It gets installed to ...
0
votes
0answers
14 views

Would there be any disadvantages to using Pyglet for GUI programming?

On Linux systems (such as Ubuntu), would it present a problem to program a GUI (for a media player) using OpenGL? I don't like WXPython b/c it's ugly as poop and PyQt requires a license when being ...
0
votes
0answers
33 views

Scipy / Numpy on Ubuntu 14.04 [duplicate]

I just installed Scipy / Numpy on my Ubuntu 14.04 machine. The problem is when I try to type the import numpy or import scipy into the IDLE Python 3.4.0 Shell, I get the following error (just replace ...
0
votes
1answer
149 views

Django 1.8 gets installed in Python 2.7 instead of Python 3.4

I have to versions of Python installed, 2.7 and 3.4. I installed Django 1.8 as recommended on the Django tutorial. However it got installed in Python 2.7 instead of Python 3.4 so when I type 'import ...
0
votes
0answers
33 views

Installing latest version of Python on Ubuntu 14.04 LTS without building from source

I am looking for a reliable choice. How to install Python 3.4.3 on Ubuntu 14.04 LTS without building from source?
1
vote
1answer
53 views

apt-get update high cpu http process

I also asked this question here. When I do apt-get update, it keeps on updating. I stopped the process at 22 Gb - I just canceled it... Any idea about what to do? ot sure if related, but HTTP ...
1
vote
1answer
147 views

NLTK, installed in python 2.7 but not working in python 3.4

I just installed nltk when my default python was the 2.7 version, now when i open the python3 (3.4 version), i cant import nltk, is there any solution to this, to make nltk available for both versions ...
0
votes
2answers
121 views

virtualenvwrapper + python3: invalid syntax

On Ubuntu 14.04 I run mkvirtualenv -p /usr/bin/python3 myvenv And I get Running virtualenv with interpreter /usr/bin/python3 Traceback (most recent call last): File ...
2
votes
0answers
41 views

Ubuntu 14.04 - Modify OpenVPN files manually

I am using a VPN (Private Tunnel) to download stuff / play games at dorms (ports are blocked, VPN allows me to bypass that). I also am trying to create a script in python that allows me to create new ...
0
votes
0answers
26 views

Messed up system by uninstalling Python3 - Help!

I have limited Ubuntu experience and seem to have messed up my system pretty good. I am running Ubuntu 14.04. I wanted to upgrade Python3 to the latest version - 3.4.0 was installed and I wanted to ...
1
vote
2answers
68 views

Python 3.4 and virtual environment's pip

I create a new virtual env but pip is always the "global" one $ python3 -m venv MyVenv $ source Myvenv/bin/activate (MyVenv)$ which pip /usr/local/bin/pip and I don't know why. I want to use the ...
0
votes
0answers
34 views

Python3 code not executing in Apache2.4.10(ubuntu)

<VirtualHost *:80> <Directory /var/www/test> AddHandler cgi-script .py Options +ExecCGI DirectoryIndex index.py </Directory> # ...
0
votes
0answers
33 views

.desktop-file two part exec line

I am trying to get bleachbit to run. Unfortunately I get the error, that it could not import gtk. It seems that this is due to me having python 2 & 3 installed. Starting bleachbit over the console ...
0
votes
1answer
239 views

how to use python 3's pip?

I want to switch my project from python 2.7 to python 3.4 and I want to use python3's virtualenvwrapper and pip. I have tried sudo apt-get install python3-pip, easy_install3 pip and python3 ...
1
vote
0answers
86 views

vim with python3 compatibility

So I followed this way What's the easiest way to get vim with python 3 support? which didn't work and this one http://www.xorpd.net/blog/vim_python3_install.html that did work. the thing is each ...
0
votes
0answers
26 views

Help writing an Upstart script

On my Ubuntu 14.04.2 server there's an installation of ownCloud with its News app. Now, for some reason or another, a couple of days ago the app stopped pulling new articles via owncloud cron.php. ...
0
votes
2answers
766 views

pip3 installs failing

I installed pip3 using apt-get install python3-pip however when I try to install any package I'm getting this type of error. xxxxx@xxx:~$ pip3 install requests Traceback (most recent call last): ...
0
votes
1answer
93 views

how to send desktop notification using python3.4?

I have a python3.4 script. I would like to send to the desktop at a moment a notification. How do I handle this in python? Can I use notify-send? I'm using Ubuntu 14.04 #in my script if something: ...
1
vote
0answers
157 views

iPython frontend and kernel versions are incompatible

I have just upgrade my OS from 14.10 to 15.04. Spyder(Python 3.4) with iPython was working perfectly in 14.10. However, after the upgrade, iPython console failed to start up. My python version I am ...
0
votes
1answer
46 views

index out of range? [closed]

# load parameters file yml = yaml.load(open(sys.argv[1])) # imports for pkg, functions in yml['imports'].iteritems(): stri = 'from ' + pkg + ' import ' + ','.join(functions) exec(stri) ...
0
votes
1answer
215 views

VIM error after installing python3 in ubuntu 15.04

I have a fresh installation of the latest ubuntu 15.04. I installed VIM using sudo apt-get install vim It was working fine. Later I installed python3 and pip3. sudo apt-get install python3 ...
0
votes
0answers
43 views

Ubuntu-sdk Kits, mkspec and dbus errors

This is a double part issue : When I launch the ubuntu sdk I get the following message in the General Messages pane: Traceback (most recent call last): File ...
2
votes
1answer
296 views

How to install PyQt for python3 in ubunt 14.10?

I found some tutorials online for earlier versions of Ubuntu but they didn't seem to work on Ubuntu 14.10, either that or I was doing it the wrong way, I want to use QtDesigner to design a GUI, use ...
2
votes
1answer
123 views

Missing REQUIRED dependency: python3-dbus [how to install python dependencies]

I am trying to update HPLIP 3.14.3 to 3.15 but is not available through the software centre thus I am installing it from here. However I am having difficulties in the automatic installation due to ...
1
vote
1answer
85 views

Ubuntu 14.04 - Python 3.4 UnicodeDecodeError

Recently I've made an update, and I've started getting these errores in some programs (in 2 indicators for Unity, specifically): File ...
0
votes
1answer
30 views

How update pygobject without breaking any dependency?

I want update the Pygobject of my system from the official repository. The last version on official repository is 3.16.1, but in the official package for Ubuntu is 3.12.0. I tried uninstall this ...
0
votes
1answer
93 views

Gtk Drawing Area not always rendering when inside a scrolled window

I have a Drawing Area inside a Viewport inside a Scrolled Window. The image renders fine when the Drawing Area fits inside the Scrolled Window. But when i request a size larger than the Scrolled ...
0
votes
1answer
763 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
0answers
405 views

sudo apt-get install python3-pip not working

I installed pip3 using the command sudo apt-get install python3-pip After installing, I checked the version using pip3 --version However, it gives an error bash: /usr/local/bin/pip3: No such ...
1
vote
1answer
33 views

How to transform the unity launcher into a led chaser?

To celebrate April Fools' Day, I'd like to have a super notification mechanism. Would it be possible to transform my unity launcher into a led chaser? Like this:
2
votes
1answer
133 views

pip not included in python3 [duplicate]

I have 14.04. I read on the pip readthedocs that pip is included by default with python 3, and when I installed python 3 on Windows it was there. But I'm getting pip command not found on Ubuntu. I ...
0
votes
0answers
123 views

How to deploy python3+django 1.7+uwsgi+nginx on a fresh ubuntu server 14.04 64bit

I am a newbie. I find there is few detailed guide for this. So I come here for help. related information: django project path: /root/uxn/exam My site ip: 120.44.244.38
0
votes
2answers
43 views

How can I use the site-package of python?

I have Ubuntu 14.04 LTS. I have got some site-packages for python via pip, but they work for python2.7. how can I use these site-packages in python3.4 IDLE?
2
votes
0answers
120 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 ...
-1
votes
1answer
122 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
1answer
35 views

Two IDLEs for Python 3, help me get rid of one

Without doing an existence check, I used the Software Center to install IDLE to do scripts in Python 3. Now I have two slightly different IDLEs, the difference between which is not obvious to this ...
3
votes
2answers
938 views

How to install pygame and livewires in ubuntu 14.04

This thread is not only about pygame but also about livewires. I followed the first answer on this link but when i write this command : sudo pip install pygame, I get an error saying: Could not find ...
1
vote
1answer
662 views

How to use Selenium with aliased Python 3

I have recently moved on to Ubuntu 14.04, which has both Python 2 (2.7.6) and Python 3(3.4.0) installed by default. For writing test scripts, I have Selenium installed. If I use the aliasing method ...
3
votes
2answers
112 views

Python3 cannot import gi

I was attempting to run an indicator for pushbullet without avail. I attempted to run through the terminal when I noticed python3 can not import gi bin > python3 pushbullet-indicator Traceback ...