I just started learning vPython for my physics project. I was trying out some simple code from the visual library and everything ran great for the first half an our but after I close vPython completely and restarted it my test application doesn't "run" anymore. It shows a blank window and whenever I try to interact with it it shows "not responding". I'm running Windows 10 Pro 64bit with 64-bit Python-2.7.9 and VPython-Win-64-Py2.7-6.11 from vPython.org. I've tried rebooting my computer and reinstalling both Python and vPython but nothing helps. I then transfered my projects to my MacBook Pro and everything runs perfectly. Is there any solution for this? Thank you.
Have you tried unistalling and then re-installing Python? I know it's not the most professional answer, but...
Related
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.
I have been using pycharm in my mac but while importing pygame, there is no window popping up. I have copied some codes from google about pygames but it is also not working. I think there might some settings problem in mac os because in my pc the code is working perfectly. Another information is that no error is showing, which means no problem with code or interpreter.
For me, and other people, Python 3.8 doesn't work with PyGame for some reason. Try using Python 3.7.
I am also using PyCharm...
I found, as a workaround, on Apple,
if your "Force Quit" the running Python in the Dock,
and then try to run it again you get:
Whichever one your choose, it then continues and displays the window.
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.
I've created a few notebooks on a previous Mac.
Since then, I've changed my Mac and reinstalled the new one from scratch, with the latest version of Anaconda (Python 2.7).
When I try to open these old notebooks, they are very long to open. Sometimes, it really takes 2-3 minutes in Safari. It sucks on loading MathJax/extensions/Safe.js.
Then, afterwards, it lags on typing : a few milliseconds between the keyboard action and the letters appearing in the cell.
I've been searching extensively on the web for this issue, but didn't find anything.
Uninstalling Anaconda and reinstalling again doesn't solve the issue.
Can it come from the fact that the Anaconda version I used to create the notebooks is probably not the same as the one I've installed on my new Mac ?
Thanks to all for your answer.
Perhaps a change in the browser. Google Chrome is advisable.
I have an old Mac and noticed something while using jupyter. Check your Activity monitor. If CPU is working like hell even tough you are not doing anything because of the process "VTDecoderXPCService" do this
Restart everything:
Right click quit on your browser in the dock
ctrl+c in your terminal where the notebook launched and restart again with "jupyter notebook"
I and I guess most Mac users don't shut down or really quit applications. It's just a guess but maybe you have the same problem. I don't know yet what is causing it but the macbook get's hot, a bit laggy and jupyter takes 2-3x as long to open a notebook.
Try Firefox. I think it is faster than Chrome for opening and viewing large notebook.
I've recently started to use Python, and I don't know much about programming.
I've installed Python 3.4.3 in my Mac OS X Yosemite, and it worked fine for a few months, but now every time I want to run a module it stops responding.
so I use IDLE and when I open a new file to define a function I can write, then I click run and I save my file, and then when I click save IDLE doesn't restart as it use to and I can't write on it or do anything else. there is no crash report, no nothing, just all frozen. I close it and if then I re open and write on IDLE it works but as soon as I try to run a new file again it freezes.
How can I solve it?
to try stuff out i've been using repl.it online and it is useful for a learner like me but still I would like to be able to use IDLE on my mac.
THANK YOU FOR YOUR HELP!!!!
Try using Anaconda, which is another Python distribution, but more science-oriented. It has all the commonly required modules already in it (plus other for scientific purposes), so that you don't have to install them as and when required. And when you install Anaconda, it automatically installs Spyder, which is a much better IDE than IDLE.