Skip to content
Advertisement

Tag: python

DNS Resolver does not contain answer

I’m trying to automate some of the tasks with python. I have to chcek if some domains are still in ours DNS servers. So searching through stack i found script with dns.resolver and tryied to suit it to my needs. So, the script looks like this: My domainfile.txt looks like this: And error message i recived is: Traceback (most recent

Running functions on bluetooth pair request

I’ve recently been learning electric circuitry using arduino and am looking to implement some changes to my Raspberry Pi application. I used this outdated tutorial a few years ago to create my pi bluetooth receiver which is working well at the moment (https://www.instructables.com/id/Turn-your-Raspberry-Pi-into-a-Portable-Bluetooth-A/) but one downfall of this out-dated tutorial is that bluetooth connections have to be accepted via the

Scripting in linux

Why java -version gives empty string when executing in subprocess.Popen. Is there any alternative to get the exact text given by java -version command in Linux? Answer I think you are getting some error so capture the stderr from the process. Then try to print the error.

CTRL+C not handled in python script when using su

I have a Python code like this. While the KeyboardInterrupt is handled fine if I run the python script by myself, it is not handled if I run it as another user using su, like this. How can I solve this problem? Answer The su command creates a new interactive shell and executes the command inside it. When you use

Why is Pip not working after upgrading Python to 3.8?

I was working on a 2D game using python 3.6.8 and pip3. Everything was working fine. Then i downloaded and installed python 3.8. Now, pip won’t work at all. These are the errors I am getting when running “pip3 install arcade”: PLEASE HELP, I would like to continue making my game. Answer The error is pretty clear. You’ve got a

For key and value in file json [closed]

Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 3 years ago. Improve this question FILE json I want to make a loop for and get the key and value Answer looool [in python3.7]

Advertisement