I'm on Windows, using WLS Ubuntu on terminal. Got python3 installed. Installed idle through
sudo apt-get install idle3
Every time I open IDLE through typing 'idle' in the terminal, or alt tab to IDLE, or run a .py file through IDLE, it starts spamming the letter Q. I wasn't able to reproduce this issue in any other program.
I tried reinstalling IDLE, to no avail.
Is there a fix for this? I want to keep using IDLE but this is driving me mad!
Related
Error screenshot of 'python3 -m idlelib'[] [This is where the idle is located]Sample screen shot of the program here I recently deletd my old python program and intsalled a new one but now the Python IDLE is not launching when I click it from the start program. Also tried ruuning as a administartor. But when I open the cmd and type: "python3" I am getting the terminal. But I need to code in the python IDLE.
I have adde the image of the python IDLE, if i click that program the notepad/termiunal is not opening.
I got it solved. It seems my 1. I haven't added my path in the user variablse and 2. In system variables the path given is wrong. And yes as said by #TerryJanReedy I have installed both microsoft and python.org versions, so I deleted all files and carefully re-installed again.
I'm making a Tetris clone that runs in terminal and I'm using the Pynput Keyboard Listener to listen for user input. Everything works fine when I run it in Pycharm (be it by pressing the "run" button or when I launch it with $ python3 main.py from Pycharm's built-in terminal. However, when I open a "standalone" terminal and launch the program inside it, the Listener doesn't do anything, even though it seems to be running when I run for thread in threading.enumerate(): print(thread.name) in the script (same output in both terminals).
Pycharm is using the default Python interpreter (/usr/bin/python3.8). Running pip list returns the same information when run in both terminals. Running the program as root doesn't change the behaviour in either terminal. Neither does running it with the absolute path of the interpreter, $ /usr/bin/python3.8 main.py.
I have tried $ pip install --force-reinstall pynput along with updating pynput, but nothing has worked.
I am running KDE Plasma (Ubuntu LTS) and using Python 3.8.10.
EDIT: I have tried running the program on a Windows machine and it worked fine both in Pycharm and in PowerShell.
the code is:
import pyautogui
pyautogui.moveTo(502, 632)
input()
it works in IDLE but when i save and run it, the screen flashes and closes. I tried reading it and it said error in line 1. Please Help.
Please check
Your python versions in both places you are running,
Whether pyautogui is installed in the env where you are running as .py file
It is running fine in place as .py file
I guess your interpreter doesn't have pyautogui.
just before run try this: pip install pyautogui this required install once.
I found the solution,
the thing is i had Anaconda distribution of python installed.
Idle was installed in normal python while the when i executed it as .py, anaconda was running it. I just uninstalled anaconda.
I can run idle3 from terminal and open a file from it perfectly.
However, if i try to open a .py file directly with it (via "Open with), it crashes immediately with the following log: https://pastebin.com/raw/c2jrNxh9
Python was installed with brew install python3 --with-tcl-tk and I have tried reinstalling it and restarting OS with no results.
Any idea what could be wrong with it?
My linux distribution(Opensuse 42.2) comes with python 2.7 already installed, however I installed python3 on top of that. And in order to launch IDLE to run the python3 shell, I was told to install "python3-tools" and then just run "idle3" in terminal to launch the shell. However running "idle3" in terminal only brings up an error message, and I can't find any other suggestions. Any help would be extremely appreciated.
** I have fixed the problem. The sources that I found gave me the improper package name. After searching the main-repository for Opensuse, the proper package name for python3 IDLE was "python3-idle".