django-json-rpc
django-json-rpc copied to clipboard
Conflict with python-json-rpc
Hello, django-jsonrpc conflict with python-json-rpc (http://json-rpc.org/wiki/python-json-rpc) by module name. May be rename your module to django_jsonrpc ?
simple way for it:
find . -name *.py -print0|xargs -0 sed -i -e 's/from jsonrpc/from django_jsonrpc/' sed -i -e 's/from jsonrpc/from django_jsonrpc/' README.mdown sed -i -e "s/packages=['jsonrpc']/packages=['django_jsonrpc']/" setup.py sed -i -e "s/package_data={'jsonrpc'/package_data={'django_jsonrpc'/" setup.py mv jsonrpc django_jsonrpc
What are you trying to do? The explanation is not clear.
may be.. my english is badly, sorry :(
django-jsonrpc can't be install with python-json-rpc on same PC. Because both projects install python-modules in same path by python setup.py install
.
Both projects contain "packages=['jsonrpc']" in setup.py. Do you understand me?
Above command sequence allow rename to django_jsonrpc in all current code without modify by hands.
I understand you... but what is the exact sequence of your sed searches? sed -i -e /some/path/to/django_jsonrpc sed -i -e /some/path/to/package
^^^^ it is the above sequence of commands that isn't clear.
sed -i -e 's/from jsonrpc/from django_jsonrpc/' README.mdown this command is argument of xargs (line above). Github splited some lines in my comment. You may see clear view of it at http://pastebin.ca/1842046
I saw it... however... I don't think that solved a thing for me.... I am getting this error after running install Checking .pth file support in /usr/local/lib/python2.6/dist-packages/ /usr/bin/python -E -c pass TEST PASSED: /usr/local/lib/python2.6/dist-packages/ appears to support .pth files running bdist_egg running egg_info writing requirements to django_json_rpc.egg-info/requires.txt writing django_json_rpc.egg-info/PKG-INFO writing top-level names to django_json_rpc.egg-info/top_level.txt writing dependency_links to django_json_rpc.egg-info/dependency_links.txt error: package directory 'jsonrpc' does not exist
or more clearly: http://dpaste.com/172457/
oh, i missed two slashes in sed expression. final version: http://dpaste.com/172463/
Hmm, may be Github again modify my comment. Test slashes: ['jsonrpc']
Github remove slashes in comments :(
okay.. have you tried hosting a django app that uses django_json_rpc on a live server such as Apache/mod_wsgi? I have tried to set up my service... it says that it does not support GET requests... but it supports HTTP GET only on my localhost. Any ideas or reasons? Does it have to issues with python-jsonrpc and django_json_rpc?
I not use django over wsgi in production.