John Parks PyPortal Thingiverse Viewer

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
Tom_Henry
 
Posts: 350
Joined: Wed Aug 26, 2020 8:19 pm

John Parks PyPortal Thingiverse Viewer

Post by Tom_Henry »

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 74 times

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: John Parks PyPortal Thingiverse Viewer

Post by dastels »

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

User avatar
Tom_Henry
 
Posts: 350
Joined: Wed Aug 26, 2020 8:19 pm

Re: John Parks PyPortal Thingiverse Viewer

Post by Tom_Henry »

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

User avatar
Tom_Henry
 
Posts: 350
Joined: Wed Aug 26, 2020 8:19 pm

Re: John Parks PyPortal Thingiverse Viewer

Post by Tom_Henry »

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

User avatar
dastels
 
Posts: 15608
Joined: Tue Oct 20, 2015 3:22 pm

Re: John Parks PyPortal Thingiverse Viewer

Post by dastels »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”