SenseHat issues in finding anvil server

I get this error when I try to link Anvil to SenseHat. the tutorial I am doing is: https://anvil.works/learn/tutorials/raspberry-pi#yt-iframe-DJID8NEZw-g

anvil.server.NoServerFunctionError: No server function matching “show_message” has been registered at [Form1, line 15](javascript:void(0))

On my Pi it says it can’t find the anvil library even though i installed it as it said in the tutorial. I also made sure my uplink key was correct as well. Any help would be appreciated.

Message on my Pi is: " [ModuleNotFoundError: No module named ‘anvil.server’; ‘anvil’ is not a package]". I have uninstalled and tried again etc. but still no luck. Any help would be appreciated.

@meredydd Would you please be able to share a copy of this tutorial with us (as in a template): https://anvil.works/learn/tutorials/raspberry-pi

Also for the SenseHat and Raspberry Pi code to run do I need the premium version of Anvil?
Here is my version of the app based on your tutorial: https://anvil.works/build#clone:6Y23JDEWBZW2MLG7=LW2IQKKDTJJW5U6BWWR32EWQ

Hi @JTech1995,

The Uplink is available on all plans, including the Free Plan so you don’t need a premium version to connect your Pi to Anvil :slight_smile:

Could you send us the Python script you’re running on your Pi so we can work out what the issue is?

You’ll need to make sure you’ve installed the Anvil Uplink library on your Pi:

pip install anvil-uplink

and you’ll also need to make sure that your show_message function is available to the client-side code in your Anvil app, by decorating it with @anvil.server.callable

Hi @bridget, I was able to get it working. I have installed everything and followed your instructions to the dot. The issue that I found was the fact that I was using Thonny. Thonny doesn’t seem to support running it. I ended up getting the Python 3 IDLE and when I ran the code, everything was working perfectly and I was able to make a connection to my server. Can i recommend please on the tutorial, it might be good to mention that the use of anvil-uplink works better through the IDLE than Thonny would be a big help to a lot of people.

An issue I am facing right now is that I have some data sent from my SenseHat to Anvil based on the tutorial you guys set up. But when I download the data from m data tables, the CSV files is coming up blank when I open it. Would you please have a look at my app and be able to suggest a way to fix my issue of this happening.

When I open up the data tables section - it is blank. But when I press the sort down (down button) for a header the data appears.
See this YouTube video of what I mean is happening: https://youtu.be/2LPHTzTNlgc

https://anvil.works/build#clone:OKTI3SL2EEVY6GP3=YX3QODMJW3NIXXML4A22UO45

Hi @JTech1995,

Glad you got it working!

You have over 200 rows of empty data in your Data Table. This is why it only shows up when you sort a column. If you scroll down in the CSV export, you’ll also see your data appears further down in the CSV file :slight_smile:

Oh my - silly me. Thank you so so much Bridget. Is there anything I can do to get rid of the extra 200 lines? :grinning:You guys are the best.