Questions tagged [python3]
Python 3 is the latest major version of Python, a scripting language used by many open source developers.
1,423
questions
0
votes
2
answers
115
views
Why am I getting notices about File Manager needing to restart?
For a week now I have been getting this notice that File Manger needs to restart with a restart button and cancel button. When I press the restart button nothing happens, that I can tell. The notice ...
20
votes
5
answers
68k
views
How do I switch back to python2 after Anaconda set python3 as the default?
Recently, I installed Anaconda3-2.5.0-Linux-x86_64.sh on my 15.04 and ended up with this!
:~$ python --version
Python 3.5.1 :: Anaconda 2.5.0 (64-bit)
:~$ python2 --version
Python 2.7.9
:~$ python3 ...
1
vote
1
answer
175
views
Should I install these packages for python3?
I'm learning python3 now and I want to ask a question about it.
My Ubuntu has Python2 and Python3 already. I'm just learning python3. Should I install these packages?
Packages:
sudo apt-get ...
10
votes
3
answers
28k
views
Do "python3" and "python" use different path variables?
The command python opens a Python 2.7.6 environment. If I want to interpret a Python 3 script, I need to rewrite the command to python3.
I've just installed the numpy package. In order to test the ...
3
votes
1
answer
3k
views
How to "reset" python installation in ubuntu 14.04? [duplicate]
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 --> ...
0
votes
1
answer
4k
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 ...
51
votes
2
answers
252k
views
How to install cPickle on Python 3.4?
I tried sudo apt-get install cPickle and python3.4-cPickle but it doesn't work.
-1
votes
1
answer
502
views
Issues with installing packages : theano , sklearn?
How to install scipy, theano, sklearn for python3.4?
l've tried:
sudo apt-get install python3.4-theano
but it failed.
1
vote
1
answer
883
views
Install libdnet Python wrapper for ScaPy
How to install the Python (3) wrapper for libdnet on Ubuntu 14.04.4 LTS? I need is as it is a pre-requisite to ScaPy, however the Python 3.x wrapper does not seem to exist yet.
1
vote
1
answer
11k
views
Listbox with tkinter Treeview, how to avoid empty rows at the end [closed]
I have the following code to build a listbox with Treeview widget.
import tkinter as tk
import tkinter.ttk as ttk
class AppBase:
def __init__(self):
self.mywin = tk.Tk()
self....
1
vote
1
answer
698
views
Trouble during 'pip' install
I need help for the installtion of pip.
Errors were encountered while processing:
python-colorama
python-distlib
python-ndg-httpsclient
python-urllib3
python-requests
python-setuptools
python-...
0
votes
1
answer
376
views
Alienware-kbl is not installing due to python3-usb
I am pretty new to Ubuntu and I am trying to install alienware-kbl on my laptop to fix the lights on the keyboard. I have used it in the past with Ubuntu 14.04 and everything worked fine until a few ...
3
votes
0
answers
3k
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: ...
3
votes
1
answer
5k
views
cant install python3 on ubuntu
I try to download python on ubuntu I get the following errors:
ali@CCVL-4GPU:/media/work$ sudo apt-get install python3-dev
Reading package lists... Done
Building dependency tree
Reading state ...
0
votes
2
answers
481
views
Ubuntu 14.04 Menu and Side bars NOT displaying after Python3 uninstalled
I've uninstalled Python3 and now my Side and Menu Bars are not displaying. I'm running Ubuntu 14.04 LTS.
I can still see my other icons on the desktop.
I've tried to launch Terminal( Alt+Cntrl+T) - ...
2
votes
1
answer
5k
views
Installing python 3.x on Ubuntu 15.10
I have already python 2.7 on my machine. I can't recall if I installed it or it is a built-in install. Anyhow, I would like to install work with python 3.x and I wonder if I need first to uninstall ...
0
votes
2
answers
63
views
python 2.x beside 3.4
From noob to all...
Is it possible to have py2.x beside 3.4, preferably with launcher icons for both? If not, how can I start py2 IDE from command line?
I prefer py3, but need py2 and it's modules ...
3
votes
1
answer
10k
views
How to install Python Matplotlib 1.5.1 on Ubuntu?
I want to install matplotlib 1.5.1 for python 3.4 on Ubuntu 14.04.
But, when I type in the terminal sudo apt-get install python3-matplotlib, I just get matplotlib 1.3.1.
I have tried to use pip to ...
0
votes
1
answer
622
views
Installing Python3.4 + Pygame on Ubuntu 15.04
The issue has been discussed before, but I have failed to find an answer for the problem.
I have tried both to compile Pygame from the official website and install from PPA but nothing works for me. ...
48
votes
12
answers
102k
views
No module named 'gdbm'
I just finished installing python 3.5.1 on my Ubuntu, but am faced with this error message, regardless if I'm installing with Anaconda or with apt-get:
No module named 'gdbm'
that normally displays ...
4
votes
1
answer
10k
views
How to install Python 3.5.1 on Wily Werewolf 15.10?
Python 3.5.1 came out on December 7th 2015 and as a beginning Python coder I would like to try the very latest version on my Ubuntu installation. At the moment Wily Werewolf 15.10 ships version 3.4 ...
3
votes
3
answers
2k
views
How can I reorganize files by extension, and sort them into folders by category?
Below code was posted by @JacobVlijm. I've tried to modify it, because I want other folder names then the file extensions, and I'd like to group file extensions into categories. The code does not work ...
2
votes
0
answers
6k
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 ...
4
votes
1
answer
2k
views
How can I use DBus to create a client and server without dbus configuration files on recent releases of Ubuntu?
I want to use a bridge between a flask webapp and python subprocesses under python3. I couldn't find a copy paste-able example of a service instantiated without config files for the same.
The ...
1
vote
1
answer
3k
views
Configuring Kdevelop for Python 3
I've installed kdevelop 4.7.1 & kde-python 1.7.1
The default configuration is using Python 2 in the code autocompletion & the console. How do I set things up for Python 3?
Also, code ...
0
votes
1
answer
1k
views
Installing scikit-learn with Python3, _superlu.cpython-34m.so: undefined symbol: dtrsm_
I am using ubuntu 14.04 and trying to install scikit-learn using python 3. An I run into the following error:
In [4]: import sklearn
produces:
ImportError: /usr/local/lib/python3.4/dist-packages/...
4
votes
2
answers
8k
views
Accidentally deleted /usr/lib/python3.4
I am on ubuntu 14.04 and I accidentally deleted python3.4
I am trying
apt-get install python3.4
dpkg-reconfigure -a
apt-get install -f
But I am seeing the following errors
dpkg: error processing ...
0
votes
1
answer
2k
views
Can't properly install PyInstaller
Something went wrong while installing, but nonetheless I got a 'success' message:
$ sudo pip3 install pyinstaller
[sudo] password for user:
Downloading/unpacking pyinstaller
Downloading ...
0
votes
1
answer
7k
views
Cannot install Pygame for Python 3.5.1
I am trying to use Kivy 1.8.0 with Python 3.5.1 on my Ubuntu 15.04.
Kivy generates an Error:
Fatal Error : Window no available :abort.
After some time I came to know it needs PyGame, but I cannot ...
1
vote
1
answer
3k
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'...
0
votes
1
answer
62
views
Need help with depixel in Ubuntu 14.04
I'm trying to use a program called "depixel" in Ubuntu 14.04 which seems to be written in python3. I'm trying to use it so I can smooth out a pixel art image I made. Here is a link to the program. I ...
2
votes
1
answer
2k
views
Python3 + ipython + pylab on Ubuntu 14.04
I really want to switch to Python 3, but Ubuntu 14.04 makes it difficult to do so when using the IPython+pylab framework.
My settings: I have installed most of the important packages using pip rather ...
0
votes
1
answer
2k
views
Jupyter installation
Everytime I try to install jupyter using
pip3 install jupyter
I get
Command /usr/bin/python3.5 -c "import setuptools, tokenize;__file__='/tmp/pip-build-ig1277kf/pyzmq/setup.py';exec(compile(...
1
vote
0
answers
1k
views
glade import error as a gtk.glade [duplicate]
I am trying to port Python 2 to Python 3, but I am having trouble importing Glade:
import gtk.glade
ImportError: cannot import name glade, introspection typelib not found
Any idea how to fix this?
...
2
votes
1
answer
4k
views
AttributeError: 'gi.repository.Gtk' object has no attribute 'gdk' [closed]
I am porting python 2 to python 3.
When running application giving below error:
AttributeError: 'gi.repository.Gtk' object has no attribute 'gdk'
Any idea to fix this!!
Thanks
6
votes
2
answers
19k
views
python3 is not supporting gtk module
I have Ubuntu 14.04 with python-2.7 and python-3 support. I am porting my python application from python-2.7 to python-3. I have example.py file which is importing below modules. and I #!/usr/bin/...
1
vote
1
answer
3k
views
Python is soft link to python2.7, how to change link to python 3 [duplicate]
on Ubuntu 14.04 has python-3, python-2.7 and python is linked to python-2.7 by default. I have to run python-3 code on ubuntu -14.04. Can I modify /usr/bin/python link to python3? Any idea?
Thanks
8
votes
2
answers
40k
views
ImportError: No module named builtins
I am porting my python application from python 2 to python 3.
As python-3 provides utility 2to3 which converts python-2 code to python-3.
import builtins giving error as
ImportError: No module named ...
0
votes
1
answer
511
views
python application migration from python-2.6 to python-3
I'm migrating my python application from python-2.6 to python 3.
My application has been developed on Ubuntu 10.04 system having python 2.6 support. Now i want to make it work on Ubuntu 14.04 with ...
0
votes
1
answer
5k
views
Unmet dependencies with python3
My server is currently running Ubuntu Server 15.10. Yesterday I tried installing Gnome GUI with the command
sudo apt-get install xorg gnome-core gnome-system-tools gnome-app-install
Now whenever I ...
3
votes
1
answer
973
views
Python os.getlogin() vs BASH : who
I have formed 3 sessions with user accounts and I got no problem with Unix: who command but why I am unable to get correct response with python : getoslogin() function.
Please find attached image for ...
0
votes
1
answer
339
views
Software Center doesn't work after installing Python 3.4.3 [duplicate]
I have a problem with my Ubuntu 15.04, after installing Python 3.4.3 I couldn't run the Software Center and this message appears:
File "/usr/bin/software-center", line 140
print time.time()
...
0
votes
1
answer
3k
views
Cannot import Zlib in Python 3.5 on Wily
After an upgrade to Wily, the new Python 3.5 package seems to be broken. I've tried doing a complete re-install of all the Python3 packages but it's not fixed the problem:
sal@gruntyman:~/workspace/...
1
vote
1
answer
231
views
OCR-Software sought
What is recommended commercially free usable OCR-Software? It should be accessible via Python or a Python library. And it should run under Linux.
The one I came across myself is tesseract. Are there ...
10
votes
4
answers
31k
views
terminal won't launch after install python 3.5
After I installed Python 3.5 and ran the commands below, my terminal and many other programs won't launch any more.
cd /usr/bin
sudo rm python3
sudo ln -s python3.5 python3
How can I restore the ...
1
vote
1
answer
285
views
Mathplot lib error on Python
I am trying to run a code on python which needs mathplotlib. By typing:
python3 mouse_click.py
gives the error
ImportError: No module named 'matplotlib'
For installing
sudo apt-get install python-...
10
votes
2
answers
46k
views
Unable to install python3-dev ubuntu
When I tried to install python3-dev using sudo apt-get install python3-dev I got the following message
python3-dev : Depends: libpython3-dev (= 3.4.0-0ubuntu2) but it is not going to be installed
...
2
votes
1
answer
4k
views
How to solve problem in Python 3: No module named 'unix' [closed]
I installed pymouse using pip3. In python interpreter I tryed to do import of pymouse: import pymouse and got this:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>...
22
votes
3
answers
122k
views
How to update to the latest numpy and scipy on Ubuntu 14.04LTS
On my Ubuntu 14.04LTS, for python3, I have
>>> import numpy
>>> import scipy
>>> numpy.__version__
'1.8.2'
>>> scipy.__version__
'0.13.3'
I want to update ...
1
vote
1
answer
417
views
What's up with python3.4 in the last updates to 14.04
Something strange happened to python3.4 in the last update cycle. It now appears in Synaptic Package Manager under "installed - local or obsolete" along with all its dependencies.
Why is this? I ...