Python gobject components missing from system.

1,213 views
Skip to first unread message

鄭暐勳

unread,
Oct 10, 2018, 9:57:13 AM10/10/18
to ns-3-users

Can someone tell me about this error?

I got error information when I tried to do "./bake.py show".

I've already tried remove and reinstall gi-cairo, gi, and pygraphviz many times, but it still not work.

Please help me about this!!!


Here is the command line information.



> gi-cairo - Missing

   >> Python gobject components missing from system.

   >> Try: "sudo apt-get install python-gi-cairo", if you have sudo rights.

 > libgoocanvas2 - OK

 > libxml2-dev - OK

 > llvm-dev - OK

 > pygobject - Missing

   >> Python gobject components missing from system.

   >> Try: "sudo apt-get install python-gi", if you have sudo rights.

 > pygraphviz - Missing

   >> The pygraphviz is not installed, try to install it.

   >> Try: "sudo apt-get install python-pygraphviz", if you have sudo rights.

 > python-dev - OK

 > qt - OK

 > setuptools - OK

pi@raspberrypi:~/bake $ sudo apt-get install python-gi-cairo python-gi python-pygraphviz

正在讀取套件清單... 完成

正在重建相依關係          

正在讀取狀態資料... 完成

python-gi is already the newest version (3.22.0-2).

python-gi-cairo is already the newest version (3.22.0-2).

python-pygraphviz is already the newest version (1.4~rc1-1).



I'll really appreciate if you can help to deal with this!

Thank you guys very much!

Tom Henderson

unread,
Oct 10, 2018, 10:20:11 AM10/10/18
to ns-3-...@googlegroups.com, 鄭暐勳
On 10/10/2018 06:57 AM, 鄭暐勳 wrote:
> Can someone tell me about this error?
>
> I got error information when I tried to do "./bake.py show".
>
> I've already tried remove and reinstall gi-cairo, gi, and pygraphviz
> many times, but it still not work.
>
> Please help me about this!!!
>
>
> Here is the command line information.
>
>
>
>> gi-cairo - Missing
>
>>> Python gobject components missing from system.
>
>>> Try: "sudo apt-get install python-gi-cairo", if you have sudo rights.
>
>> libgoocanvas2 - OK
>
>> libxml2-dev - OK
>
>> llvm-dev - OK
>
>> pygobject - Missing
>
>>> Python gobject components missing from system.
>
>>> Try: "sudo apt-get install python-gi", if you have sudo rights.
>
>> pygraphviz - Missing
>
>>> The pygraphviz is not installed, try to install it.
>
>>> Try: "sudo apt-get install python-pygraphviz", if you have sudo rights.
>
>> python-dev - OK
>
>> qt - OK
>
>> setuptools - OK
>
> *pi@raspberrypi*:*~/bake $*sudo apt-get install python-gi-cairo
> python-gi python-pygraphviz
>
> 正在讀取套件清單... 完成
>
> 正在重建相依關係
>
> 正在讀取狀態資料... 完成
>
> python-gi is already the newest version (3.22.0-2).
>
> python-gi-cairo is already the newest version (3.22.0-2).
>
> python-pygraphviz is already the newest version (1.4~rc1-1).
>
>
>
> I'll really appreciate if you can help to deal with this!

It looks like you are on an Ubuntu or Debian system. Can you please try
this for completeness, and try bake again?

apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo
python-pygraphviz python3-gi python3-gi-cairo python3-pygraphviz
gir1.2-gtk-3.0 ipython ipython3

鄭暐勳

unread,
Oct 10, 2018, 11:29:30 AM10/10/18
to ns-3-users

Dear Tom,


Thanks for your help!

Yes, I want to build NS-3 on raspberry 3 B+.

I tried your method, but it told me that I've already installed them.

Unfortunately,  it's still not work.


Here is the terminal information:


pi@raspberrypi:~/bake $ sudo apt-get install gir1.2-goocanvas-2.0 python-gi python-gi-cairo python-pygraphviz python3-gi python3-gi-cairo python3-pygraphviz gir1.2-gtk-3.0 ipython ipython3

正在讀取套件清單... 完成

正在重建相依關係          

正在讀取狀態資料... 完成

gir1.2-goocanvas-2.0 is already the newest version (2.0.2-2).

ipython is already the newest version (5.1.0-3).

ipython3 is already the newest version (5.1.0-3).

python-gi is already the newest version (3.22.0-2).

python-gi-cairo is already the newest version (3.22.0-2).

python-pygraphviz is already the newest version (1.4~rc1-1).

python3-gi is already the newest version (3.22.0-2).

python3-gi-cairo is already the newest version (3.22.0-2).

python3-pygraphviz is already the newest version (1.4~rc1-1).

gir1.2-gtk-3.0 is already the newest version (3.22.11-1+rpi3).

升級 0 個,新安裝 0 個,移除 0 個,有 0 個未被升級。

pi@raspberrypi:~/bake $ sudo python bake.py deploy

Downloading, building and installing the selected modules and dependencies.

Please, be patient, this may take a while!

 >> Searching for system dependency python-dev - OK

 >> Searching for system dependency libxml2-dev - OK

 >> Searching for system dependency llvm-dev - OK

 >> Searching for system dependency clang-dev - OK

 >> Downloading click-ns-3.25 - OK

 >> Downloading BRITE - OK

 >> Searching for system dependency qt - OK

 >> Searching for system dependency g++ - OK

 >> Searching for system dependency cxxfilt - OK

 >> Searching for system dependency setuptools - OK

 >> Searching for system dependency libgoocanvas2 - OK

 >> Searching for system dependency gi-cairo - Problem

 > Problem: Optional dependency, module "gi-cairo" not available

   This may reduce the  functionality of the final build. 

   However, bake will continue since "gi-cairo" is not an essential dependency.

   For more information call bake with -v or -vvv, for full verbose mode.


 >> Searching for system dependency pygobject - Problem

 > Problem: Optional dependency, module "pygobject" not available

   This may reduce the  functionality of the final build. 

   However, bake will continue since "pygobject" is not an essential dependency.

   For more information call bake with -v or -vvv, for full verbose mode.


 >> Searching for system dependency pygraphviz - Problem

 > Problem: Optional dependency, module "pygraphviz" not available

   This may reduce the  functionality of the final build. 

   However, bake will continue since "pygraphviz" is not an essential dependency.

   For more information call bake with -v or -vvv, for full verbose mode.


 >> Searching for system dependency automake - OK

 >> Searching for system dependency cmake - OK

 >> Downloading castxml-0.1+git98a626ec - OK

 >> Downloading openflow-ns-3.25 - OK

 >> Downloading netanim-3.108 - (Nothing to do, source directory already exists) - OK

 >> Downloading pybindgen-0.19.0.post4+ng823d8b2 (target directory:pybindgen) - (Nothing to do, source directory already exists) - OK

 >> Downloading pygccxml-1.9.1 - OK

 >> Downloading ns-3.29 - (Nothing to do, source directory already exists) - OK

 >> Building BRITE - OK

 >> Building click-ns-3.25 -         


OK

 >> Building pybindgen-0.19.0.post4+ng823d8b2 - OK

 >> Building castxml-0.1+git98a626ec - OK

 >> Building openflow-ns-3.25 - OK

 >> Building netanim-3.108 - Problem

 > Problem: Optional dependency, module "netanim-3.108" failed

   This may reduce the  functionality of the final build. 

   However, bake will continue since "netanim-3.108" is not an essential dependency.

   For more information call bake with -v or -vvv, for full verbose mode.


 >> Building pygccxml-1.9.1 - OK

 >> Building ns-3.29 - Problem

 > Error:  Critical dependency, module "ns-3.29" failed 

   For more information call Bake with --debug and/or -v, -vvv, for full verbose mode (bake --help)


Please feel free to give me some suggestions.

Thanks for your help again!

nada alzaben

unread,
Jan 30, 2019, 10:37:10 AM1/30/19
to ns-3-users
HI 
i have the same exact issue could you tell me how did you solve the problem 
I can't find the solution anywhere.

I appreciate your time

鄭東濬

unread,
Jan 30, 2019, 9:26:32 PM1/30/19
to ns-3-...@googlegroups.com

Hi,
I didn't solve that problem in the end, I'm not sure whether it is the problem of b+'s core or not.
I found other user's docker file on GitHub, they build in ubuntu14.0, and it could work, maybe you can search and try it.

I wish this information can help you to do your project.

nada alzaben <nial...@gmail.com> 於 2019年1月30日 週三 下午11:37寫道:
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+...@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages