Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: suicidal_orange on April 18, 2014, 01:13:15 PM

Title: python smbus extension?
Post by: suicidal_orange on April 18, 2014, 01:13:15 PM
This is my first time using Tiny Core on anything but it seems to be ideal for what I need to do: display a number from the Internet on an LED screen and be able to pull the plug at any time without corruption.

Having read the basics of how it works I downloaded the SSH version, got wifi working and manually added my display script to mydata.gz so I was good to go.

I then installed python-RPi.GPIO.tcz and hopefully ran the script - but no joy  :(
Code: [Select]
ImportError: No module named smbusIs there an extension for this?  There are lots of Python ones but none looked likely...

Thanks for any help, even if it's telling me to go and compile it.  What else is a long weekend for  :D
Title: Re: python smbus extension?
Post by: bmarkus on April 18, 2014, 01:41:03 PM
Welcome on board! The Python smbus module is not yet in the repo, will add it in the next days. However you can try to do it youself in the mean time.
Title: Re: python smbus extension?
Post by: suicidal_orange on April 18, 2014, 02:10:55 PM
Thanks, I'll have a go but I'd be lying if I said I knew where to start.  It's not so much fun doing things I can do already anyway :)
Title: Re: python smbus extension?
Post by: bmarkus on April 19, 2014, 03:52:09 PM
python-smbus.tcz added to repo
Title: Re: python smbus extension?
Post by: Paul_123 on April 19, 2014, 05:09:24 PM
i had been using the version that came with the rasbian package.....I'll give this one a shot.
Title: Re: python smbus extension?
Post by: suicidal_orange on April 20, 2014, 09:04:50 AM
python-smbus.tcz added to repo
Wow, that was fast - thanks! :D