i try to open multiple Kivy Python scrpts on my Raspberry Pi 3. (Raspian Jessie)
I can start one script with command line python kivy/examples/widgets/colorpicker.py.
This works awesome.
But if i try to start a second Kivy application with a second Terminal i get the following error (I don't think that this will help much):
For a short time i can see an empty (transparent) Windows with Title "Tutorial". Then it is closing.
Sorry for the stupid question (Kivy Beginner)...
Is this normal?
Related
It was doing just fine, and then suddenly when I tried to run my tkinter program, the program didn't open and instead the python launcher rocket kept bouncing up and down in my dock doing nothing. My program doesn't seem to be the problem because other tkinter programs I made previously do not open as well as the one I'm working on right now.
I've searched up on the internet but I couldn't find any answers to my situation. Please help me get my program running. Thank you
Yesterday I wrote a short python script in VS Code and ran it successfully. Today I open VS Code but find it I can't run any python script. There is no run button on the top bar. I right click in the empty space, there is no run python option also. How can I fix it?
The left sidebar should have a little bug icon (for "debug"). Once you click on that, your run button should appear in the top left.
something weird is going on. I have created a program with PyQt that when opened in Spyder works flawlessly. However if I create the installer with Pyinstall and run it, the program opens normally but once I click on a cell of a table from the main window, it crashes (so I think it has to do with the mousePressEvent() method?
Is there a way where I can debug it, or know where the error is exactly? Because when it crashes the only thing I get is a message of 'Python has stopped working'.
I do have some try blocks around the code and as I said, when opened from the IDE the whole program works as expected.
Please let me know if you need more info
Thanks
EDIT: For a bit more context, if I put the whole mousePressEvent() method in a try block it will still crash when I click the on a cell of the table
Have you include your external resource (like a image) in PyInstaller with the right path folder ? like in this link and have adapt your code ? https://pythonhosted.org/PyInstaller/spec-files.html#adding-data-files ?
For some reason, whenever I try to open a python script that has around ~450 lines of code, IDLE's windows simply appears empty and when I try to run it doesn't run anything either... However, if I try to run a smaller program it works for some reason. Does anybody know how I am able to run a python script on my Mac besides IDLE or how to fix the IDLE window being blank whenever I open a file?
To learn how to run Python Python programs on a Mac, read Chapters 1 and 4 of Python Setup and Usage. Running from an IDLE editor is just one way.
IDLE uses the tkinter module which wraps the tcl/tk GUI framework. Did you read and follow the instructions of how to replace the buggy tcl/tk that Apple supplies? Read the entire page before starting! Ignoring this page is the most common reason people have problems with IDLE on the Mac. There are a few others, but I do not remember one that matches your description.
This question already has answers here:
Pygame and cx_freeze: segmentation fault
(5 answers)
Closed last month.
I made a game in python, and then exported it with cx-freeze. For some reason, when I try to double-click on the application it opens a command line for about a second and then closes. However, when I run it myself with just the python IDLE it works fine. What am I missing?
If it helps: I have graphic files in a separate folder called data and I'm using the normal python modules + pygame.
If you application is a GUI, you should freeze it with the "Win32GUI" base, so it doesn't open a command line. Have a look at an example in the docs.
I don't know why it's closing again - maybe it's failed to include something it needs. When you freeze it with the GUI base, any error messages should appear in a message box, which might help you work out what the problem is.