Hi Zhenquan,

Did you start PyMol with the "-R" flag so that it is running the xmlrpc
server?
You can verify this by looking in the PyMol console for text like this:
"xml-rpc server running on host localhost, port 9123"

-greg



On Wed, Jan 6, 2016 at 2:16 AM, Zhenquan Hu <zhqhu.s...@gmail.com> wrote:

> Dear all,
>
> Recently I tried to install RDKit on ubuntu-14.04/CentOS7.1. First I tried
> with the pre-build version, then compiled with the git source code. Neither
> could call the module Chem.PyMol.MolViewer().
> It looks like something wrong with xmlrpc, but I have no idea about the
> detail.
>
> Anyone knows why?
>
> best,
> Zhenquan
>
> test.py
> #==========================
> from rdkit.Chem import PyMol
> v = PyMol.MolViewer()
> #==========================
>
> python test.py
> #===================================================
> Traceback (most recent call last):
>   File "test.py", line 3, in <module>
>     v=PyMol.MolViewer()
>   File "/opt/rdkit/rdkit/Chem/PyMol.py", line 35, in __init__
>     serv.ping()
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1233, in __call__
>     return self.__send(self.__name, args)
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1587, in __request
>     verbose=self.__verbose
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1273, in request
>     return self.single_request(host, handler, request_body, verbose)
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1301, in single_request
>     self.send_content(h, request_body)
>   File "/usr/lib64/python2.7/xmlrpclib.py", line 1448, in send_content
>     connection.endheaders(request_body)
>   File "/usr/lib64/python2.7/httplib.py", line 975, in endheaders
>     self._send_output(message_body)
>   File "/usr/lib64/python2.7/httplib.py", line 835, in _send_output
>     self.send(msg)
>   File "/usr/lib64/python2.7/httplib.py", line 797, in send
>     self.connect()
>   File "/usr/lib64/python2.7/httplib.py", line 778, in connect
>     self.timeout, self.source_address)
>   File "/usr/lib64/python2.7/socket.py", line 571, in create_connection
>     raise err
> socket.error: [Errno 111] Connection refused
> #=====================================================
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> Rdkit-devel mailing list
> Rdkit-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/rdkit-devel
>
>
------------------------------------------------------------------------------
_______________________________________________
Rdkit-devel mailing list
Rdkit-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rdkit-devel

Reply via email to