Questions tagged [python3]

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

Filter by
Sorted by
Tagged with
-1
votes
0answers
18 views

Python - ubuntu File copy - how to solve [closed]

Using python - ubuntu I can't transfer the files.Below mentioned options are tried.(Don't use password)Share ideas to me. import os, shutil,sys, stat File permission os.chmod(path,777) os.chmod(path,...
1
vote
0answers
27 views

There is no application installed for “shared library” files

Created a simple python gui window and make executable with PyInstaller. The executable is not able to run firstly on the development machine (of course it will failed when it is copy to a yocto with ...
0
votes
0answers
18 views

how to tell pip to uninstall python modules from previous python version?

I upgraded from Ubuntu 20.10 to 21.04 & the python version changed from 3.8 to 3.9. In 20.10 I installed many python modules using pip & they are at /usr/local/lib/python3.8/dist-packages/ &...
0
votes
1answer
41 views

Installing python3-minimal on a `ubuntu:18.04` docker [closed]

I cannot install python3-minimal on a 18.04 docker. I systematically end up with a PermissionError: [Errno 13] Permission denied: '/usr/lib/python3.6/__pycache__/__future__.cpython-36.pyc....
0
votes
1answer
51 views

Why is my python script not running crontab? Everything has full paths, but it still doesn't work

I have found similar threads regarding this issue and it's always solved by specifying full paths everywhere. I have done that, but it still doesn't work. I have written a python script which checks ...
0
votes
0answers
40 views

Cannot reinstall ubuntu desktop python3-minimal issue

I crashed my system removing python. I tried to reinstall it but has issue with python3-minimal. I searched many Stacks and tried that to fix. Now I cannot access to GUI and reinstall it as ...
0
votes
0answers
68 views

AttributeError: module 'tensorflow' has no attribute 'gfile'

Source code: config = config_util.get_configs_from_pipeline_file(files['PIPELINE_CONFIG']) Output: AttributeError Traceback (most recent call last) in ----> 1 config = ...
0
votes
0answers
73 views

Correct PPA to install Python 3 on Ubuntu 18.04 and 20.04 [duplicate]

For Ubuntu 18.04 and 20.04 I need to install python 3. Currently 3.9.5 as I wrote this post. I watched some videos on youtube and read some tutorials. There are two different approaches One sudo apt ...
0
votes
1answer
24 views

Why does print('\x9f') in the python3 REPL hang gnome-terminal?

xterm doesn't hang. echo -e '\x9f' doesn't hang on xterm or gnome terminal. non-REPL python3 (3.6, 3.8, 3.9 tried) truncates the string but doesn't hang. Same for IPython 7.13.0 Gnome Terminal version ...
-2
votes
0answers
34 views

python flask stream console output on html page using subprocess

I am a beginner in web programming using Flask in Python. I've built a web page the takes a couple of inputs from the user and clicking a command button on the page leads to another Python module's ...
0
votes
0answers
30 views

Ubuntu tty1, can't get into the desktop

When I start the OS this is what I get after I login in (see the pic). I can't get into the desktop. I think the problem started when I uninstall python3 but I couldnt find any solution. I'm using a ...
0
votes
1answer
107 views

How to slice a tuple using variable indexes, output as textual list

I am using Ubuntu 18.04 and Python 3.8 I need tuple_slice() to do 2 things: slice an input tuple between the given start and all BEFORE the end indexes Concatenate these values as a comma separated ...
0
votes
1answer
21 views

Is it possible to read Python GObject Introspection API documentation offline using already installed packages and files?

On my Ubuntu MATE 20.04 LTS system I see many packages named gir1.2.... For example I want to develop some new functionality on Python using gir1.2-gtk-3.0 and gir1.2-caja-2.0. Such packages usually ...
0
votes
0answers
12 views

anaconda change 'base' environment permanently to a different environment 'myenv' to startup at terminal openings

I would like to cahnge the 'base' install environemnt that inisiates when I start a terminal to an a diferent environment that i have created called 'myenv' anaconda evironment. I want that 'myenv' ...
0
votes
2answers
36 views

Ubuntu 20.04 stuck on boot up

I have a big problem, I was trying to use Python3 on my PC and it seemed like Python3 wasn't there, I tried installing it and it said Python3 is already installed. So I uninstalled python3 and ...
0
votes
0answers
14 views

Different technique without using epoch time for moving window

I'm creating a function to get a moving window for my LED strip. Following is the code I wrote, and it works very good. I generate a moving window the following way: I treat timestamp (t: epoch time),...
0
votes
0answers
19 views

Terminal on Ubuntu20 does not start anymore after installing Python 3.7

looks I have chicken and egg problem. I have updated Python3 to 3.7 on Ubuntu 20.04 The terminal does not start anymore. I have read this thread: Terminal not opening up after upgrading python to 3.7 ...
0
votes
2answers
68 views

Do we have offline Python documentation browser in Ubuntu repositories to have one “point of service” to read and search the Python docs and APIs?

The question is in the title. As a use case one can imagine the situation about finding function basing on its known functionality. I already know about Zeal which is packaged. It downloads ...
2
votes
2answers
32 views

Permission denied when install featherdubster at python

I'm trying to install a python package call featherduster. I followed the guide here https://github.com/nccgroup/featherduster/blob/master/INSTALL.md But when i execute heeyoung@Tindertron:~/...
0
votes
0answers
15 views

How to run two terminals for RS232, one for input, second for output in Python

I have simple terminal for serial communication and i would like to separate user input terminal (outgoing messages) from receiving inbound messages... It is pretty messy when terminal is still ...
0
votes
0answers
49 views

How To Setup VSCode , Python interpreters?

new to linux , coming from windows 10 , had vscode setup on it , now vscode asks me to select a python interpreter, but i have a fresh install of ubuntu check the screenshot first, so why does it show ...
0
votes
0answers
29 views

Traceback whenever I call pip, or pip3

Really not certain how i messed this up. Whenever I call pip, or pip3, these are the outputs: tarik@tarik-ThinkPad-S3-Yoga-14:~$ pip3 --version Traceback (most recent call last): File "/usr/...
0
votes
0answers
24 views

WSL issue with importing packages and opening files within python scripts

I've recently started using the WSL with Ubuntu version: Description: Ubuntu 20.04.2 LTS Release: 20.04 Prior to this I have installed all packages through the Windows Powershell Terminal ...
0
votes
0answers
34 views

Unable to install PgAdmin4 on Ubuntu 20.04

I'm a new contributor to AskUbuntu and StackOverflow in general. I'm trying to install pgAdmin4 on Ubuntu 18.04 following this LinuxHint tutorial. I created the virtualenv successfully, checked that ...
0
votes
1answer
168 views

No module named 'psycopg2' + error during installation

I developed a python script which imports data to my Postgres DB and it works fine on my local machine but when I transferred it to the server it fails with: Traceback (most recent call last): File &...
2
votes
1answer
287 views

How do you install pip for python3.9.4?

I haven't found a way to install pip for python3.9 . When I run the command sudo apt install python3-pip it installs pip for pythpn3.8, not 3.9. If I try to use sudo apt install python3.9-pip it gives ...
1
vote
0answers
35 views

Dependency problem with python 3 prevents all apt-get installation

I tried to upgrade from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS but got an error with Python 3 that gets corrupted (like in this). This is probably due to me changing the system Python3 (before I learnt ...
0
votes
1answer
42 views

How do you reinstall Ubuntu after deleting python3.6? [duplicate]

I recently made the stupid mistake of uninstalling python3.6 because I upgraded to python 3.9, not knowing how important python is for Ubuntu. I got signed out automatically and when I tried to sign ...
1
vote
2answers
81 views

How to install wxPython under an alternative python version?

I'm trying to run an application (PsychoPy) on my Ubuntu 20.04. Due to some technical problems, I needed to use a diffrent python installation than my default. So following this guide, I've installed ...
1
vote
2answers
126 views

vs code jedi language server is running over 120.9% of CPU on ubuntu

I don't know why all of a sudden python3 decided to run over 120.9% of CPU but I'm facing this problem since last week and I still couldn't find out the solution. I don't know why I can't find any ...
1
vote
0answers
309 views

RuntimeError: CUDA unknown error - this may be due to an incorrectly set up environment, e.g. changing env variable CUDA_VISIBLE_DEVICES

I am trying to check the GPU device name but after executing this code. I got this unknown runtime error. please help me to solve this problem and give complete instructions to solve this error. ...
-1
votes
1answer
34 views

Ubuntu doesn't boot after reinstalling Python 3

I uninstalled Python 3 using sudo apt purge python3 and reinstalled using sudo apt-get install python3 and finally rebooted computer usingsudo reboot. But after this, computer doesn't start.
0
votes
1answer
59 views

How can i resolve dpkg error after uninstalling python3?

I tried to uninstall python3.5 from my Ubuntu 16.04 by using the command sudo apt-get remove python3 within the directory /usr/bin. When I tried to install it again, using sudo apt-get install python3,...
0
votes
1answer
87 views

Why I am getting errors -Permisssion denied for firefox and unknown error: DevToolsActivePort FOR chrome?

I am trying to setup google chrome, firefox along with selenium webdriver for webs scraping. Tools version- Google Chrome 89.0.4389.90 Mozilla Firefox 87.0 geckodriver 0.29.0 (cf6956a5ec8e 2021-01-14 ...
0
votes
0answers
100 views

Ran “sudo apt remove python3.8” but still has python3 & everything is broken

Context I'm using Ubuntu 20.04.2 LTS. Before running the command I had several python version: python2.7.18 (python) python3.6 (python3) python3.7.4 (python3.7) python3.8.0 (python3.8) Problem I ...
0
votes
0answers
45 views

“source” not working in bash shell while “.” is on Ubuntu 20.04

I have a virtualenv called env on Ubuntu 20.04, it was made using the system python installation (python3 -m virtualenv env). I used source env/bin/activate and got a prompt prepended with (env) but ...
1
vote
1answer
44 views

Where is python installed on my Ubuntu Mate

I was configuring my sublime text to work with python but I don't know where python is installed. I used the command which python but it didn't work. Thanks!
0
votes
2answers
60 views

Python3.5 claiming pip installations in virtualenv and its uninstallation causing errors

nmj@pc-nm:~$ sudo apt remove python3.5 Reading package lists... Done Building dependency tree Reading state information... Done Some packages could not be installed. This may mean that you ...
0
votes
1answer
85 views

How to activate a virtual environment in Ubuntu?

I installed virtualenv and I created a virtual environment inside my directory. Everything is OK, but I can't activate it. When I run: source /bin/activate it says: already: command not found ...
0
votes
0answers
14 views

Get drive data from python3 (kivy) on ubuntu 20>

How to get drive list on ubuntu ? This work perfect on windows: drives = ['%s:' % d for d in string.ascii_uppercase if os.path.exists('%s:' % d)] Error log : IndexError: list index out of range I ...
0
votes
1answer
109 views

Removing python3.9 installed from third part

Yesterday I have done several messes with my laptop, because I have uninstalled python3 on Ubuntu 20.04 because I have installed manually python 3.9 from the external repository https://www.python.org/...
0
votes
1answer
102 views

Whenever I try to upgrade,update and install any software on Ubuntu18.04 I get unmet dependencies error

It was all working fine but after i did sudo apt upgrade i got a red dash icon on my notification bar and started facing conflicts with python versions, when trying : sudo apt upgrade Reading ...
1
vote
0answers
38 views

Auto complete stopped working in Spyder

Since yesterday that I updated the 'Pygments' installation, the auto complete has stopped working. For more details regarding this update, please see the link below. https://ubuntu.com/security/...
0
votes
1answer
391 views

neither python 3 nor python 2 works well on ubuntu 18.04 with repo?

I'm on ubuntu 18.04 and I'm trying to init this repo : # repo init -u https://github.com/anbox/platform_manifests.git -b anbox since I'm using this version of python : # python Python 3.6.9 (default, ...
0
votes
1answer
57 views

Exceptions during the install through pip3 dynaconf

I am trying to install a specific dynaconf version on an Ubuntu VM taht i will need to install ara client (Ansible Record Analyzer) but I keep getting these exceptions : user@machine:~$ pip3 install ...
0
votes
0answers
86 views

Ubuntu 18.04.5 LTS: Python 3 can´t be installed

I want to install python3 (on a ubuntu system I got some days ago from an employee who is not longer in our company) via apt install python 3 but it gives me an error: Traceback (most recent call ...
0
votes
0answers
28 views

Python - pymc and pymc3

Anyone have a solution for installing pymc or pymc3? I tried pip installing it in Jupiter Notebooks and installing it in the terminal "conda install -c conda-forge pymc3" ... but I'm still ...
0
votes
0answers
132 views

“pip2 install psycopg2” gives an error - help

I am using anaconda3 and python 3. There is a project which uses python2 and pip2. When pip2 install psycopg2, this error pops up? Any help? Traceback (most recent call last): File "/usr/local/...
0
votes
0answers
33 views

Pygraphviz is installed but not detected ns3

I have install the python3-pygraphviz on Ubuntu 20.04.2 but while running command bake.py show It is not detecting the pygraphviz but when I try to install it is saying it is already installed.Here is ...
0
votes
0answers
112 views

./build.py /usr/bin/env: ‘python’: No such file or directory

I'm trying to setup NS3 version 3.29. It was going great until this linux@NGS8Q66:~/ns-allinone-3.29$ ./build.py --enable-examples --enable-tests /usr/bin/env: ‘python’: No such file or directory ...

1
2 3 4 5
25