nodesign / weio

weio
http://we-io.net
128 stars 35 forks source link

powerModule.py not working #233

Closed bltzr closed 9 years ago

bltzr commented 9 years ago

Hi there !

I'm trying to use the powerModule as @ks156 told me on may 1st on gitter, I have added 'from weioLib.weio import *' inside of /weio/things/output/power/powerModule.py, then restarted but that didn't help I still get these errors https://gist.github.com/anonymous/7d31996c9cdc11f87a43

anybody having a hint at that ?

ks156 commented 9 years ago

There's a missing import somewhere. I'll check it ASAP. Can you also attach your code ? It will be easier to test. Thanks Paul

bltzr commented 9 years ago

Thanks, Paul I don't have any specific code yet, I'm using the powerModule example

ks156 commented 9 years ago

Adding

from weioLib.weioSPI import SPILib

just after

from weioLib.weio import *

on

/weio/things/output/power/powerModule.py

should fix the problem. Can you confirm ?

bltzr commented 9 years ago

right, I don’t have any errors any more !!

now, I need to figure out how to use them, but that's another issue

bltzr commented 9 years ago

big thanks !!

ks156 commented 9 years ago

Glad to know it works now.