Timeline for Raspberry3b, Python3, Combine 2 codes which work by themself (Thonny, Geany) but not together in the same IDLE
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 4, 2020 at 5:58 | history | edited | Milliways |
edited tags
|
|
Jan 9, 2020 at 13:00 | answer | added | CoderMike | timeline score: 3 | |
Jan 9, 2020 at 12:00 | review | Close votes | |||
Jan 24, 2020 at 3:05 | |||||
Jan 9, 2020 at 11:30 | comment | added | CoderMike | Sounds like geany may be running code as python2. Try adding .decode() to your .read() in your GPS_Code so .read().decode() Then try running from command line: python3 GPS_Code.py | |
Jan 9, 2020 at 10:49 | comment | added | joan | Are you sure the scripts are Python 3? | |
Jan 9, 2020 at 10:06 | comment | added | Philipp | Probably it's that line which isn't executed in the right way so that the commands can't be executed | |
Jan 9, 2020 at 10:05 | comment | added | Philipp | # Enable Serial Communication port = serial.Serial("../../dev/ttyS0", baudrate=115200, timeout=1) # Transmitting AT Commands to the Modem # '\r\n' indicates the Enter key | |
Jan 9, 2020 at 10:04 | comment | added | Philipp | Thus, I would like to change the GPS.py code in a way that it works and that I can just implement it as a parallel function in the tracking software - Any ideas? | |
Jan 9, 2020 at 10:03 | comment | added | Philipp | @CaderMike I ran both programs on the command line and the results are equal to thonny. The Tracking Software for the qr codes and rfid works fine and the GPS_Code throws the same error | |
Jan 9, 2020 at 10:02 | comment | added | Philipp | Yes, I was also very satisfied with thonny and I'm goining to stay with that. | |
Jan 9, 2020 at 9:51 | comment | added | tlfong01 | (1) But IDLE has left Rpi4B buster for good. So it is not a good idea to remember IDLE. (2) I have tried both Geany and Thonny. My conclusion is that Thonny is the best of all three. For newbies and ninjas, I highly recommend Thonny. (2) In case you still wish to run two programs in a row, Genay then Thonny, I would suggest to try to run two very simple programs one just printing something like "Hello, I am Geanny", another "Hello, This is Thonny". If you find simple program work, then try more. | |
Jan 9, 2020 at 9:41 | comment | added | CoderMike | In normal use your programs should be run from the command line - not within an IDE. What happens if you run each program from the command line? eg python3 file.py | |
Jan 9, 2020 at 9:33 | history | asked | Philipp | CC BY-SA 4.0 |