s4hri/pyicub

module 'yarp' has no attribute 'Network'?

YANGGANG1971 opened this issue · 7 comments

In Python:
import yarp
yarp.Network.init()
from pyicub import *

And debug and error as follows.
image

Hi @YANGGANG1971 ,

could you please post the source of demo.py?

The content of demo.py is as follows.

import yarp
yarp.Network.init()
from pyicub import *

Are you sure yarp and pyicub are present in the PYTHONPATH?

Could you please report the output of the following lines?

import yarp
yarp

and

import pyicub
pyicub

I recorded the processing as follows. You can the errors from the video.
https://drive.google.com/open?id=1ZzCrz00Ppg_OZLcNOgjKzEfTFPadwAx6

Hi @YANGGANG1971

I suppose you've installed yarp using ubuntu packages and something is broken in the Python wrappers. Please try to install yarp from sources and see if you encounter the same issue. Since the issue is clearly related to yarp rather than pyicub I close this.

I followed the following tutorial and installed twice, but I encounter the same issue. May I ask where I can post this kind of issue?
http://wiki.icub.org/wiki/Linux:Installation_from_sources