Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am running wine on Ubuntu 14 to execute a windows application on multiple files from the shell. From the 3000 files, about 4 or 5 fail and raise a pop up error which stops the loop. Then I need to press OK in order for the loop to continue. Is there any parameter in wine, (or some shell command in linux) to ignore errors?
I would like the loop to continue without me having to be there to press OK.
EDIT:
I am running the loop in python and using os module to execute the command in the shell so if there's anything I can do from the Python side using os that would work too.
The steps in the following link solved my issue! https://wiki.winehq.org/FAQ#How_do_I_disable_the_GUI_crash_dialog.3F
Related
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 15 hours ago.
Improve this question
Good day friends.
I've developed some discord bots on python I'd like to have running continuously. I own a spare hp z600 desktop which I would like to use for this purpose.
What would be the best way to have these running on the background?
I've tried simply running it on vs code but apparently it will put the terminal to sleep after a while.
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
Can someone help me fix this issue:
File "/Users/mac/PycharmProjects/NoteBot/main.py", line 5
PATH =
^
SyntaxError: invalid syntax
I think you are trying to run the PS5 bot using the inbuilt python that comes on your mac, i.e., probably Python2.7.
The issue is the author of the bot used a feature introduced in Python 3.5 called type hints.
So you need to change the version of Python that Pycharm is using to a version above 3.5 (google this). Or just run the script from the Terminal app using:
python3 /Users/mac/PycharmProjects/NoteBot/main.py
Note: You may need to install selenium etc. again here using pip3. Pycharm probably will handle this for you if you get it to point at a Python3 installation.
Furthermore, if you want to learn to program in Python yourself after you snag a PS5 you may want to look into pyenv.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
TEMPORAL WORKAROUND: https://www.reddit.com/r/vscode/comments/i45agt/cannot_type_code_into_python_interactive_console/
EDIT: this is a bug in new version of VSCode. There are also a few issues raised on github with the same problem. I will leave the question here, despite that it still gets minus points and got closed twice, as I was not able to find out any answer by googling, maybe it will help someone.
... Asking the same question once again, could you please tell me what details shall I add or how to specify the problem in better way, before you close it again in 10 minutes? I am desperate, can not work and have no one to ask, there is nothing on google with this issue....
So I am using VSCode and an interactive environment. By now everything worked just fine and I am not aware that something changed (I have not installed anything new, nor updated anything, so it might have been done somewhere in the background). Now the problem arises: I am able to run interactive, but only from the script with using cells #%% , however, the interactive window does not allow me to write anything into it directly into Type code here and press shift-enter to run. What is even more strange, yesterday it allowed me to write into this window some code and execute it and then suddenly it stopped working and I had to write code into the script again...
I am using VSCode Version: 1.51.1 and python 3.7.4 64-bit.
I have the same issue - it seems to be a bug in VScode. The only thing that works is simply to close it and open it again, until they fix it - anoying as it is
Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 3 years ago.
Improve this question
I'm having some problem understanding this.
The imported code works successfully when I run the command directly in shell, but it fails when I run the identical code in a .py file
I tried downgrading to 3.5 after getting the same error in 3.7
You've called your local script "goodreads", so Python tries to import that rather than the library. Name your script something else.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
May someone please tell me how to set up code in Python that will allow me to open an .exe file?
The file location is:
C:\Users\Public\Videos\Sample Videos\New Folder\ksp-win-0-21-1\KSP_win cosmetic mods
and the file is called:
KSP.exe
Shorter code would be preferred, but it does not matter that much.
I don't know if it would make a difference, but I am using a Windows 7 computer.
import subprocess
subprocess.call(["C:\Users\Public\Videos\Sample Videos\New Folder\ksp-win-0-21-1\KSP_win cosmetic mods\KSP.exe"])
Another way to run an exe is through the os.system command:
import os
os.system("Path\\to\\file.exe")
The os.system command will allow you to run commands as if they were in your command prompt.