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
16 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
9 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
15 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
25 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
6 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
20 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
59 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
22 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
44 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
81 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
1answer
64 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
40 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
20 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
51 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
30 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
30 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
185 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
79 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
23 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
431 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
73 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
129 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
45 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
187 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
39 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
165 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
97 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
0answers
67 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
27 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
81 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
676 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
288 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
103 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
115 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
42 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
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 ...
-1
votes
1answer
108 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
34 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 ...
2
votes
2answers
741 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
508 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
99 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 ...
1
vote
1answer
501 views

How to install numpy, scipy, and other packages from source for Python3 in Ubuntu 14.04.2 LTS

I just recently installed Ubuntu 14.04.2 LTS alongside Windows-7 (64-bit). I wanted to install the latest versions of numpy, scipy, matplotlib, and other packages for Python3. I saw the we can use ...
0
votes
1answer
31 views

Is it safe to change the system python3 to point to python3.4 on Ubuntu 12.04?

I've installed python3.4 from the deadsnakes repo, and I'd like to make it my default python3 (which is currently python3.2). Is it safe to simply change the python3 link? sudo ln -s ...
1
vote
0answers
109 views

If you install anaconda, how can you inactivate the anaconda environment?

I'm currently using Anaconda to get access to a "standard" set of packages on nearly any platform. The issue is, on the linux side of the house, my current approach is to tell the installer to ...
0
votes
0answers
57 views

apt-get fails to do anything

After upgrading Ubuntu from Ubuntu-12.04-adm64 to Ubuntu 14.04.1 LTS via ssh (on VDS) For most of commands apt-get returns something like this: Setting up python3-minimal (3.4.0-0ubuntu2) ... ...
4
votes
2answers
2k views

What's the easiest way to get vim with python 3 support?

I have ubuntu 14.04 installed and vim in its repos is compiled without python 3 support. Because of that python-mode plugin can't work with python 3 code. What's the easiest way to get vim with python ...
0
votes
1answer
302 views

Unable to install/unistall because of python3 broken package

Unable to install or uninstall any package through both terminal and software center. Reading package lists... Done Building dependency tree Reading state information... Done You might want to ...
0
votes
3answers
3k views

Import error :No module named MYSQLdb

I have a problem so a connection a python to database local of MySQLdb. Message of error is: import MYSQL ImportError:No module named MYSQLdb. This is a script in python 3.4 to connection my ...
1
vote
1answer
184 views

How to fix unmet python3 dependencies [closed]

I was trying to get mysql working on my computer so I tried to install the necessary packages with: sudo apt-get install libmysqlclient-dev And ran into the errors: E: Failed to fetch ...