PyPortal Thingiverse Viewer
I have been trying to get John Parks' PyPortal Thingiverse Viewer working on my PyPortal.
I have downloaded all the files and double checked that I have all the necessary files. See attached screen shot of my PyPortal files.
I have attached the code.py file I am using from John Parks.
Here is the code.py output that I get when running the code. I seem to be caught in some kind of loop.
code.py output:
Preloading font glyphs: b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. "\'?!'
Connecting to AP Honda
Retrieving data...Reply is OK!
Code stopped by auto-reload.
soft reboot
Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.
code.py output:
Preloading font glyphs: b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. "\'?!'
Connecting to AP Honda
Retrieving data...Reply is OK!
Code stopped by auto-reload.
soft reboot
Can you suggest any corrections I need to make to get this program to run correctly?
Thank you,
Tom Henry
John Parks PyPortal Thingiverse Viewer
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Tom_Henry
- Posts: 350
- Joined: Wed Aug 26, 2020 8:19 pm
John Parks PyPortal Thingiverse Viewer
- Attachments
-
- code.py
- (2.06 KiB) Downloaded 2 times
-
- Screen Shot from Tom Henry.png (183.35 KiB) Viewed 75 times
- dastels
- Posts: 15655
- Joined: Tue Oct 20, 2015 3:22 pm
Re: John Parks PyPortal Thingiverse Viewer
It seems to be running fine but the "a file changed so I'll reload" thing is happening. Your OS must be poking at the board occasionally. It's useful while working on code, but annoying once you just want to run it.
Have a look at https://learn.adafruit.com/welcome-to-c ... 3108374-19
Dave
Have a look at https://learn.adafruit.com/welcome-to-c ... 3108374-19
Dave
- Tom_Henry
- Posts: 350
- Joined: Wed Aug 26, 2020 8:19 pm
Re: John Parks PyPortal Thingiverse Viewer
I tired turning off Auto-reload.
Here is my new output (see below), and I have attached my modified code.py.
Getting an error, something about failing to request hostname. I'm not sure what that means.
Tom Henry
Auto-reload is off.
code.py output:
Preloading font glyphs: b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. “\'?!'
Connecting to AP Honda
Retrieving data...Some error occured, retrying! - Failed to request hostname
Here is my new output (see below), and I have attached my modified code.py.
Getting an error, something about failing to request hostname. I'm not sure what that means.
Tom Henry
Auto-reload is off.
code.py output:
Preloading font glyphs: b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. “\'?!'
Connecting to AP Honda
Retrieving data...Some error occured, retrying! - Failed to request hostname
- Attachments
-
- code.py
- (2.11 KiB) Downloaded 2 times
- Tom_Henry
- Posts: 350
- Joined: Wed Aug 26, 2020 8:19 pm
Re: John Parks PyPortal Thingiverse Viewer
I just ran it a second time, and it seems auto-reload is still a problem:
Auto-reload is off.
code.py output:
Preloading font glyphs: b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. "\'?!'
Connecting to AP Honda
Retrieving data...Reply is OK!
Code stopped by auto-reload.
soft reboot
Auto-reload is off.
code.py output:
Preloading font glyphs: b'0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-!,. "\'?!'
Connecting to AP Honda
Retrieving data...Reply is OK!
Code stopped by auto-reload.
soft reboot
- dastels
- Posts: 15655
- Joined: Tue Oct 20, 2015 3:22 pm
Re: John Parks PyPortal Thingiverse Viewer
It's Wifi and it's the Internet... you'll get errors. In most situation you never see those errors ... the next attempt often works. If it never works, then there's a more serious problem.
The "auto-reload is off" ... "stopped by auto-reload" is kind of odd, though.
Dave
The "auto-reload is off" ... "stopped by auto-reload" is kind of odd, though.
Dave
Please be positive and constructive with your questions and comments.