What can be the problem im failing to run opencv codes [closed] - python

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 5 days ago.
Improve this question
This is what happens when i run the codes
I have been trying to run the opencv codes and seems like if i try to run them it fails to open my webcam what could be the problem .i have tried to run on two different laptops the other one displays black on the feedback then the other gray and also writes not responding on the menu bar
Ive tried changing the machine but still im failing to run it

Related

Run Python file on spare desktop [closed]

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.

Problem with python interactive in VSCode [closed]

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

Import code works when typed into Shell. but not when running py.script? [closed]

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.

linux/wine/python-os parameter to ignore errors [closed]

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

simple python script to scan and connect wifi network [closed]

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 8 years ago.
Improve this question
I am looking for a very simple python code to scan wifi networks and connect with
I am trying to use wifi scan but I am getting error message invalid syntax. I am newbie to python. Any help will be really appreciated.
In Python there is a very useful library Scapy, that comes pre-installed in Backtrack but in other *nix distributions you need to install it.
And this is the code that might get you started.

Categories

Resources