Hi Chris,

Reviewboard is using the same version of python for which i have provided 
example as below

[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import P4

There are no Two version of p4python installed, how do i figure it out. i 
can see my site-packages contains following files after p4python build and 
install i.e P4.py, P4.pyc, P4.pyo, P4API.so


On Tuesday, April 9, 2013 12:45:35 AM UTC+5:30, Christian Hammond wrote:
>
> Is Review Board using the same version of Python? Any chance there are now 
> two copies of p4python installed?
>
> Christian
>
>
> On Apr 8, 2013, at 4:01, chuck j <cjerr...@gmail.com <javascript:>> wrote:
>
> Dear All, 
>
> This is very critical, I am still not able to add SSL enabled perforce 
> repository to reviewboard, Please help me.
>
> Since my machine was not having openssl 1.0.1, i need to build and install 
> this version of openssl.
>
> I followed the instruction from document, downloaded openssl 1.0.1e
>
> ./config --prefix=/usr/local --openssldir=/usr/local/openssl zlib 
> zlib-dynamic shared
> make 
> make test
> make install
>
> Then i did following step
>
> Edit /etc/ld.so.conf
>
> add to paths...
> /usr/local/lib64
>
> Update the run-time linker...
> # ldconfig
>
> verified with below command:
>
> ldd /usr/local/bin/openssl
>         libssl.so.1.0.0 => /usr/local/lib64/libssl.so.1.0.0 
> (0x00002b08a088c000)
>         libcrypto.so.1.0.0 => /usr/local/lib64/libcrypto.so.1.0.0 
> (0x00002b08a0af1000)
>         libdl.so.2 => /lib64/libdl.so.2 (0x0000003b2ac00000)
>         libc.so.6 => /lib64/libc.so.6 (0x0000003b2a400000)
>         /lib64/ld-linux-x86-64.so.2 (0x0000003b2a000000)
>
>
> /usr/local/bin/openssl version
>
> OpenSSL 1.0.1e 11 Feb 2013
>
>
> Then I build p4python with --ssl swtich.
>
> python setup.py build --apidir /root/work/src/p4api-2012.2.585708 --ssl 
> /usr/local/lib64
>
> API Release 2012.2
> running build
> running build_py
> creating build
> creating build/lib.linux-x86_64-2.7
> copying P4.py -> build/lib.linux-x86_64-2.7
> running build_ext
> building 'P4API' extension
> creating build/temp.linux-x86_64-2.7
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c P4API.cpp -o 
> build/temp.linux-x86_64-2.7/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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c PythonClientAPI.cpp -o 
> build/temp.linux-x86_64-2.7/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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c PythonClientUser.cpp -o 
> build/temp.linux-x86_64-2.7/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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c SpecMgr.cpp -o 
> build/temp.linux-x86_64-2.7/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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c P4Result.cpp -o 
> build/temp.linux-x86_64-2.7/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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c PythonMergeData.cpp -o 
> build/temp.linux-x86_64-2.7/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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c P4MapMaker.cpp -o 
> build/temp.linux-x86_64-2.7/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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c PythonSpecData.cpp -o 
> build/temp.linux-x86_64-2.7/PythonSpecData.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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c PythonMessage.cpp -o 
> build/temp.linux-x86_64-2.7/PythonMessage.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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c PythonActionMergeData.cpp -o 
> build/temp.linux-x86_64-2.7/PythonActionMergeData.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++
> gcc -pthread -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall 
> -Wstrict-prototypes -fPIC -DID_OS="LINUX26X86_64" -DID_REL="2012.2" 
> -DID_PATCH="549493" -DID_API="2012.2/585708" -DID_Y="2012" -DID_M="11" 
> -DID_D="05" -I/root/work/src/p4api-2012.2.585708 
> -I/root/work/src/p4api-2012.2.585708/include/p4 
> -I/usr/local/include/python2.7 -c PythonClientProgress.cpp -o 
> build/temp.linux-x86_64-2.7/PythonClientProgress.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++
> g++ -pthread -shared build/temp.linux-x86_64-2.7/P4API.o 
> build/temp.linux-x86_64-2.7/PythonClientAPI.o 
> build/temp.linux-x86_64-2.7/PythonClientUser.o 
> build/temp.linux-x86_64-2.7/SpecMgr.o 
> build/temp.linux-x86_64-2.7/P4Result.o 
> build/temp.linux-x86_64-2.7/PythonMergeData.o 
> build/temp.linux-x86_64-2.7/P4MapMaker.o 
> build/temp.linux-x86_64-2.7/PythonSpecData.o 
> build/temp.linux-x86_64-2.7/PythonMessage.o 
> build/temp.linux-x86_64-2.7/PythonActionMergeData.o 
> build/temp.linux-x86_64-2.7/PythonClientProgress.o 
> -L/root/work/src/p4api-2012.2.585708 
> -L/root/work/src/p4api-2012.2.585708/lib -L/usr/local/lib64 
> -L/usr/local/lib -lclient -lrpc -lsupp -lssl -lcrypto -lrt -lpython2.7 -o 
> build/lib.linux-x86_64-2.7/P4API.so
>
>
> -----
>
> python setup.py install --apidir /root/work/src/p4api-2012.2.585708 --ssl 
> /usr/local/lib64
> API Release 2012.2
> running install
> running build
> running build_py
> running build_ext
> running install_lib
> copying build/lib.linux-x86_64-2.7/P4API.so -> 
> /usr/local/lib/python2.7/site-packages
> running install_egg_info
> Removing 
> /usr/local/lib/python2.7/site-packages/p4python-2012.2.549493-py2.7.egg-info
> Writing 
> /usr/local/lib/python2.7/site-packages/p4python-2012.2.549493-py2.7.egg-info
>
> -----
>
> I tested with by connecting to ssl enabled perforce server. here are the 
> steps.
>
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import P4
> >>> p4=P4.P4(client="myclient", port="ssl:p4-server:19773")
> >>> print p4
> P4 [root@myclient ssl:p4-perforce:19773] disconnected
> >>> p4.connect()
> P4 [root@myclient ssl:p4-perforce:19773] connected
>
> Then i try to add this repository through reviewboard admin panel, i am 
> getting this error message
>
>  Please correct the error below.
>
>     The specified Perforce port includes ssl:, but the p4python library 
> was built without SSL support or the system library path is incorrect. 
>
> Do you still see any issue with p4python build and install.
>
> If i am able to connect ssl enabled perforce server through python using 
> P4 then, I guess reviewboard API should also be working accordingly, please 
> advice me what should be the issue here. This SSL feature is holding my 
> whole setup to complete.
>
> Please help to resolve this issue.
>
> let me know if you need any other log.
>
> -Chuck.
>
> -- 
> Want to help the Review Board project? Donate today at 
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to 
> reviewboard...@googlegroups.com <javascript:>
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en
> --- 
> You received this message because you are subscribed to the Google Groups 
> "reviewboard" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to reviewboard...@googlegroups.com <javascript:>.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"reviewboard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to