-
Notifications
You must be signed in to change notification settings - Fork 129
Build error during setup #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I hadn't tested against Python3 yet, but it looks like this error is simply because I left in an erroneous print statement. The fix should be simple, but while I'm at it I'll verify proper overall functionality on Python3 and issue a new release. Will probably take a day or two. |
Hi, If you open the code, can you add a wp_password to the wordpresspost definition dict, i tested on local version and it posts correctly, and finally in the doc, unless I'm mistaking for the media uploads, it you can add in the doc: post using a call to xmlrpclib.Binary(fileread) I think it could help starters like me. |
Would you mind filing a new issue with your patch and an explanation of why you want/need a wp_password member? I don't want to pollute this issue with an unrelated discussion. Thanks. |
It looks like Python3 compatibility is going to require some work, and likely a separate branch of the code. I'm afraid I don't have time at the moment to do this myself, as I still use Python 2.x exclusively. If anyone is interested in maintaining a fork for Python 3, I'd happily accept pull requests. |
Looks like I misread "This library was developed against and tested on WordPress 3.0." while skimming the mainpage. Thought that read Python 3.0 :P I might try my hand at making a Py3k fork later but for the time being, I'll just switch back to 2.x. Thanks! |
I'm getting a build error during setup. Currently running a clean install of Python 3.1.2 under Mac OS X 10.6.5. I get the same results using sudo.
28shaun15:maxcutler-python-wordpress-xmlrpc-028c420 inhumantsar$ python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib
creating build/lib/wordpress_xmlrpc
copying wordpress_xmlrpc/init.py -> build/lib/wordpress_xmlrpc
copying wordpress_xmlrpc/base.py -> build/lib/wordpress_xmlrpc
copying wordpress_xmlrpc/mixins.py -> build/lib/wordpress_xmlrpc
copying wordpress_xmlrpc/wordpress.py -> build/lib/wordpress_xmlrpc
creating build/lib/wordpress_xmlrpc/methods
copying wordpress_xmlrpc/methods/init.py -> build/lib/wordpress_xmlrpc/methods
copying wordpress_xmlrpc/methods/categories.py -> build/lib/wordpress_xmlrpc/methods
copying wordpress_xmlrpc/methods/demo.py -> build/lib/wordpress_xmlrpc/methods
copying wordpress_xmlrpc/methods/options.py -> build/lib/wordpress_xmlrpc/methods
copying wordpress_xmlrpc/methods/posts.py -> build/lib/wordpress_xmlrpc/methods
copying wordpress_xmlrpc/methods/users.py -> build/lib/wordpress_xmlrpc/methods
running install_lib
creating /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc
copying build/lib/wordpress_xmlrpc/init.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc
copying build/lib/wordpress_xmlrpc/base.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc
creating /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods
copying build/lib/wordpress_xmlrpc/methods/init.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods
copying build/lib/wordpress_xmlrpc/methods/categories.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods
copying build/lib/wordpress_xmlrpc/methods/demo.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods
copying build/lib/wordpress_xmlrpc/methods/options.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods
copying build/lib/wordpress_xmlrpc/methods/posts.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods
copying build/lib/wordpress_xmlrpc/methods/users.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods
copying build/lib/wordpress_xmlrpc/mixins.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc
copying build/lib/wordpress_xmlrpc/wordpress.py -> /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/init.py to init.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/base.py to base.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods/init.py to init.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods/categories.py to categories.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods/demo.py to demo.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods/options.py to options.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods/posts.py to posts.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/methods/users.py to users.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/mixins.py to mixins.pyc
byte-compiling /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/wordpress.py to wordpress.pyc
File "/Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc/wordpress.py", line 53
print data
^
SyntaxError: invalid syntax
running install_egg_info
Writing /Library/Frameworks/Python.framework/Versions/3.1/lib/python3.1/site-packages/wordpress_xmlrpc-1.1-py3.1.egg-info
The text was updated successfully, but these errors were encountered: