FileNotFoundError: [Errno 2] No such file or directory

When you open a file with the name address.csv, you are telling the open() function that your file is in the current working directory. This is called a relative path. To give you an idea of what that means, add this to your code: That will print the current working directory along with all the files in it. … Read more

Reading from RS 232 port using python

I got the solution. I used a Virtual serial port simulator to create virtual 2 ports and I paired those ports. Then I used pyserial python library for reading from and writing to the ports. Sample code for reading from port

How to use Python to execute a cURL command?

I want to execute a curl command in Python. Usually, I just need to enter the command in the terminal and press the return key. However, I don’t know how it works in Python. The command shows below: There is a request.json file to be sent to get a response. I searched a lot and … Read more