Go Down

Topic: Problem in running Python code that pilots Arduino code (Read 689 times) previous topic - next topic

Farzadtb

Hi All

I tried this code to run a temperature data acq transfer to python from Arduino but it gives me an error of invalid synthax in line 75, does the same happen to you ? how to fix it ?

http://forum.arduino.cc/index.php?topic=244703.0#quickreply

The second version is the one I intend. I just did not change anything in the code , but I believe I should change ArduinoPort in line 14


Robin2

Why not ask your question in the Thread for the project where the guy who wrote the code can reply?

...R
Two or three hours spent thinking and reading documentation solves most programming problems.

Farzadtb

My Python version is 3.6 in Anaconda 3

I have already asked the question , but I do not believe I will get an answer since the post is very old and it did not have any reactions to my question in the thread yet

Coding Badly

My Python version is 3.6
The syntax for print has changed.  Adding parenthesis may be enough to get past the problem.


Farzadtb

Thank you very much

That was it, well actually now there is a new problem :

SerialException: could not open port 'COM30': PermissionError(13, 'Access denied.', None, 5)

Coding Badly


Close Serial Monitor before running your Python program.


Go Up