Newbie Q error: load fail

Hi All,

Powered up my Norns Shield for first time this morning. I’m using a RPi 3+ and everything has been working fine.

I’m getting the ‘error: load fail’ on a lot of new scrips I’m installing. It has allowed me to upload a few (such as raindrops) but hasn’t allowed the majority ( [l_ll__l_, constellations and grovecats).

I couldn’t find much about this on the site but one person suggesting updating the shield. This didn’t work.

I’ve also tried updating, removing and installing from ‘>>’ line code at the bottom of maiden.

Thought I’d ask you wonderful friendly people.

Any advice is much appreciated.

R

Did you restart? A lot of scripts require that after install.

1 Like

Thank you but yes. Every time I did a new install.

I’m not sure I understand what you mean with this. Upload where?

I’m definitely not an expert but surely if you post matron’s output when you load something and get the error it can surely give someone more expert than me a clue on how to help you.
I’m sure you’ve already read it but in case not the troubleshooting section here can help you.

The upload of the script to the Norns Shield.

I’m sorry I should have been clearer.

The upload from maiden appear to work fine and the scripts appear on the Norns menu.

When I try to load it on the shield it takes me to the opening (instructions) page but when if I go further it just goes back to the main menu with an ‘error: load fail’ message.

I think it would be useful to check matron and post the result you get with one of the troublesome scripts here.

Do you mean install through the matron ‘>>’ line at the bottom of the page in maiden.

That is how I’ve been installing and it comes up as successful.

When you load (not referring to download/install) the scripts on your shield you should see a series of code lines in the matron box (if you’re connected) describing what went wrong during the loading process.

Like this?

Not exactly but almost.
Now that you’ve installed go to your shield, try to load constellations and if you get “error: load fail” copy and paste here what you see in matron’s box.
Try not to do a screenshot but copy and paste the code :slight_smile:

Thank you so much. I think (?) this is what you mean.

?

script load: /home/we/dust/code/constellations/constellations.lua

cleanup

script clear

including /home/we/dust/code/constellations/lib/includes.lua

SCRIPT ERROR: load fail

/home/we/dust/code/constellations/lib/includes.lua:5: module ‘lfo’ not found:

no field package.preload[‘lfo’]

no file ‘/home/we/norns/lua/lfo.lua’

no file ‘/home/we/norns/lua/core/lfo.lua’

no file ‘/home/we/norns/lua/core/params/lfo.lua’

no file ‘/home/we/norns/lua/lib/lfo.lua’

no file ‘/home/we/norns/lua/softcut/lfo.lua’

no file ‘/home/we/dust/code/lfo.lua’

no file ‘/usr/local/share/lua/5.3/lfo.lua’

no file ‘/usr/local/share/lua/5.3/lfo/init.lua’

no file ‘/usr/local/lib/lua/5.3/lfo.lua’

no file ‘/usr/local/lib/lua/5.3/lfo/init.lua’

no file ‘/usr/share/lua/5.3/lfo.lua’

no file ‘/usr/share/lua/5.3/lfo/init.lua’

no file ‘./lfo.lua’

no file ‘./lfo/init.lua’

no file ‘/usr/local/lib/lua/5.3/lfo.so’

no file ‘/usr/lib/arm-linux-gnueabihf/lua/5.3/lfo.so’

no file ‘/usr/lib/lua/5.3/lfo.so’

no file ‘/usr/local/lib/lua/5.3/loadall.so’

no file ‘./lfo.so’

stack traceback:

/home/we/norns/lua/core/norns.lua:144: in function </home/we/norns/lua/core/norns.lua:144>

[C]: in function ‘require’

/home/we/dust/code/constellations/lib/includes.lua:5: in main chunk

[C]: in function ‘dofile’

/home/we/norns/lua/core/startup.lua:43: in function ‘include’

/home/we/dust/code/constellations/constellations.lua:40: in main chunk

[C]: in function ‘dofile’

/home/we/norns/lua/core/script.lua:186: in function </home/we/norns/lua/core/script.lua:186>

[C]: in function ‘xpcall’

/home/we/norns/lua/core/norns.lua:145: in field ‘try’

/home/we/norns/lua/core/script.lua:186: in function ‘core/script.load’

/home/we/norns/lua/core/menu/preview.lua:23: in function ‘core/menu/preview.key’

/home/we/norns/lua/core/menu.lua:140: in function </home/we/norns/lua/core/menu.lua:117>

script clear

lua: /home/we/norns/lua/core/clock.lua:71: bad argument #1 to ‘resume’ (thread expected)

stack traceback:

[C]: in function ‘coroutine.resume’

/home/we/norns/lua/core/clock.lua:71: in function ‘core/clock.resume’

lua:

/home/we/norns/lua/core/clock.lua:71: bad argument #1 to ‘resume’ (thread expected)

stack traceback:

[C]: in function ‘coroutine.resume’

/home/we/norns/lua/core/clock.lua:71: in function ‘core/clock.resume’

1 Like

Also worth checking which version of the norns firmware you’re running.

There was an update which requires a fresh install, if you’re on an older firmware many scripts will now fail to load.

When the screen shows the menu with Select, System, Sleep then press key 2 and you’ll see the version of the norns firmware you’re running. Share the number on here and we can see if you need to update.

Tip for pasting long code outputs: select the cog in the top right and use the hide details option.

Summary - tidy thread is a happy thread

This really helps keep threads readable on mobile by compressing everything into a single line.

1 Like

Thanks I’m running 210607

This is what it updated to a few hours ago.

1 Like

Perfect, this is the issue.

Follow these instructions to do a fresh install:

5 Likes

Thank you. I’ll try that.

Just a couple of things.

Firstly should I be weary of updating as I did that when I first turned the shield on.

Secondly, what version is best with for a Norns Shield with a RPi 3B+. I had some issues getting some to work when I first installed.

Any guidance here would be much appreciated.

1 Like

I just updated my shield yesterday and the documentation is super thorough. Just read through it carefully and follow the instructions. Directions for which image to grab are provided and have you check your shield and Pi versions. You got this!

Edited to add:
This is the post with links I followed to update to the new image: norns: new image 220306

Once you complete that, you can update to the latest version successfully.

3 Likes

Thanks for all the help.

Much noodling around with various images and updates but it all seems good now.

3 Likes