Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
1,594 Views

Trouble using WeMo

Hello,

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.

10 Replies
Highlighted
Employee
40 Views

Hello floridianfisher,

Which package are you using? Where did you get it? And, how did you install it?

What OS do you use on your laptop?

Peter.

Highlighted
New Contributor I
40 Views

Hello Peter,

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,

Glenn

Highlighted
New Contributor I
40 Views

Here is a screenshot of the whole error.

Highlighted
Employee
40 Views

I'm not able to install it that way. Could you please explain me step by step what you have tried so far?

Peter.

0 Kudos
Highlighted
New Contributor I
40 Views

Hello Peter,

Here are the steps I used:

Add Alex_T's repository

To configure the repository, add the following lines to /etc/opkg/base-feeds.conf:

src/gz all http://repo.opkg.net/edison/repo/all http://repo.opkg.net/edison/repo/all src/gz edison

http://repo.opkg.net/edison/repo/edison http://repo.opkg.net/edison/repo/edison src/gz core2-32

http://repo.opkg.net/edison/repo/core2-32 http://repo.opkg.net/edison/repo/core2-32

Update the package manager and install the first package we need:

opkg update

opkg install git

Edison 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

Then run:

The wemo script will discover devices in your environment and turn switches on and off. To list devices:

$ wemo list

And you should get the error I have.

0 Kudos
Highlighted
New Contributor I
40 Views

You can also follow the steps before configuring sound here https://github.com/drejkim/led-speech-edison drejkim/led-speech-edison · GitHub

0 Kudos
Highlighted
New Contributor I
40 Views

Hello Peter,

Do you have any insights to how I can resolve this problem? I really want to get my program working.

0 Kudos
Highlighted
New Contributor I
40 Views

I think this may be your python version, this error doesn't happen with 2.7.10

jeff

0 Kudos
Highlighted
New Contributor I
40 Views

Thanks Jeff. Is there a guide anywhere that explains how to upgrade to python 2.7.10 on an Edison?

Best,

 

Glenn
0 Kudos
Highlighted
New Contributor I
40 Views

Hi,

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

Jeff

0 Kudos