bridge.begin hangs on Arduino Yun

Hi,

I'm starting to use the bridge feature of my Yun. Even a basic sketch example doesn't work. It seems that the bridge.begin() statement hangs for ever. Here is the code I'm testing:

#include <Process.h>

void setup() {
Serial.begin(9600);
while (!Serial);
Serial.println("starting");Serial.flush();
Bridge.begin();
Serial.println("started");Serial.flush();
}
void loop() {
// Do nothing here.
}

The output in the serial terminal is the following:
Starting

Any help more than welcome!
Thanks

Use a 60 seconds delay before bridge.begin()

delay(60000);

When linux boots, its not ready to initialize bridge, and te microcontroller boots so much faster than linux, thus the linux side will get stuck.

No change, same behavior.
It seems that the bridge is not running!
This command returns nothing: ps | grep bridge
The file /tmp/bridge.py-stderr.log is not created

Any suggestion?
Thanks

Solved by restarting with a fresh install...
Thanks

Hi.

Which version have you installed?

op2000:
Hi.

Which version have you installed?

Please upgrade your Yún - latest is 1.5.3

I already have this version and I still have the problem to communicate 34U4 with linino by using Bridge library.

op2000:
I already have this version and I still have the problem to communicate 34U4 with linino by using Bridge library.

Did you have Yun or Linino?

Yun

Linino

I have openWRT -Yún 1.5.3

OK,

After wasting lots of time on this subject, found the very trivial problem: PYTHON!

so the solution is easy:

  1. Expand your FS space with the SD card (or whatever)
  2. opkg:
    opkg update
    opkg remove python-base # noop, this one is not complete enough for the bridge.py
    opkg install python

Now you should have python -2.7 full edition
I also set, but don't know if it makes a difference:

export PYTHONHOME=/usr

Success!