I am currently struggling to get pyautogui to work with my vps.
The script runs fine locally, but when I attempt to launch the command on another computer outside of the network, I am getting the "screen grab failed" error.
I think this may be due to some permission issues, but not sure.
Thanks for the help.
Related
Im trying to run this CoAP server from https://github.com/Tanganelli/CoAPthon on a raspberry pi. i cant seem to find much instructions. This was one of the CoAP that my instructor wanted us to use, my instructor pretty much left us hanging with no help at all but this link.
i followed the install instructions on the github page, the only thing that wouldnt install is the section
Install instructions for CoRE Resource Directory. Mongod wouldnt install for this section so i gave up. so i dont know if this section is important or not
What are the commands for the terminal to get it running and doing something.
it says to type in to run the server coapserver.py.
cd CoAPthon
python coapserver.py
and from what it looks like its running
but nothing happens, so im not sure if its just not working or if theres just nothing there for it to do, or if there is another file i need to run with the coapserver.py.
Im very new to using CoAP and will eventually need to add a sensor to it do record temp but i want to make sure i know the server is running properly before i add that part in
any input would be great
For future individuals that might need help with this, use aioCoAP, its much easier then CoAPthon
get it from here https://aiocoap.readthedocs.io/en/latest/installation.htmlg
all you need to do is mess with three files labeled server.py, clientPUT.py and clientGET.py
Add resources and classes for sensors and what not to server.py
ClientPUT.py is where you would add your code for the sensors or whatever you need.
ClinetGET.py you alter the uri
run it by type in the command in the terminal (go to directory first that has the server) type in python server.py
in another terminal do the same thing but instead run python clientPUT.py
and the server should be running
then all you need is a client for the get request. If you were like me and needed to use Copper go here to install it for chrome https://github.com/mkovatsc/Copper4Cr
I have successfully created a py script that monitors network bandwidth and records it in a database. When I run it in debug everything works perfectly. However, when I start the service it errors with a 1053. If I comment out the import speedtest the windows service starts just fine. I know the issue is directly related to the module.
I searched the web to it's furthest reaches trying to figure this one out. I have increased my windows service timeout and made sure that my cx_freeze includes the speedtest module, among other small adjustments for testing purposes. All of which still result in the same error on windows service start.
Any help is much appreciated.
Some people were using my bot on a server I am a part of, and for some reason, the bot suddenly started duplicating responses to commands. Basically, instead of doing an action once, it would do it twice. I tried restarting it multiple times which didn't work, and I know it isn't a problem with my code because it was working perfectly well a few seconds ago. It probably wasn't lag either, because only a couple of people were using it. Any ideas on why this may be and how to fix it? I am also hosting it on repl.it, just so you know what ide Im using
Its probably because you run the script and run the host at them same time so it sends the command thorught host and code. If you dont run the code but just the host and it still dupliactes it might be an error with the host or it runs somewhere else in the backround.
Guys and ladies. I am new to programming. I have written some script.It just checks whether some data is correct or not. I want that script to run 24*7 on Microsoft server at job (not on my PC). Please let me know how to do that.
thanks in advance
Aside from general server set-up, you will just need to download Python like you would on any server.
As for the running, something like python yourScript.py would work fine. In order to run it 24/7, you need to put your entire script in a while(True): loop so that it never stops running. Note that you should also include some DECENT error handling in the event on an issue so that it doesn't just crash.
I run several python scripts as Windows Services on Windows XP. Just now they all died. They will not restart. I have no clue what is going on. I can't seem to get an error message to give me more insight. I haven't tried to reinstall any modules yet. What Modules are used by Windows Services in python?
EDIT:
When I reinstall pywin32 I do get this error:
However after clicking the 'ok' button, module does continue to install
Found the Issue. Windows Error Log was full... So the script could not even send a message to log saying that service restarted thus it would fail and not log any error messages to boot.