UltiSnips not work: PYTHON caused GVim to EXIT - python

Environments
OS:Windos 7, x64 bit
Vim: gvim74 from vim.org
Python: Python 2.7.11
UltiSnips: just downloaded from github
Gvim worked perfectly for me with SnipMate for a long time and lately I want to use UltiSnips instead. So i newly installed python on my PC, installed UltiSnips with Pathogen and just deleted snipmate, hoped it works well but it doesn't.
The problem is: When I open gvim, it exits as soon as I press "i". Then I recovered gvim before I installed UltiSnips and simply executed a command on gvim like "python print "Hello"" or "python 1" or so, It does nothing but causes gvim to exit instantly, just like a executed "q!" command.
OK It probably is a problem happens when gvim encounters python while does nothing with UltiSnips. Hope for suggestios or methods to solve this. Thanks all your guys.

Problem solved. I downgraded python from 2.7.11 to 2.7.9 and it worked well. – Cicero

Related

VSCode Interactive Window "Run selection/line in Interactive Window" stopped working

I face the same problem as VS Code "Run selection/line in Python interactive window" not working at all, yet using Bisect to disable and detect the reasons through extensions didn't help. For me the problem started after VScode itself was updated yesterday.
VS Code version: 1.75.1
Python version: 3.9.13
Python VS Code extension: 2023.2.0
This command "Shift + Enter" just stopped working in full all of a sudden. It runs for a single line selected, but not for multiple. I cannot find why.
It is just time consuming to copy and paste the same code in the interactive code to run it.
Any ideas how I can fix it?
This problem seems to be caused by the 1.75.1 update. I solved this problem by using the old version of vscode. You can install the old version of vscode here.
By the way, you can also submit the problem to github/VsCode for repair.

VSCode 'Run Python file' does nothing

Today I've encountered a very strange problem in Microsoft Visual Studio Code 2022. When I press the 'play' button to run my python code, nothing happens. This is true also with debugging.
There is no activity in either the built-in cmd or powershell terminals, but through these terminals I can run my code.
I have been using VSCode to write and execute Python code for months now with no issues - as recently as 10 hours ago! I have changed no settings or updated anything and I am at a loss.
I've checked the VSCode Python plugin and last update was 3 weeks ago, so unlikely that, but rolled it back anyway with no luck. I have also made sure my default terminal is cmd prompt, tried reloading and opening a new terminal, restarting PC, all to no avail.
Please help!
You can try the following:
use the shortcuts F5
install and use the code-runner extension
reinstall vscode

Visual Studio Code not executing Python file

On my notebook, Visual Studio Code (VS Code) does not execute my python files anymore.
Yesterday it worked fine, then VS Code suggested me to update powershell from version 5.2 to 7. I did the update, know if I open my python file an try to run without debugging, the script is not executed.
Can someone help me with this issue?
My script for testing is only: print("Hello World")
What looks a bit strange for me is, that in the bottom right corner it shows the python version 3.6.10:
If I go to command prompt an choose Command Prompt, it shows python version 3.6.10 too:
But if I go to powershell (The first selection ind the picture above) it shows me another python version:
I hope someone can help me, I have no idea what to do anymore. Thanks!
Best regards,
Daniel
Added later:
Control bar which shows up for a very short time (Not even a second):
The python3.6 version is no longer supported in the latest debugger version.
Please use the new python version. Or install the historical version debugger.

Python 3.10 IDLE does not respond everytime I hit configure IDLE from options

I am a Windows 10 user, and had configured the Python 3.10 IDLE to dark mode and had added the Fira Code font to the IDLE a few days back (Through the Options menu). Then the Python IDLE was working fine; without issues.
However, each time after that when I try to go to 'Configure IDLE' from Options Menu, Python IDLE just freezes and then stops responding, until I manually close it. It then asks to run a Windows check and reports the error to Windows. I have tried uninstalling and reinstalling Python; however that did not work.
Image: Python has stopped responding (happens everytime I click on configure IDLE)
I am a Windows user and tried running python from cmd using the command: py -m idlelib to start IDLE from the command line to try and get an error report, however the same problem happens as mentioned above, and I do not get an error report when I close Python. I tried finding solutions in similar questions, however I did not understand what was going on. I also do not seem to figure out how 'running the Python IDLE' through the command line works, other than running it using the above command. Can someone please assist me on what to do next at this point, that would be of huge help :D
Try uninstalling the font. The Doesn't work part of the Editor compatibility list on https://github.com/tonsky/FiraCode includes IDLE. I suspect that the font is incompatible with tcl/tk. Your report is similar to
IDLE Settings window won't appear
See https://bugs.python.org/issue45103 for so far futile efforts to protect IDLE.
UPDATE: We were not able to reproduce the problem with FireCode. However, the BPO issue referenced above lead to a tcl/tk bug report that lead to a bugfix, at least for the Phaistos font, that is included in tcl/tk 8.6.12. This is included in the new Python 3.9.9 Windows installer and will be in the upcoming 3.10.1 installer. It might fix your issue with FiraCode.

Tkinter crashing

I've been using tkinter in a python program that I've been working on, and up until today the program was running correctly, but now on running the program without changing any code my computer restarts after responding to the first tkinter window. Running python -m tkinter in the terminal also crashes.
I completely uninstalled and reinstalled anaconda (version 4.7.10)and python (version 3.7.3) and nothing has changed. This is on macOS 10.14.6.
The error message "Class FIFinderSyncExtensionHost is implemented in both ... and ... One of the two will be used. Which one is undefined." also displays when the program is run, but I'm not sure if this is a related issue.
MacOS 10.14.6 update causes my MacBook Air to restart when I execute the a Tkinter python script. Worked fine before that. Must be an Apple problem. Even the simplest of scripts causes a catastrophic crash/restart.

Categories

Resources