Jul-03-2018, 05:06 PM
No it did not work out.
I installed Wordpress on my machine using LAMP stack from the command prompt on my Linux Mint 18.3. My localhost host address is 192.168.0.105 and my site is on 192.168.0.105/wordpress/. I dont know if sharing these IPs is considered good or bad so i've been changing 192.168.0.105 to 'localhost' when posting the outputs here.
I also did a
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
sam@sam - H81M - S ~ $ python3 - m venv env sam@sam - H81M - S ~ $ source . / env / bin / activate (env) sam@sam - H81M - S ~ $ python3 Python 3.5 . 2 (default, Nov 23 2017 , 16 : 37 : 01 ) [GCC 5.4 . 0 20160609 ] on linux Type "help" , "copyright" , "credits" or "license" for more information. >>> from wordpress_xmlrpc import Client, WordPressPost >>> from wordpress_xmlrpc.methods.taxonomies import * >>> from wordpress_xmlrpc.methods.posts import * >>> from wordpress_xmlrpc.methods.users import * >>> from wordpress_xmlrpc.methods import * >>> wp_username = 'admin' >>> wp_password = '######' >>> wp = Client(wp_url, wp_username, wp_password) |
Error:Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/sam/env/lib/python3.5/site-packages/wordpress_xmlrpc/base.py", line 24, in __init__
self.supported_methods = self.server.mt.supportedMethods()
File "/usr/lib/python3.5/xmlrpc/client.py", line 1092, in __call__
return self.__send(self.__name, args)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1432, in __request
verbose=self.__verbose
File "/usr/lib/python3.5/xmlrpc/client.py", line 1134, in request
return self.single_request(host, handler, request_body, verbose)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1150, in single_request
return self.parse_response(resp)
File "/usr/lib/python3.5/xmlrpc/client.py", line 1322, in parse_response
return u.close()
File "/usr/lib/python3.5/xmlrpc/client.py", line 655, in close
raise Fault(**self._stack[0])
xmlrpc.client.Fault: <Fault -32700: 'parse error. not well formed'>
>>>
Quote:You need to put your port number in the URL.
How did you install the wordpress on your machine?
I installed Wordpress on my machine using LAMP stack from the command prompt on my Linux Mint 18.3. My localhost host address is 192.168.0.105 and my site is on 192.168.0.105/wordpress/. I dont know if sharing these IPs is considered good or bad so i've been changing 192.168.0.105 to 'localhost' when posting the outputs here.
I also did a
1 |
sudo netstat - ntlp |
1 2 3 4 5 6 7 8 9 10 |
sam@sam - H81M - S ~ $ sudo netstat - ntlp [sudo] password for sam: Active Internet connections (only servers) Proto Recv - Q Send - Q Local Address Foreign Address State PID / Program name tcp 0 0 127.0 . 1.1 : 53 0.0 . 0.0 : * LISTEN 1195 / dnsmasq tcp 0 0 127.0 . 0.1 : 631 0.0 . 0.0 : * LISTEN 784 / cupsd tcp 0 0 127.0 . 0.1 : 3306 0.0 . 0.0 : * LISTEN 993 / mysqld tcp6 0 0 ::: 80 ::: * LISTEN 1626 / apache2 tcp6 0 0 :: 1 : 631 ::: * LISTEN 784 / cupsd sam@sam - H81M - S ~ $ |