Due to high demand, expect some shipping delays at this time - orders may not ship for up to 2-3 business days.
0

John Parks PyPortal Thingiverse Viewer
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

John Parks PyPortal Thingiverse Viewer

by Tom_Henry on Sat Jan 15, 2022 10:33 pm

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
Attachments
code.py
(2.06 KiB) Downloaded 2 times
Screen Shot from Tom Henry.png
Screen Shot from Tom Henry.png (183.35 KiB) Viewed 48 times

Tom_Henry
 
Posts: 220
Joined: Wed Aug 26, 2020 8:19 pm

Re: John Parks PyPortal Thingiverse Viewer

by dastels on Sun Jan 16, 2022 11:56 am

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-circuitpython/troubleshooting#code-dot-py-restarts-constantly-3108374-19

Dave

dastels
 
Posts: 9720
Joined: Tue Oct 20, 2015 3:22 pm

Re: John Parks PyPortal Thingiverse Viewer

by Tom_Henry on Sun Jan 16, 2022 1:39 pm

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
Attachments
code.py
(2.11 KiB) Downloaded 2 times

Tom_Henry
 
Posts: 220
Joined: Wed Aug 26, 2020 8:19 pm

Re: John Parks PyPortal Thingiverse Viewer

by Tom_Henry on Sun Jan 16, 2022 1:45 pm

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

Tom_Henry
 
Posts: 220
Joined: Wed Aug 26, 2020 8:19 pm

Re: John Parks PyPortal Thingiverse Viewer

by dastels on Sun Jan 16, 2022 2:25 pm

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

dastels
 
Posts: 9720
Joined: Tue Oct 20, 2015 3:22 pm

Please be positive and constructive with your questions and comments.