I am trying to turn a light on and off with WeMo. I am using this package
It works great on my laptop but when I run it on my edison I get "Importerror: No module named anydbm"
I searched far and wide but could not find a fix. Can anyone here help?
I tired this on a fresh install and still had the problem.
I am using ouimeaux and I got it here http://ouimeaux.readthedocs.org/en/latest/installation.html Installation — ouimeaux 0.7.2 documentation and installed it with easy_install ouimeaux
My laptop is running Yosemite.
Thanks for your help,
Here are the steps I used:
Add Alex_T's repository
To configure the repository, add the following lines to
Update the package manager and install the first package we need:
opkg install gitEdison helper scriptsgit clone https://github.com/drejkim/edison-scripts.git ~/edison-scripts # Add ~/edison-scripts to PATH echo 'export PATH=$PATH:~/edison-scripts' >> ~/.profile source ~/.profile
Then, run the following scripts:# Resize /boot -- we need the extra space to add an additional kernel resizeBoot.sh # Install pip, Python's package manager installPip.sh # Install MRAA, the low level skeleton library for IO communication on Galileo, Edison, and other platforms installMraa.sh
At root of command line:$ easy_install ouimeaux
wemo script will discover devices in your environment and turn switches on and off. To list devices:
And you should get the error I have.
There may be a way to update Python but I don't know what it is. We needed scipy to run on our device so I created an image with a miniconda install based on some link I found in the forum. Basically this is like a sandboxed install of Python that can coexist with the version in the roots. Do a search for Edison, miniconda and it should show up