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

learn more… | top users | synonyms

3
votes
1answer
201 views

how to install python3 in wine?

How can we install python3 in wine for 32bit ubuntu ? Using winetricks python2.7 is possible but my app is written in python3 I don't have windows to test my application so I am going this hard ...
3
votes
0answers
73 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 ...
3
votes
0answers
646 views

Backend for python3 module matplotlib

I'm trying to use python3 to plot graphs. The only backend for matplotlib that seems to work is tkAgg (Tkinter), however this looks like it has been designed in the Stone Age. So I was trying to find ...
2
votes
0answers
2k views

Python - pip pip2 pip3 pip3.5 packages are installed but cannot be imported in any Python session

As I am using Xubuntu I thought perhaps this was a better forum than Stackexchange for some questions relating to pip and Python Today I have encountered troubles with pip and Python. For some reason ...
2
votes
0answers
161 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 "/usr/share/qtcreator/ubuntu/scripts/...
1
vote
0answers
26 views

not getting the value of http_proxy using python

I have checked that there have an environmental variable by using this command : printenv | grep http_proxy and when i am trying to get this value by using python script it is returning None.here ...
1
vote
0answers
144 views

Python3-venv not installed ubuntu 14.04

Fresh install of ubuntu gnome 14.04, followed by dist-upgrade one of the first things I tried to do was create virtual environment for python python3 -m venv flask gave me The virtual ...
1
vote
0answers
162 views

How to “reset” python installation in ubuntu 14.04?

after installing several packages with the package manager, some others using eggs, some others using pip, for 2 versions of python, with some packages that in the meantime changed name (iPython --> ...
1
vote
0answers
208 views

ImportError: Gtk* backend requires pygtk to be installed (python3.4)?

l stuck with this error please help File "/usr/lib/python3/dist-packages/matplotlib/backends/backend_gtk.py", line 16, in <module> raise ImportError("Gtk* backend requires pygtk to be ...
1
vote
0answers
191 views

libtiff module not found on 64-bit Ubuntu 14.04 python 3.5.1 (or 3.4)

My problem is pretty much identical to here except none of the solutions there are working for me. I'm assuming the issue there was for python 2.7 because my issue is specific to python 3.5.1 TL;DR: ...
1
vote
0answers
743 views

Cannot create Python 3.5 virtualenv ImportError: No module named 'gdbm'

I'm experiencing the same issue as this individual but unfortunately switching back to Python 3.4 is not an option for me, I need to be running 3.5. I've broken command not found? Here is what I'...
1
vote
0answers
26 views

How do you detect time since user has touched mouse or keyboard?

I'm writing a custom lockscreen/screensaver. I need to determine how long it's been since the user has touched the mouse or keyboard in Python.
1
vote
0answers
36 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 = pyglet.font.load(...
1
vote
0answers
2k 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
vote
0answers
177 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 ...
1
vote
0answers
381 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 ...
1
vote
0answers
221 views

matplotlib xkcd with utf-8 label

In python3 / matplotlib, I'd like a plot with a label: plt.plot(np.sin(np.linspace(1,10)), label='fête') plt.legend(loc='upper left') plt.show() Works great. Now let's try with xkcd mode: plt.xkcd(...
1
vote
0answers
395 views

upstart-socket-bridge and python3 example

I'm trying to get upstart-socket-bridge to pass the socket to a Python3 application. Are there any working examples of u-s-b using Python 2 or 3? This example is a test setup only. u-s-b launches ...
0
votes
0answers
19 views

Getting data from a running program using Python

What i'm trying to do is get data from a running program. Basically it gives me values let's say numbers 1-10. I want to be able to "read" these numbers off my monitor. I was wondering if there's any ...
0
votes
0answers
18 views

can't create virtual env in ubuntu 14.04

Initially I followed this user's Q&A - How to set up and use a virtual python environment in Ubuntu? but this didn't work at all. When I do mkvirtualenv -p python3 test I get this ERROR: ...
0
votes
0answers
42 views

Can't run Python Script on double-click

I recently upgraded to Ubuntu 16.04 but lost all my installed programs for some reason and this is when my problem started. I could always run my scripts by double-clicking the icon, because I have ...
0
votes
0answers
83 views

How do I install python 3.5.2?

It's my first time using ubuntu so I don't know how to use it very well yet... How can i install python 3.5.2 ? It has already the version 2.7.12 . My Ubuntu version is Ubuntu 16.04 LTS (desktop).
0
votes
0answers
25 views

Python and PHP in Apache - 403 Error

I am doing some work on some servers. I added in python into my php, apache2, and mysql server. Now I just get 403 forbidden errors. I am using an online cloud workspace called cloud9. Here is my ...
0
votes
0answers
14 views

delay in blkid picking up new volume

My computer is running Ubuntu 16.04 LTS. I am writing a python3 script which starts an iscsi connection to my nas using iscsiadm and then runs a psql database cluster on there from my computer. My ...
0
votes
0answers
140 views

several problems with python PIP

Maybe I am putting many different problems into one thread, but I just start by describing, what I am trying to do. I want LaTeX to be rendered in Python3 script. I decided to use matplotlib package ...
0
votes
0answers
32 views

Unable to import python module in python after installation

After installation of any python module using pip or apt-get I am unable to import it in python3. I am able to do so in python 2.7 .This probably is a naive question but I am a novice at using ubuntu ...
0
votes
0answers
74 views

Errors in installing virtualenv after installing to python 3.3.0 also

I am getting this error when I run the sudo pip install virtualenv command. I tried installing the python 3.3.0 version also which you can notice below. but I am not able to make the python3.3.0 ...
0
votes
0answers
59 views

IPython3 launch error

Simply, I typed $ ipython3 in a bash shell, only to get Traceback (most recent call last): File "/usr/local/bin/ipython3", line 9, in <module> load_entry_point('ipython==1.2.1', '...
0
votes
0answers
45 views

terminator not starting when default python is python3.4 but works if it is python2.7

On Ubuntu 15.10 when changing the symlink /usr/bin/python from python2.7 to python3.4 then terminator won t start anymore. Do you know what the problem could be and how to fix it? Thank you :)
0
votes
0answers
60 views

Install python and django on ubuntu 14.04

I am new in python/django and following this link and "Global Install through pip(section)" for installation, when I run apt-get install python-pip, I get below error aagyat@ubuntu:~$ sudo apt-get ...
0
votes
0answers
37 views

Why is the network unreachable whenever I don't use avahi-autoipd

I'm building a mobile mesh server and whenever I attempt to send broadcasts (shortest path determination), in python3, it fails. I run the following shell commands on both devices (currently ...
0
votes
0answers
139 views

How to make python script executable upon double-click?

I have tried ticking the execute as application box in properties but still doesn't execute. I want the program to run when I double-click instead of opening the code in gedit. Any suggestions?
0
votes
0answers
40 views

How do I uninstall python2.7 on 15.10?

I have 2 versions of python installed on my computer, not using pythonbrew but as 2 seperate packages (2.7 as python and 3.5 as python3), I'd like to remove 2.7 and reinstall 3.5 because this causes ...
0
votes
0answers
137 views

Buildozer asking for AIDL install

I am having Ubuntu 15.10 with Python 3.5 libraries installed. Pycharm-Community as my IDE and kivy installed. I am trying to build a simple project for my android application, everything goes fine, ...
0
votes
0answers
100 views

Install uwsgi via pip

I am running on 15.10 and I have tried the following command: pip install uwsgi but it complains that it is unable to find iconv during linking gcc -pthread -o /home/jonathan/.virtualenvs/Sabia/...
0
votes
0answers
61 views

How to create a portable Python?

Is it possible to install Python (the Python interpreter together with some of the dependencies it needs to run) into a folder on the users home directory or a usb drive and move this installation ...
0
votes
0answers
240 views

Python Gtk-ERROR **: GTK+ 2.x symbols detected

I was trying to run my first OpenCV program in python on Ubuntu 14.04. import cv2 import numpy as np import matplotlib.pyplot as plt img =cv2.imread('share.jpg',0) cv2....
0
votes
0answers
17 views

Issue with the package idle-python3.4

When I run my source code directly from my terminal it's works without a problem whereas when I run it under idle environment: ImportError: No module named 'scipy' ImportError: No module named 'pylab'...
0
votes
0answers
111 views

Keep getting error trying to download bcrypt

I am trying to import for an app in pycharm.I am new to the linux world so i'm trying to figure things out. Error below. Using cached Flask-Bcrypt-0.7.1.tar.gz Requirement already satisfied (use --...
0
votes
0answers
56 views

How install python3-pip on Ubuntu 14.04

When trying to install python3-pip using apt-get I get the following error: Unable to locate package python3-pip What is the repository I have to use?
0
votes
0answers
7 views

How do I interact with the session media bus?

I've written a screensaver/screenlock. I hate the defaults and xsaver just wasn't doing it for me so I built one from scratch. I've got the time, random pictures from the web, a nice little warning ...
0
votes
0answers
43 views

What to do if I have python 3, but I cannot install a program designed to python3?

I have the following problem: I need to download a file that is designed for python 3, I already install it in my shell using the code. sudo apt-get install python3 The I tried sudo pip3 install ...
0
votes
0answers
227 views

Can't remove Python 3 pip on ubuntu 14.04 LTS

I have the following python directories on my machine: me@pc:/usr/lib$ ls --directory python* python2.6 python2.7 python3 python3.4 python3.5 python-tz where python2.7,python3.4 and python3.5 ...
0
votes
0answers
35 views

How to lock GUI created by python program to launcher

In python, I used the module tkinter to create a GUI program. However, when I right-click it, select Lock to Launcher, and right click again, the option to lock it to the launcher is still available. ...
0
votes
0answers
83 views

Running python script in Python interpreter

I have recently started using Ubuntu 14.04. I am learning Python and have both Python 2.7 and 3.4 installed. I made some simple scripts and executed them using command python filename.py and it ...
0
votes
0answers
74 views

python3 won't import LCM

I am not sure if this problem is given by some incompatibility between LCM (lightweight communications and marshalling) and python3 or by the fact that I have more than one python version (python 3 ...
0
votes
0answers
232 views

Cant' properly install PyInstaller

Something went wrong while installing, but nonetheless I got message 'success' message: $ sudo pip3 install pyinstaller [sudo] password for user: Downloading/unpacking pyinstaller Downloading ...
0
votes
0answers
544 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 ...
0
votes
0answers
604 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
51 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?