django-json-rpc icon indicating copy to clipboard operation
django-json-rpc copied to clipboard

Conflict with python-json-rpc

Open zver opened this issue 15 years ago • 10 comments

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 ?

zver avatar Feb 23 '10 13:02 zver

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

zver avatar Mar 05 '10 13:03 zver

What are you trying to do? The explanation is not clear.

miclovich avatar Mar 15 '10 18:03 miclovich

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.

zver avatar Mar 15 '10 18:03 zver

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.

miclovich avatar Mar 15 '10 22:03 miclovich

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

zver avatar Mar 16 '10 04:03 zver

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/

miclovich avatar Mar 16 '10 10:03 miclovich

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']

zver avatar Mar 16 '10 11:03 zver

Github remove slashes in comments :(

zver avatar Mar 16 '10 11:03 zver

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?

miclovich avatar Mar 16 '10 16:03 miclovich

I not use django over wsgi in production.

zver avatar Mar 27 '10 07:03 zver