webtoo
Posts: 3
Joined: Wed May 01, 2013 2:32 am

error in pysubnettree

Wed May 01, 2013 2:41 am

I encountered error during setup of pysubnettree:
[email protected]:/opt/pysubnettree# python setup.py install
running install
running build
running build_py
file SubnetTree.py (for module SubnetTree) not found
file SubnetTree.py (for module SubnetTree) not found
running build_ext
building '_SubnetTree' extension
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fno-strict-aliasing -fPIC -I/usr/include/python2.7 -c SubnetTree.cc -o build/temp.linux-armv6l-2.7/SubnetTree.o
cc1plus: warning: command line option â-Wstrict-prototypesâ is valid for Ada/C/ObjC but not for C++ [enabled by default]
In file included from SubnetTree.cc:1:0:
SubnetTree.h:2:20: fatal error: Python.h: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

timhoffman
Posts: 85
Joined: Sat Nov 05, 2011 11:31 pm

Re: error in pysubnettree

Wed May 01, 2013 10:23 am

You don't have all the files for compiliing python libs.

sudo apt-get install python-dev

webtoo
Posts: 3
Joined: Wed May 01, 2013 2:32 am

Re: error in pysubnettree

Fri May 03, 2013 10:08 am

timhoffman wrote:You don't have all the files for compiliing python libs.

sudo apt-get install python-dev

It's works! thanks

Return to “Python”

Who is online

Users browsing this forum: No registered users and 7 guests