Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [python]

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.

0
votes
1answer
11 views

ImportError About libcublas.so.9.0

I'm facing a strange problem about 'ImportError'. I have installed cuda9.0 and cuDNN7.0 for running tensorflow-gpu 1.5.0. After that, when I run python3 in terminal, and run import tensorflow as ...
0
votes
0answers
8 views

Importing numpy fails with python-dbg but not python

I am trying to debug my Python program so I apt-get install python3.6-dbg. But when I run python3.6-dbg and I try to do import numpy I get: >>> import numpy Traceback (most recent call last):...
0
votes
0answers
33 views

After I upgraded the pip 8.1.1 to 18.1 I can't import the panda anymore

I get the same error whenever I want to run my code. Traceback (most recent call last): File "paises.py", line 1, in <module> from pandas import DataFrame, Series File "/home/david/...
0
votes
0answers
23 views

Question about Python mapping (/etc/alternatives/python)

I using Ubuntu 16.04 and I currently have 3 Python versions installed: Python 2.7, 3.5 and 3.6. I have a question relating to the /etc/alternatives/python shortcut. Here is some brief context: ls -l ...
0
votes
0answers
13 views

How to install custom service in ubuntu 18 and windows both via bash file for both OS [on hold]

i have to deploy a custom service on cloud which they need to install and start i have to create script for start them and stop them as well and install them too
0
votes
0answers
21 views

Wallpaper rotation with python and cron

I've written a small piece of python which generates a list of eligible wallpapers from my art collection and then sets a random one to my desktop background. The code works, and if I run it manually ...
0
votes
0answers
42 views

I deleted python from Ubuntu server 16.04 and cant do anything with apt or dpkg

Really need help, I have tried alot of stuff from Google and Stack Overflow, such as autoremove and --reinstall, but I keep getting the same errors: Setting up python3-minimal (3.5.1-3) ... /var/lib/...
0
votes
0answers
14 views

Unable to install Spyder in ubuntu [duplicate]

Err:27 http://ubuntu.mirror.snu.edu.in/ubuntu cosmic/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-1 403 Forbidden [IP: 103.27.165.32 80] Err:28 http://ubuntu.mirror.snu.edu.in/ubuntu ...
0
votes
0answers
23 views

Pytorch on a fresh install of ubuntu can't find my GPU

I have the latest ubuntu 18 installed just an hour ago. I have the newest anaconda 3.7 installed maybe 20 minutes ago. Then I proceeded to use conda install pytorch torchvision -c pytorch but when ...
0
votes
0answers
26 views

Python use only one thread

I've got i7 8550U and 18.04.1. Python while using Jupyter notebook is using only one core out 8 possible. For other tasks ie. Java it uses all cores, but for python it's limited to only one. On the ...
0
votes
0answers
11 views

Calling a Pyramid view from a Python script [on hold]

I'm working on system built in Pyramid and one of the views is for importing data. I'd like to make a script that will call that view. I'm assuming this is possible in Pyramid but I haven't found any ...
0
votes
1answer
38 views

Why do these errors appear while running fake run-fake-gps.sh?

I am working on a dronekit follow_me project. So in one terminal, I am running python follow_me.py and in another terminal running run-fake-gps.sh. Then an error appears as below: Sending fake GPS ...
0
votes
1answer
26 views

How to install python3.6 (dev) on Unbuntu 16.04 without colliding with python3.5 (dev)

I have an app that must be run on python3.6 and I'd prefer to run it on a Unbuntu 16.04 OS. Problem is that eventually python3.6 ends up trolling through /usr/lib/python3 which is already polluted ...
0
votes
0answers
14 views

I tried to install Pyferret using the terminal in ubuntu 18.04,but i seriously doubt whether the one have installed is the right one? [closed]

I ran the following commands: sudo apt-get update sudo apt-get install python ferret When they finished, a pyferret package was installed, and when I run pyferret, I see: NOAA/PMEL TMAP ...
0
votes
1answer
34 views

After upgrading Ubuntu 16.04 to 18.04 vim does not work… can't install it!

After upgrading Ubuntu, I just notice that vim is not working (actually deleting from Ubuntu) So I tried to re-installing it using this command: $ sudo apt install vim And the result is: Reading ...
0
votes
0answers
26 views

debootstrap fails because of Python pre-dependency

Ubuntu: 18.04 debootstrap: 1.0.95ubuntu0.1 I'm attempting to port a (working) script from 16.04 to 18.04. This command fails: debootstrap --no-check-gpg --include=iptables,ifupdown,less,qemu-kvm,...
0
votes
0answers
33 views

How to set Python3 as default Python interpreter for VScode?

I've successfully installed VSCode and extension for Python. Since Ubuntu comes with two Python2 version 2.7.12 and Python3 version 3.5.2, VSCode uses Python2 as default interpreter. After opening ...
0
votes
1answer
86 views

How do you install avconv on Ubuntu 18.04?

I am trying to install avconv by running the following command, but the library doesn't exist anymore for Ubuntu 18.04. sudo apt-get install avconv It is told on other Ubuntu forums to replace the ...
0
votes
0answers
31 views

How should OpenCV 2 be installed on Ubuntu 16.04.5 LTS?

I need OpenCV 2 for a legacy program, specifically OpenCV 2.4.9.1. I have attempted to install python-opencv=2.4.9.1+dfsg-1.5ubuntu1 and libopencv-dev=2.4.9.1+dfsg-1.5ubuntu1. The former appears to ...
0
votes
2answers
70 views

Running a process through SSH command and keeping it alive

I try running a python program on a remote server using nohup as explained in: How to keep processes running after ending ssh session? When I do ssh server -C "nohup prog.py &", the python ...
-1
votes
1answer
32 views

Facing the Problem of Installing the Library in Python? [closed]

When i am installing the Python then facing the problem of different libraries (nltk,treebank etc) not importing well, i am using terminal for importing but every command in the google mention i apply ...
0
votes
0answers
20 views

Not able to open terminal or software updater after updating python version to 3.4 and setting it as default [duplicate]

For one of my projects I updated my python version to 3.4 and set that as default, but after that I tried to open terminal and it didn't open. Also Software Updater and Software & Updates are not ...
0
votes
0answers
10 views

How to put html files of python app in snap

I have a python app which is a webserver which will host some html pages. I understood the snapping of pure python app but how do I proceed with html webpages? Where should I put the html files?
0
votes
1answer
59 views

ImportError: No module named can but it's there according to pip list in ubuntu 18

I have in python the error: ImportError: No module named can but the strange is that when I check it with pip list in the environment all these libraries are installed: Screenhot As you can see in ...
0
votes
1answer
22 views

Running python script from shell script with newline

I have a python code that I want to run from the shell script. This one works python train.py --dataset './datasets/lausanne' --timestep 30 --obs_len 8 --loader_num_workers 1 --num_epochs 100 --...
0
votes
0answers
16 views

Can I install python3.6 ? use ubuntu 14.04 pbuilder

I read this Answer: How do I install Python 3.6 using apt-get? environment: % lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.4 LTS Release: 14....
0
votes
0answers
19 views

How to successfully exit after deleting a VM sitting in the VM

I have a very specific problem. Using paramiko client i am deleting a VM sitting in the VM. It does it task but after deletion i want to come out of the VM to the host server. But its hanging for ...
0
votes
0answers
26 views

Ubuntu 18.04 broken python3-disupgrade

I am a first time Ubuntu user and I think I did something wrong.. When I try to install or uninstall something it goes like this: dpkg: warning: old python3 package pre-removal script subprocess ...
0
votes
1answer
22 views

where are cached python packages stored in Ubuntu?

I thought to post this question in Stackoverflow, but I decided to post it here because it probably depends on the OS. When I install a python package using pip, at the first time it is downloaded ...
0
votes
1answer
16 views

How to get UUID partition form a given file path in Python

How to get the UUID partition of a given file path in Python, in Ubuntu/Linux
0
votes
0answers
11 views

csvkit - command line csv viewer and Ubuntu 18.04

Has anyone tried using csvkit in Ubuntu 18.04. I use the command csvlook to view csv files from command line. It used to work in other Ubuntu versions but in 18.04 I get error like the following when ...
1
vote
0answers
23 views

Apache2 Config variables not defined

I'm new to Apache2, so bear with me. I followed this tutorial to get HTTPS working with a Flask server. I keep getting the same output when I run the apache2 command: [Wed Nov 28 01:42:32.210442 ...
0
votes
0answers
10 views

How to replace apt package with pip package if it has dependencies?

I'd like to install a specific version of psutil: $ sudo -H pip install psutil==5.4.2 Found existing installation: psutil 5.4.2 Cannot uninstall 'psutil'. It is a distutils installed project and ...
1
vote
1answer
33 views

Python doesn't use decimal point separator in 'Region and language'

If I open the 'Region and language' dialog, I have 'Formats' set to 'Germany'. If I click that setting, the 'Numbers' preview is '123.456.789,00' (comma as a decimal separator). But if I run python3 -...
0
votes
0answers
33 views

Where should user scripts go? [duplicate]

Writing my first project, which is a small NordVPN switching utility - a system tray icon. It’s written in Python and does not require any special privileges. I intend this to be used by one user only....
0
votes
0answers
68 views

How to get the content of an Ubuntu window with tools or Python/Java programs?

GUI applications on Ubuntu show information in windows. How to use tools or Python/Java programs in order to get the information such as that in the red box of the following screenshot?
0
votes
0answers
20 views

getting error while installing python libraries

I am trying to install some python packages using pip but it is giving error no matter what i try Traceback (most recent call last): File "/home/saurabh/.local/lib/python3.5/site-packages/...
1
vote
1answer
32 views

Get an error when i try to open application from Python

if "open" in text: app = text.split(" ", 1) self.respond("opening " + app[1]) os.system("open -a " + app[1] + ".app") get this error open: invalid option -- 'a' Usage: open [...
0
votes
0answers
24 views

call python function inside shell in pycharm

I am using python 2.7 and Pycharm 2017.3.3, and I have installed the shell plugin for Pycharm. There is a shell script that when I run it in terminal it works properly, but when I want to run it ...
0
votes
0answers
12 views

Poll on events in /dev/input/eventX stalls program

We are using an NVIDIA Jetson TX2 and I need to access a couple of buttons on a Auvideao J120 carrier board. Luckily, I have found that they generate events in /dev/input/event3. Being an application ...
0
votes
0answers
26 views

After installing Python3.7 -> “A problem occurred when checking for the updates”

I recently installed Python3.7, and after that a red icon (stop sign) appears in my task bar with the message "A problem occurred when checking for the updates". As far as I could inform myself, ...
0
votes
1answer
63 views

Pip command not found using root

I want to run pip using root for some reason. But when i run sudo pip install ...... it gives me pip: command not found. without root it runs fine but i want to run as root for some reason please help ...
0
votes
0answers
65 views

python3-minimal bus error Ubuntu 18.04

I cannot perform any upgrade using apt as there is some dependency issue with python3 on Ubuntu 18.04. $: sudo apt upgrade Reading package lists... Done Building dependency tree Reading state ...
0
votes
0answers
48 views

Changing the editor background colour in Eric IDE

I'm using the Eric python IDE (version 6), but I can't find a way to change the background colour of the code editor. It has picked up the dark background colour of my Kubuntu theme, making code very ...
0
votes
0answers
17 views

Problem during upgrade from ubuntu 14.04 to 16.04 [duplicate]

I'm trying to upgrade an ubuntu server from 14.04 to 16.04, but when I launch "do-release-upgrade" command, I have this problem: Building data structures... Done Traceback (most recent call last): ...
1
vote
1answer
66 views

How to setup a systemd service with root access?

Description I am trying to make a systemd service file to run a python script to print something using thermal printer. escpos is the library I am using to access the control of thermal printer. ...
1
vote
1answer
137 views

Bionic Beaver Install Python 3.7.1 with pyenv

I am trying to install Python 3.7.1 so I wont break the system, but pyenv always get error. I installed pyenv per this link:How do I install Python 3.6 using apt-get? Where it says install pyenv and ...
1
vote
1answer
18 views

Error when installing Scribes text editor in Ubuntu 18.04 LTS

When running ./configure script, there is an error: Error: Python bindings for gtkspell was not found. Looking for this package, I discovered that python-gtkspell has been renamed to python-...
0
votes
1answer
176 views

Py_Initialize: Unable to get the locale encoding

Been having a problem for some time now, and scouring the internet for solutions they always refer back to what the user was doing when the problem occurred. For me, the same problem occurred during ...
0
votes
0answers
30 views

Upstart running python script

Ubuntu 14.04 I have simple upstart job test.conf: root@ubuntutest:~# cat /etc/init/test.conf expect fork script /root/test.py end script and simple python script /root/test.py: root@ubuntutest:~# ...