1060: easy_install P4PythonInstaller *Error*

Bob.H*****@gmai***** (Google Code) (Is this you? Claim this profile.)
July 26, 2009
What's the URL of the page containing the problem?
NA

What steps will reproduce the problem?
1.On Ubuntu execute easy_install P4PythonInstaller
2.
3.

What is the expected output? No error during install.

What do you see instead?
bl@elvis:~$ sudo easy_install P4PythonInstaller
Searching for P4PythonInstaller
Reading http://pypi.python.org/simple/P4PythonInstaller/
Reading http://www.review-board.org/
Best match: P4PythonInstaller 0.2
Downloading
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-0.2
error: Unexpected HTML page found at
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-0.2


What operating system are you using? 
Ubuntu

What browser?
NA
chipx86
#1 chipx86
What version of setuptools do you have?

This is working fine for me.
  • +NeedInfo
#2 Bob.H*****@gmai***** (Google Code) (Is this you? Claim this profile.)
I have 0.6c8-0ubuntu2 installed.
#5 Bob.H*****@gmai***** (Google Code) (Is this you? Claim this profile.)
In attempt to work around this I wiped my virtual machine and installed Ubuntu 9.04
and tried to reinstall ReviewBoard. Now I get a different issue when running sudo
easy_install P4PythonInstaller. Shall I open a new issue?


thunder@whitetip:~$ sudo easy_install P4PythonInstaller
[sudo] password for thunder: 
Searching for P4PythonInstaller
Reading http://pypi.python.org/simple/P4PythonInstaller/
Reading http://www.review-board.org/
Best match: P4PythonInstaller 0.2
Downloading
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-0.2
Doing subversion checkout from
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller to
/tmp/easy_install-PIVOWg/P4PythonInstaller
Processing P4PythonInstaller
Running setup.py -q bdist_egg --dist-dir
/tmp/easy_install-PIVOWg/P4PythonInstaller/egg-dist-tmp-SU0ERv
Downloading p4api.tgz...
Downloading p4python.tgz...
Extracting p4api.tgz...
Extracting p4python.tgz...
API Release 2008.2
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
copying P4.py -> build/lib.linux-i686-2.6
running build_ext
building 'P4API' extension
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
-fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2"
-DID_Y="2009" -DID_M="01" -DID_D="30"
-I/tmp/easy_install-PIVOWg/P4PythonInstaller/temp/tmpqfmW2M/p4api-2008.2.179173
-I/tmp/easy_install-PIVOWg/P4PythonInstaller/temp/tmpqfmW2M/p4api-2008.2.179173/include/p4
-I/usr/include/python2.6 -c P4API.cpp -o build/temp.linux-i686-2.6/P4API.o -DOS_LINUX
-DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC
but not for C++
P4API.cpp:39:20: error: Python.h: No such file or directory
P4API.cpp:40:26: error: structmember.h: No such file or directory
In file included from P4API.cpp:47:
P4Result.h:44: error: ‘PyObject’ has not been declared
P4Result.h:48: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4Result.h:48: error: expected ‘;’ before ‘*’ token
P4Result.h:49: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4Result.h:49: error: expected ‘;’ before ‘*’ token
P4Result.h:50: error: expected `;' before ‘PyObject’
P4Result.h:50: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4Result.h:50: error: expected ‘;’ before ‘*’ token
P4Result.h:53: error: expected `;' before ‘void’
P4Result.h:64: error: ‘PyObject’ has not been declared
P4Result.h:65: error: ‘PyObject’ has not been declared
P4Result.h:66: error: ‘PyObject’ has not been declared
P4Result.h:68: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4Result.h:68: error: expected ‘;’ before ‘*’ token
P4Result.h:69: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4Result.h:69: error: expected ‘;’ before ‘*’ token
P4Result.h:70: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4Result.h:70: error: expected ‘;’ before ‘*’ token
In file included from P4API.cpp:48:
SpecMgr.h:64: error: ISO C++ forbids declaration of ‘PyObject’ with no type
SpecMgr.h:64: error: expected ‘;’ before ‘*’ token
SpecMgr.h:72: error: ‘PyObject’ has not been declared
SpecMgr.h:77: error: ISO C++ forbids declaration of ‘PyObject’ with no type
SpecMgr.h:77: error: expected ‘;’ before ‘*’ token
SpecMgr.h:85: error: ISO C++ forbids declaration of ‘PyObject’ with no type
SpecMgr.h:85: error: expected ‘;’ before ‘*’ token
SpecMgr.h:92: error: ISO C++ forbids declaration of ‘PyObject’ with no type
SpecMgr.h:92: error: expected ‘;’ before ‘*’ token
SpecMgr.h:97: error: ‘PyObject’ has not been declared
SpecMgr.h:98: error: ISO C++ forbids declaration of ‘PyObject’ with no type
SpecMgr.h:98: error: expected ‘;’ before ‘*’ token
SpecMgr.h:99: error: ISO C++ forbids declaration of ‘PyObject’ with no type
SpecMgr.h:99: error: expected ‘;’ before ‘*’ token
In file included from P4API.cpp:49:
PythonClientUser.h:64: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientUser.h:64: error: expected ‘;’ before ‘*’ token
PythonClientUser.h:65: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientUser.h:65: error: expected ‘;’ before ‘*’ token
PythonClientUser.h:67: error: expected `;' before ‘PyObject’
PythonClientUser.h:67: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientUser.h:67: error: expected ‘;’ before ‘*’ token
PythonClientUser.h:68: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientUser.h:68: error: expected ‘;’ before ‘*’ token
PythonClientUser.h:70: error: expected `;' before ‘void’
PythonClientUser.h:80: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientUser.h:80: error: expected ‘;’ before ‘*’ token
PythonClientUser.h:86: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientUser.h:86: error: expected ‘;’ before ‘*’ token
PythonClientUser.h:87: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientUser.h:87: error: expected ‘;’ before ‘*’ token
In file included from P4API.cpp:50:
PythonClientAPI.h:53: error: ‘PyObject’ has not been declared
PythonClientAPI.h:54: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:54: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:72: error: ‘objgetter’ does not name a type
PythonClientAPI.h:133: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:133: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:134: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:134: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:135: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:135: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:138: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:138: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:139: error: ‘PyObject’ has not been declared
PythonClientAPI.h:140: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:140: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:142: error: ‘PyObject’ has not been declared
PythonClientAPI.h:143: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:143: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:146: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:146: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:147: error: expected `;' before ‘PyObject’
PythonClientAPI.h:147: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:147: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:151: error: expected `;' before ‘PyObject’
PythonClientAPI.h:151: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:151: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:154: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:154: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:155: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:155: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:156: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonClientAPI.h:156: error: expected ‘;’ before ‘*’ token
PythonClientAPI.h:179: error: ‘objgetter’ does not name a type
In file included from P4API.cpp:51:
PythonMergeData.h:47: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:47: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:48: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:48: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:49: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:49: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:51: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:51: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:52: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:52: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:53: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:53: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:54: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:54: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:56: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:56: error: expected ‘;’ before ‘*’ token
PythonMergeData.h:58: error: ISO C++ forbids declaration of ‘PyObject’ with no type
PythonMergeData.h:58: error: expected ‘;’ before ‘*’ token
In file included from P4API.cpp:52:
P4MapMaker.h:48: error: ‘PyObject’ has not been declared
P4MapMaker.h:49: error: ‘PyObject’ has not been declared
P4MapMaker.h:49: error: ‘PyObject’ has not been declared
P4MapMaker.h:54: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4MapMaker.h:54: error: expected ‘;’ before ‘*’ token
P4MapMaker.h:55: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4MapMaker.h:55: error: expected ‘;’ before ‘*’ token
P4MapMaker.h:56: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4MapMaker.h:56: error: expected ‘;’ before ‘*’ token
P4MapMaker.h:57: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4MapMaker.h:57: error: expected ‘;’ before ‘*’ token
P4MapMaker.h:59: error: ISO C++ forbids declaration of ‘PyObject’ with no type
P4MapMaker.h:59: error: expected ‘;’ before ‘*’ token
In file included from P4API.cpp:53:
PythonTypes.h:42: error: ‘PyObject_HEAD’ does not name a type
PythonTypes.h:48: error: ‘PyObject_HEAD’ does not name a type
PythonTypes.h:54: error: ‘PyObject_HEAD’ does not name a type
PythonTypes.h:58: error: ‘PyTypeObject’ does not name a type
PythonTypes.h:59: error: ‘PyTypeObject’ does not name a type
PythonTypes.h:60: error: expected initializer before ‘*’ token
P4API.cpp:73: error: expected constructor, destructor, or type conversion before ‘*’
token
P4API.cpp: In function ‘void P4Adapter_dealloc(P4Adapter*)’:
P4API.cpp:81: error: ‘struct P4Adapter’ has no member named ‘clientAPI’
P4API.cpp:82: error: ‘struct P4Adapter’ has no member named ‘ob_type’
P4API.cpp:82: error: ‘PyObject’ was not declared in this scope
P4API.cpp:82: error: expected primary-expression before ‘)’ token
P4API.cpp: At global scope:
P4API.cpp:88: error: expected initializer before ‘*’ token
P4API.cpp:64: warning: ‘ident’ defined but not used
P4API.cpp:79: warning: ‘void P4Adapter_dealloc(P4Adapter*)’ defined but not used
error: command 'gcc' failed with exit status 1
No eggs found in /tmp/easy_install-PIVOWg/P4PythonInstaller/egg-dist-tmp-SU0ERv
(setup script problem?)
thunder@whitetip:~$
#6 Bob.H*****@gmai***** (Google Code) (Is this you? Claim this profile.)
Is anyone else able to produce this?
chipx86
#7 chipx86
You need to install the Python development headers for your version.

sudo apt-get install python-dev
#8 sascha*******@gmai***** (Google Code) (Is this you? Claim this profile.)
I have the same problem as in comment #5 and I have python-dev installed. (Ubuntu
Jaunty x86_64)
#9 sshe****@gmai***** (Google Code) (Is this you? Claim this profile.)
I had exactly the same compile problem on Jaunty as #5 and can confirm that all of
the _compile_ problems went away after installing the python-dev package.  Now I seem
to have an install problem.

Not sure if it matters, but I'm using version 0.6c9-0ubuntu4 of python-setuptools.

Here's the tail end of the output (full output attached)
...
running install_lib
copying build/lib.linux-i686-2.6/P4API.so -> /usr/local/lib/python2.6/dist-packages
copying build/lib.linux-i686-2.6/P4.py -> /usr/local/lib/python2.6/dist-packages
byte-compiling /usr/local/lib/python2.6/dist-packages/P4.py to P4.pyc
running install_egg_info
Writing /usr/local/lib/python2.6/dist-packages/P4Python-2008.2.egg-info
No eggs found in /tmp/easy_install-_yLwDr/P4PythonInstaller/egg-dist-tmp-XXeYEN
(setup script problem?)
  • +
    $ sudo easy_install P4PythonInstaller
    Searching for P4PythonInstaller
    Reading http://pypi.python.org/simple/P4PythonInstaller/
    Reading http://www.review-board.org/
    Best match: P4PythonInstaller 0.2
    Downloading http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-0.2
    Doing subversion checkout from http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller to /tmp/easy_install-_yLwDr/P4PythonInstaller
    Processing P4PythonInstaller
    Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-_yLwDr/P4PythonInstaller/egg-dist-tmp-XXeYEN
    Downloading p4api.tgz...
    Downloading p4python.tgz...
    Extracting p4api.tgz...
    Extracting p4python.tgz...
    API Release 2008.2
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-i686-2.6
    copying P4.py -> build/lib.linux-i686-2.6
    running build_ext
    building 'P4API' extension
    creating build/temp.linux-i686-2.6
    gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC
#10 thulasi*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Does Any one have soution for this?
error: Unexpected HTML page found at
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-
0.2
#11 eric****@gmai***** (Google Code) (Is this you? Claim this profile.)
thulasibhaskar: You probably need to upgrade your version of setuptools.  Supporting
SVN checkouts was added in 0.6c9.
#12 Bhaska*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Does Any one have soution for this?
error: Unexpected HTML page found at
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-
0.2

I am stuck.

Pleae help
chipx86
#13 chipx86
As Eric indicated, the problem is your version of setuptools is too old.

Try:

   easy_install -U setuptools

Then try installing P4PythonInstaller.
#14 Bhaska*******@gmai***** (Google Code) (Is this you? Claim this profile.)
After updaing the setup tools 

installing P4PythonInstaller went thru. Finally I recevied this message. 

What is this stands for ??

No eggs found in /tmp/easy_install-PUeHpS/P4PythonInstaller/egg-dist-tmp-0Xl7Ic 
(setup script problem?)

Thanks
bhaskar 
david
#15 david
  • -NeedInfo
    +ThirdParty
#16 jing****@gmai***** (Google Code) (Is this you? Claim this profile.)
I am also seeing this issue:

running install_egg_info
Removing /usr/lib/python2.5/site-packages/P4Python-2008.2.egg-info
Writing /usr/lib/python2.5/site-packages/P4Python-2008.2.egg-info
No eggs found in /tmp/easy_install-Q_tDQ3/P4PythonInstaller/egg-dist-tmp-dJoxhK
(setup script problem?)
chipx86
#17 chipx86
That's not actually an error. It's just a byproduct of how this installer works. It
installs a separate Python package, and never installs itself. You can safely ignore
that.
#18 jing****@gmai***** (Google Code) (Is this you? Claim this profile.)
Ahh, thanks for the clarification!
#19 hbe****@gmai***** (Google Code) (Is this you? Claim this profile.)
Could someone *please* help?!

I am getting a similar error after following all the upgrade infomation.  Output of
install follows;

sudo easy_install P4PythonInstaller
Searching for P4PythonInstaller
Reading http://pypi.python.org/simple/P4PythonInstaller/
Reading http://www.review-board.org/
Best match: P4PythonInstaller 0.2
Downloading
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-0.2
Doing subversion checkout from
http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller to
/tmp/easy_install-AdZcaA/P4PythonInstaller
Processing P4PythonInstaller
Running setup.py -q bdist_egg --dist-dir
/tmp/easy_install-AdZcaA/P4PythonInstaller/egg-dist-tmp-a3Ih8b
Downloading p4api.tgz...
Downloading p4python.tgz...
Extracting p4api.tgz...
Extracting p4python.tgz...
API Release 2008.2
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
copying P4.py -> build/lib.linux-i686-2.6
running build_ext
building 'P4API' extension
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes
-fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2"
-DID_Y="2009" -DID_M="01" -DID_D="30"
-I/tmp/easy_install-AdZcaA/P4PythonInstaller/temp/tmpepD11P/p4api-2008.2.199044
-I/tmp/easy_install-AdZcaA/P4PythonInstaller/temp/tmpepD11P/p4api-2008.2.199044/include/p4
-I/usr/include/python2.6 -c P4API.cpp -o build/temp.linux-i686-2.6/P4API.o -DOS_LINUX
-DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
gcc: error trying to exec 'cc1plus': execvp: No such file or directory
error: command 'gcc' failed with exit status 1
No eggs found in /tmp/easy_install-AdZcaA/P4PythonInstaller/egg-dist-tmp-a3Ih8b
(setup script problem?)
david
#20 david
The error you just posted looks like gcc isn't fully installed. Maybe you're missing 
C++ compilers?
#21 hbe****@gmai***** (Google Code) (Is this you? Claim this profile.)
Trowbrds, 

the gcc was installed but not the g++.  I installed that and now everythign works.
#22 gi.sre******@gmai***** (Google Code) (Is this you? Claim this profile.)
all my compile problems solved
after running

sudo apt-get install python-dev
sudo apt-get install g++

#23 venu.at*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Hi, 

I tried all the above mentioned steps. I still get the below error. Can you please advise?


root@venu-host:~# easy_install P4PythonInstaller
install_dir /usr/local/lib/python2.6/dist-packages/
Searching for P4PythonInstaller
Reading http://pypi.python.org/simple/P4PythonInstaller/
Reading http://www.review-board.org/
Best match: P4PythonInstaller 0.2
Downloading http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-0.2
Doing subversion checkout from http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller to /tmp/easy_install-KnHwxm/P4PythonInstaller
Processing P4PythonInstaller
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-KnHwxm/P4PythonInstaller/egg-dist-tmp-KnAcQa
Downloading p4api.tgz...
Downloading p4python.tgz...
Extracting p4api.tgz...
Extracting p4python.tgz...
API Release 2008.2
running install
running build
running build_py
creating build
creating build/lib.linux-i686-2.6
copying P4.py -> build/lib.linux-i686-2.6
running build_ext
building 'P4API' extension
creating build/temp.linux-i686-2.6
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/include/p4 -I/usr/include/python2.6 -c P4API.cpp -o build/temp.linux-i686-2.6/P4API.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/include/p4 -I/usr/include/python2.6 -c PythonClientAPI.cpp -o build/temp.linux-i686-2.6/PythonClientAPI.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/include/p4 -I/usr/include/python2.6 -c PythonClientUser.cpp -o build/temp.linux-i686-2.6/PythonClientUser.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
PythonClientUser.cpp: In member function ‘virtual int PythonClientUser::Resolve(ClientMerge*, Error*)’:
PythonClientUser.cpp:423: warning: deprecated conversion from string constant to ‘char*’
PythonClientUser.cpp:423: warning: deprecated conversion from string constant to ‘char*’
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/include/p4 -I/usr/include/python2.6 -c SpecMgr.cpp -o build/temp.linux-i686-2.6/SpecMgr.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
SpecMgr.cpp: In member function ‘PyObject* SpecMgr::NewSpec(StrPtr*)’:
SpecMgr.cpp:591: warning: deprecated conversion from string constant to ‘char*’
SpecMgr.cpp:591: warning: deprecated conversion from string constant to ‘char*’
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/include/p4 -I/usr/include/python2.6 -c P4Result.cpp -o build/temp.linux-i686-2.6/P4Result.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
P4Result.cpp: In member function ‘void P4Result::Fmt(const char*, PyObject*, StrBuf&)’:
P4Result.cpp:189: warning: deprecated conversion from string constant to ‘char*’
P4Result.cpp:189: warning: deprecated conversion from string constant to ‘char*’
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/include/p4 -I/usr/include/python2.6 -c PythonMergeData.cpp -o build/temp.linux-i686-2.6/PythonMergeData.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -I/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/include/p4 -I/usr/include/python2.6 -c P4MapMaker.cpp -o build/temp.linux-i686-2.6/P4MapMaker.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86 -DOS_LINUX26X86
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-i686-2.6/P4API.o build/temp.linux-i686-2.6/PythonClientAPI.o build/temp.linux-i686-2.6/PythonClientUser.o build/temp.linux-i686-2.6/SpecMgr.o build/temp.linux-i686-2.6/P4Result.o build/temp.linux-i686-2.6/PythonMergeData.o build/temp.linux-i686-2.6/P4MapMaker.o -L/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044 -L/tmp/easy_install-KnHwxm/P4PythonInstaller/temp/tmpDit7Lx/p4api-2008.2.199044/lib -lclient -lrpc -lsupp -o build/lib.linux-i686-2.6/P4API.so
running install_lib
copying build/lib.linux-i686-2.6/P4API.so -> /usr/local/lib/python2.6/dist-packages
running install_egg_info
Removing /usr/local/lib/python2.6/dist-packages/P4Python-2008.2.egg-info
Writing /usr/local/lib/python2.6/dist-packages/P4Python-2008.2.egg-info
No eggs found in /tmp/easy_install-KnHwxm/P4PythonInstaller/egg-dist-tmp-KnAcQa (setup script problem?)

Regards,
Venu
chipx86
#24 chipx86
Venu, that's not an error. You can ignore that. That egg doesn't actually install. It just gets the right installer and then installs that (P4Python).
#25 venu.at*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Thanks Chipx86, Does that mean P4PythonInsatller has successfully completed its installation? Because, I want to have P4 to be used as a source controller for ReviewBoard. Please do let me know will this error will not stop me from continuing on the P4 usage for ReviewBoard? or should I take some other path.
chipx86
#26 chipx86
It looks like it installed correctly, from what I can tell.
#27 parulg******@gmai***** (Google Code) (Is this you? Claim this profile.)
I am trying to install P4PythonInstaller in pyhton3.2.2 :
/path/to/ins_dir/python/v3.2.2/bin/easy_install P4PythonInstaller..

but it fails at end by giving this error : 
.
.
.
File "/path/to/ins_dir/python/v3.2.2/lib/python3.2/site-packages/distribute-0.6.25-py3.2.egg/setuptools/sandbox.py", line 73, in run
    return func()
  File "/path/to/ins_dir/python/v3.2.2/lib/python3.2/site-packages/distribute-0.6.25-py3.2.egg/setuptools/sandbox.py", line 33, in <lambda>
    ).read(), "setup.py", 'exec'),
  File "setup.py", line 30
    print "Downloading %s..." % filename
                            ^
SyntaxError: invalid syntax
---------------------------

What could be the reason of this error ?
chipx86
#28 chipx86
You need Python 2.x. Python 3 is not supported.
#29 parulg******@gmai***** (Google Code) (Is this you? Claim this profile.)
Running cmd: /path/to/ins_dir/python/v2.6.2/bin/easy_install P4PythonInstaller
Searching for P4PythonInstaller
Reading http://pypi.python.org/simple/P4PythonInstaller/
Reading http://www.review-board.org/
Best match: P4PythonInstaller 0.2
Downloading http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller#egg=P4PythonInstaller-0.2
Doing subversion checkout from http://reviewboard.googlecode.com/svn/trunk/P4PythonInstaller to /tmp/easy_install-tqNnbs/P4PythonInstaller
Processing P4PythonInstaller
Running setup.py -q bdist_egg --dist-dir /tmp/easy_install-tqNnbs/P4PythonInstaller/egg-dist-tmp-WmA4Jy
API Release 2008.2
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.6
copying P4.py -> build/lib.linux-x86_64-2.6
running build_ext
building 'P4API' extension
creating build/temp.linux-x86_64-2.6
/path/to/ins_dir/gcc/v4.4.4/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/include/p4 -I/path/to/ins_dir/python/v2.6.2/include/python2.6 -c P4API.cpp -o build/temp.linux-x86_64-2.6/P4API.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
/path/to/ins_dir/gcc/v4.4.4/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/include/p4 -I/path/to/ins_dir/python/v2.6.2/include/python2.6 -c PythonClientAPI.cpp -o build/temp.linux-x86_64-2.6/PythonClientAPI.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
/path/to/ins_dir/gcc/v4.4.4/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/include/p4 -I/path/to/ins_dir/python/v2.6.2/include/python2.6 -c PythonClientUser.cpp -o build/temp.linux-x86_64-2.6/PythonClientUser.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
PythonClientUser.cpp: In member function 'virtual int PythonClientUser::Resolve(ClientMerge*, Error*)':
PythonClientUser.cpp:423: warning: deprecated conversion from string constant to 'char*'
PythonClientUser.cpp:423: warning: deprecated conversion from string constant to 'char*'
/path/to/ins_dir/gcc/v4.4.4/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/include/p4 -I/path/to/ins_dir/python/v2.6.2/include/python2.6 -c SpecMgr.cpp -o build/temp.linux-x86_64-2.6/SpecMgr.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
SpecMgr.cpp: In member function 'PyObject* SpecMgr::NewSpec(StrPtr*)':
SpecMgr.cpp:591: warning: deprecated conversion from string constant to 'char*'
SpecMgr.cpp:591: warning: deprecated conversion from string constant to 'char*'
/path/to/ins_dir/gcc/v4.4.4/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/include/p4 -I/path/to/ins_dir/python/v2.6.2/include/python2.6 -c P4Result.cpp -o build/temp.linux-x86_64-2.6/P4Result.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
P4Result.cpp: In destructor 'P4Result::~P4Result()':
P4Result.cpp:49: warning: suggest explicit braces to avoid ambiguous 'else'
P4Result.cpp:52: warning: suggest explicit braces to avoid ambiguous 'else'
P4Result.cpp:55: warning: suggest explicit braces to avoid ambiguous 'else'
P4Result.cpp: In member function 'void P4Result::Reset()':
P4Result.cpp:71: warning: suggest explicit braces to avoid ambiguous 'else'
P4Result.cpp:75: warning: suggest explicit braces to avoid ambiguous 'else'
P4Result.cpp: In member function 'void P4Result::Fmt(const char*, PyObject*, StrBuf&)':
P4Result.cpp:189: warning: deprecated conversion from string constant to 'char*'
P4Result.cpp:189: warning: deprecated conversion from string constant to 'char*'
/path/to/ins_dir/gcc/v4.4.4/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/include/p4 -I/path/to/ins_dir/python/v2.6.2/include/python2.6 -c PythonMergeData.cpp -o build/temp.linux-x86_64-2.6/PythonMergeData.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
/path/to/ins_dir/gcc/v4.4.4/bin/gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2008.2" -DID_PATCH="187026" -DID_API="2008.2" -DID_Y="2009" -DID_M="01" -DID_D="30" -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -I/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/include/p4 -I/path/to/ins_dir/python/v2.6.2/include/python2.6 -c P4MapMaker.cpp -o build/temp.linux-x86_64-2.6/P4MapMaker.o -DOS_LINUX -DOS_LINUX26 -DOS_LINUXX86_64 -DOS_LINUX26X86_64
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for Ada/C/ObjC but not for C++
/path/to/ins_dir/gcc/v4.4.4/bin/g++ -pthread -shared build/temp.linux-x86_64-2.6/P4API.o build/temp.linux-x86_64-2.6/PythonClientAPI.o build/temp.linux-x86_64-2.6/PythonClientUser.o build/temp.linux-x86_64-2.6/SpecMgr.o build/temp.linux-x86_64-2.6/P4Result.o build/temp.linux-x86_64-2.6/PythonMergeData.o build/temp.linux-x86_64-2.6/P4MapMaker.o -L/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044 -L/tmp/easy_install-tqNnbs/P4PythonInstaller/temp/tmpHZxbON/p4api-2008.2.199044/lib -lclient -lrpc -lsupp -o build/lib.linux-x86_64-2.6/P4API.so
running install_lib
copying build/lib.linux-x86_64-2.6/P4.py -> /path/to/ins_dir/python/v2.6.2/lib/python2.6/site-packages
copying build/lib.linux-x86_64-2.6/P4API.so -> /path/to/ins_dir/python/v2.6.2/lib/python2.6/site-packages
byte-compiling /path/to/ins_dir/python/v2.6.2/lib/python2.6/site-packages/P4.py to P4.pyc
running install_egg_info
Writing /path/to/ins_dir/python/v2.6.2/lib/python2.6/site-packages/P4Python-2008.2-py2.6.egg-info
Downloading p4api.tgz...
Downloading p4python.tgz...
Extracting p4api.tgz...
Extracting p4python.tgz...
No eggs found in /tmp/easy_install-tqNnbs/P4PythonInstaller/egg-dist-tmp-WmA4Jy (setup script problem?)

Does it install successfully? 
chipx86
#30 chipx86
Well, lots of warnings, but it looks like it worked.
#31 justin.********@gmai***** (Google Code) (Is this you? Claim this profile.)
I'm also getting the "Unexpected HTML page" message, even though I have updated setuptools. Any ideas what might be causing this?

[root@dev bin]# ./easy_install-2.7 ReviewBoard
Searching for ReviewBoard
Reading http://pypi.python.org/simple/ReviewBoard/
Reading http://www.reviewboard.org/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.7/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.6/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.5/
Reading http://downloads.reviewboard.org/releases/ReviewBoard/1.0/
Reading http://www.review-board.org/
Reading http://downloads.review-board.org/releases/
Reading http://downloads.review-board.org/releases/ReviewBoard/1.0/
Best match: ReviewBoard 1.7.7.1
Downloading http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ReviewBoard-1.7.7.1-py2.7.egg
error: Unexpected HTML page found at http://downloads.reviewboard.org/releases/ReviewBoard/1.7/ReviewBoard-1.7.7.1-py2.7.egg
#32 karthi******@gmai***** (Google Code) (Is this you? Claim this profile.)
i get an error like this:

# easy_install P4PythonInstaller
Searching for P4PythonInstaller
Reading https://pypi.python.org/simple/P4PythonInstaller/
Best match: P4PythonInstaller 0.3
Downloading http://github.com/beanbaginc/P4PythonInstaller/tarball/master#egg=P4PythonInstaller-0.3
Processing master
Writing /tmp/easy_install-77reM6/beanbaginc-P4PythonInstaller-9fa4fcf/setup.cfg
Running beanbaginc-P4PythonInstaller-9fa4fcf/setup.py -q bdist_egg --dist-dir /tmp/easy_install-77reM6/beanbaginc-P4PythonInstaller-9fa4fcf/egg-dist-tmp-SFiKaI
error: [Errno 104] Connection reset by peer

i am not using sudo.